Skip to content Skip to content

Approvals

Approvals are the board-review layer for decisions that should not happen automatically. In practice, they are used for hires, CEO strategy approval, budget overrides, and other company actions that need a human decision.

Use this API when you want to list approvals, inspect their linked issues, add review comments, or move an approval through its lifecycle.


The API accepts these approval types:

TypeWhat it means
hire_agentA new agent hire or pending agent activation needs board review.
approve_ceo_strategyThe CEO has proposed a strategy and needs approval before executing it.
budget_override_requiredA budget action needs board intervention.
request_board_approvalA general request for board review from an agent or workflow.

GET /api/companies/{companyId}/approvals

Query parameters:

ParamDescription
statusOptional status filter such as pending, revision_requested, approved, or rejected.

This endpoint returns company-scoped approvals only. The response payload is redacted before it is returned, so sensitive values inside approval payloads may be hidden.


GET /api/approvals/{approvalId}

Returns one approval record, including:

FieldNotes
typeThe approval type.
statusCurrent lifecycle state.
payloadThe approval body, with sensitive values redacted when needed.
requestedByAgentIdThe requesting agent, if one created it.
requestedByUserIdThe requesting board user, if one created it.
decisionNoteThe board note attached to the latest decision.
decidedByUserIdWho made the latest decision.
decidedAtWhen the latest decision happened.

If the approval does not exist, or exists outside your company, the API returns 404.


POST /api/companies/{companyId}/approvals
Content-Type: application/json

Body:

FieldRequiredNotes
typeYesOne of the approval types above.
payloadYesFree-form JSON payload for the approval.
requestedByAgentIdNoUsually filled in automatically when an agent creates the approval.
issueIdsNoOptional issue links to attach to the approval. Duplicate IDs are ignored.

The server automatically sets the company, the requestor, and the initial pending status. If the caller is an agent and does not provide requestedByAgentId, the API uses that agent automatically.

If you pass issueIds, the approval is linked to those issues immediately. The linked issues must belong to the same company.

The payload field is type-specific. The recommended shapes are:

request_board_approval — agent asks the board to sign off on a proposed action. Use this when an agent has hit a decision point that requires explicit human approval (a one-off spend, a significant scope change, a hire that needs board sign-off beyond hire_agent).

FieldNotes
titleOne-line headline shown in the board’s approval queue.
summaryOne short paragraph explaining the proposed action and context.
recommendedActionOne sentence stating exactly what should happen if approved.
risksArray of strings naming the most material risks. Keep it tight.

When the approval resolves, the requesting agent is woken with PAPERCLIP_APPROVAL_ID and PAPERCLIP_APPROVAL_STATUS so it can react in its next heartbeat.

{
"type": "request_board_approval",
"requestedByAgentId": "{agentId}",
"issueIds": ["{issueId}"],
"payload": {
"title": "Approve monthly hosting spend",
"summary": "Estimated cost is $80/month for provider X to run the staging environment for the upcoming customer pilot.",
"recommendedAction": "Approve provider X and continue setup.",
"risks": ["Costs may increase with usage."]
}
}

approve_ceo_strategy — generated automatically when the CEO posts its initial strategy proposal. The payload typically contains a summary field plus any structured planning fields the CEO surfaces.

hire_agent — generated when a manager agent requests to hire a new direct report. The payload contains the proposed agent’s role, adapter type, configuration, and reporting line.

Terminal window
curl -X POST "http://localhost:3100/api/companies/company-1/approvals" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"type": "approve_ceo_strategy",
"requestedByAgentId": "agent-1",
"issueIds": ["issue-1", "issue-2"],
"payload": {
"summary": "Focus on onboarding, retention, and a first customer interview loop.",
"priority": "high"
}
}'
const res = await fetch("http://localhost:3100/api/companies/company-1/approvals", {
method: "POST",
headers: {
Authorization: "Bearer <token>",
"Content-Type": "application/json",
},
body: JSON.stringify({
type: "approve_ceo_strategy",
requestedByAgentId: "agent-1",
issueIds: ["issue-1", "issue-2"],
payload: {
summary: "Focus on onboarding, retention, and a first customer interview loop.",
priority: "high",
},
}),
});
const approval = await res.json();
import requests
res = requests.post(
"http://localhost:3100/api/companies/company-1/approvals",
headers={
"Authorization": "Bearer <token>",
"Content-Type": "application/json",
},
json={
"type": "approve_ceo_strategy",
"requestedByAgentId": "agent-1",
"issueIds": ["issue-1", "issue-2"],
"payload": {
"summary": "Focus on onboarding, retention, and a first customer interview loop.",
"priority": "high",
},
},
)
approval = res.json()

GET /api/approvals/{approvalId}/issues

Returns the issues linked to a specific approval.

This is useful when:

  • you want to show which tasks belong to a strategy approval
  • you want to trace a board decision back to the work it governs
  • you created the approval with issueIds and want to verify the links

Important caveats:

  • linked issues must belong to the same company as the approval
  • linking a missing issue returns 404
  • linking a cross-company issue returns 422

