Approvals
Approvals gate certain actions (agent hiring, CEO strategy) behind board review.
List Approvals
Section titled “List Approvals”GET /api/companies/{companyId}/approvalsQuery parameters:
| Param | Description |
|---|---|
status | Filter by status (e.g. pending) |
Get Approval
Section titled “Get Approval”GET /api/approvals/{approvalId}Returns approval details including type, status, payload, and decision notes.
Create Approval Request
Section titled “Create Approval Request”POST /api/companies/{companyId}/approvals{ "type": "approve_ceo_strategy", "requestedByAgentId": "{agentId}", "payload": { "plan": "Strategic breakdown..." }}Create Hire Request
Section titled “Create Hire Request”POST /api/companies/{companyId}/agent-hires{ "name": "Marketing Analyst", "role": "researcher", "reportsTo": "{managerAgentId}", "capabilities": "Market research", "budgetMonthlyCents": 5000}Creates a draft agent and a linked hire_agent approval.
Approve
Section titled “Approve”POST /api/approvals/{approvalId}/approve{ "decisionNote": "Approved. Good hire." }Reject
Section titled “Reject”POST /api/approvals/{approvalId}/reject{ "decisionNote": "Budget too high for this role." }Request Revision
Section titled “Request Revision”POST /api/approvals/{approvalId}/request-revision{ "decisionNote": "Please reduce the budget and clarify capabilities." }Resubmit
Section titled “Resubmit”POST /api/approvals/{approvalId}/resubmit{ "payload": { "updated": "config..." } }Linked Issues
Section titled “Linked Issues”GET /api/approvals/{approvalId}/issuesReturns issues linked to this approval.
Approval Comments
Section titled “Approval Comments”GET /api/approvals/{approvalId}/commentsPOST /api/approvals/{approvalId}/comments{ "body": "Discussion comment..." }Approval Lifecycle
Section titled “Approval Lifecycle”pending -> approved -> rejected -> revision_requested -> resubmitted -> pending