Developer docs menu
Approvals
Actions that reach your CRM, your mailbox or your schedule wait for a person to approve them. This is how that works.
What needs approval
| Runs right away | Waits for the user's approval |
|---|---|
|
|
The flow
- Propose. Your code calls a proposal endpoint (REST
/actions/…) or apropose_*tool. Nothing happens yet and no credits are spent. You get back anaction_id, anapproval_url, an expiry time andwhat_happens: the same summary the user will see. - The user decides. Give them the
approval_url. They open it signed in to CRMCoPilot and see what will happen, who it affects, which app asked, and the credit estimate. They approve or reject. An API key can never approve. - It runs. On approval it runs once through the same code as the app, as that user, and credits are charged then.
- Check the outcome with
GET /actions/{action_id}or the MCP toolget_action.
ExamplePOST /actions/crm-push {"refs": ["ld_…"]}
-> {"status": "pending_approval", "action_id": "act_…", "approval_url": "https://production.crmcopilot.ai/approvals?action=act_…"}
(the user opens approval_url and clicks Approve)
GET /actions/act_…
-> {"status": "done", "result": {"status": "ok", "message": "Queued for the CRM. …", "parts": […]}}
Statuses
| status | Meaning |
|---|---|
pending | Waiting for the user. approval_url is included. |
running | Approved and running. |
done | Finished. result has the outcome, e.g. per-person CRM results for a CRM push. |
failed | Approved but it couldn't finish. result.message says why. |
rejected | The user said no. |
expired | Nobody decided in time: 24 hours for most proposals, 5 minutes for Mobile ones. |
A CRM push can show done while people are still queued for the CRM. Check again until each person's outcome is created, existing or failed.
Tips for agent builders
- Show the user
what_happensand theapproval_urlin your own words; don't approve on their behalf or tell them it's done untilget_actionsays so. - Batch: one proposal for 30 people is easier to approve than 30 proposals.
- Before spending credits directly (unlocks, company search), tell the user the cost and get their OK.
max_creditson unlocks is your safety cap.
Last checked against the live code on 5 December 2026.