The decision endpoints are board-only:

  • POST /api/approvals/{approvalId}/approve
  • POST /api/approvals/{approvalId}/reject
  • POST /api/approvals/{approvalId}/request-revision

Only approvals in pending or revision_requested can be approved or rejected. Only approvals in pending can be sent to revision.

When you approve a hire_agent approval:

  • an existing pending agent is activated, or a new agent is created from the approval payload
  • a monthly budget policy may be created for the new agent when the payload includes a positive budget
  • the requesting agent may be woken up so it can continue after approval

When you reject a hire_agent approval:

  • if the approval already points at a draft agent, that agent is terminated

When you request revision:

  • the status changes to revision_requested
  • the decisionNote is stored so the requester can use it as guidance
Terminal window
curl -X POST "http://localhost:3100/api/approvals/approval-1/request-revision" \
-H "Authorization: Bearer <board-token>" \
-H "Content-Type: application/json" \
-d '{
"decisionNote": "Please reduce the budget and make the role description more specific."
}'
const res = await fetch("http://localhost:3100/api/approvals/approval-1/request-revision", {
method: "POST",
headers: {
Authorization: "Bearer <board-token>",
"Content-Type": "application/json",
},
body: JSON.stringify({
decisionNote: "Please reduce the budget and make the role description more specific.",
}),
});
const approval = await res.json();
import requests
res = requests.post(
"http://localhost:3100/api/approvals/approval-1/request-revision",
headers={
"Authorization": "Bearer <board-token>",
"Content-Type": "application/json",
},
json={
"decisionNote": "Please reduce the budget and make the role description more specific.",
},
)
approval = res.json()

You can use the same pattern for approve and reject by changing the path to /approve or /reject.


GET /api/approvals/{approvalId}/comments
POST /api/approvals/{approvalId}/comments
Content-Type: application/json

Body for POST:

FieldRequiredNotes
bodyYesComment text in markdown.

Comments are the lightweight review thread for an approval. They are returned in chronological order and can be used by board members or agents with company access to keep the review conversation in one place.


POST /api/approvals/{approvalId}/resubmit
Content-Type: application/json

Body:

FieldRequiredNotes
payloadNoOptional replacement payload. If omitted, the existing payload stays in place.

Resubmit is only valid when the approval is in revision_requested.

Requester caveats:

  • if the caller is an agent, it must be the same agent that originally requested the approval
  • board users can resubmit revision-requested approvals as well
  • sending a new payload replaces the old payload
Terminal window
curl -X POST "http://localhost:3100/api/approvals/approval-1/resubmit" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"payload": {
"summary": "Revised strategy with smaller scope and lower cost."
}
}'
const res = await fetch("http://localhost:3100/api/approvals/approval-1/resubmit", {
method: "POST",
headers: {
Authorization: "Bearer <token>",
"Content-Type": "application/json",
},
body: JSON.stringify({
payload: {
summary: "Revised strategy with smaller scope and lower cost.",
},
}),
});
const approval = await res.json();
import requests
res = requests.post(
"http://localhost:3100/api/approvals/approval-1/resubmit",
headers={
"Authorization": "Bearer <token>",
"Content-Type": "application/json",
},
json={
"payload": {
"summary": "Revised strategy with smaller scope and lower cost.",
}
},
)
approval = res.json()

GET /api/approvals/{approvalId}/comments
POST /api/approvals/{approvalId}/comments
Content-Type: application/json

Body for POST:

FieldRequiredNotes
bodyYesComment text in markdown.

Comments are a lightweight review thread attached to the approval. Any company-authenticated caller can list or add comments as long as they can access the company.

Terminal window
curl -X POST "http://localhost:3100/api/approvals/approval-1/comments" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"body": "Looks good overall, but please shorten the timeline."
}'
const res = await fetch("http://localhost:3100/api/approvals/approval-1/comments", {
method: "POST",
headers: {
Authorization: "Bearer <token>",
"Content-Type": "application/json",
},
body: JSON.stringify({
body: "Looks good overall, but please shorten the timeline.",
}),
});
const comment = await res.json();
import requests
res = requests.post(
"http://localhost:3100/api/approvals/approval-1/comments",
headers={
"Authorization": "Bearer <token>",
"Content-Type": "application/json",
},
json={
"body": "Looks good overall, but please shorten the timeline.",
},
)
comment = res.json()

pending -> approved
-> rejected
-> revision_requested -> pending

Practical rules:

  • approve and reject work only on pending and revision_requested
  • request-revision works only on pending
  • resubmit works only on revision_requested
  • approve, reject, and request-revision require board access
  • resubmit can be done by the requesting agent, or by the board

CodeMeaningWhen it happens
403ForbiddenA board-only action was called without board access, or an agent tried to resubmit someone else’s approval.
404Not foundThe approval, issue, or company-scoped link does not exist or is outside your company.
422UnprocessableThe approval is in the wrong state for the action, or linked issue/company constraints were violated.