Approve what the crew writes
Agents never change your records on their own. In agentic mode an agent that wants to write, such as logging a completed inspection, creates a proposal and waits for a person to decide.
1. Allow proposals
Section titled “1. Allow proposals”Send the message with "ai_mode": "agentic". In the default chat mode, agents only read.
Only some agents can propose changes. See Meet the crew.
2. Show the proposal
Section titled “2. Show the proposal”The agent posts a message with message_type set to action_card, and the stream sends an action_card event:
{ "proposal_id": "5b0e...", "entity": "maintenance", "action": "create", "entity_id": "", "summary": "Log 50-hour inspection for N482SK, completed today", "params": { "aircraft_id": "8f1c...", "type": "50-hour inspection" }, "status": "pending"}Render summary and the key params, with Approve and Reject buttons.
3. Record the decision
Section titled “3. Record the decision”POST /v1/chat/conversations/{conversation_id}/proposals/{proposal_id}/approvePOST /v1/chat/conversations/{conversation_id}/proposals/{proposal_id}/rejectOn approve, UAVCrew carries out the change through your MCP Gateway and replies with the result. The agent also posts “Action completed: …” or “Action failed: …” to the conversation.
| Status | Meaning |
|---|---|
200 with "success": true |
The change was saved. |
200 with "success": false |
Your API rejected the change. error says why. |
409 |
The proposal was already approved or rejected. |
410 |
The proposal is more than one hour old. Ask the agent again. |
Your API stays in charge. The gateway writes with your token, so your own validation and audit trail apply. Your audit log records the change as made by the agent on behalf of the approving user.
