POST
/api/done/:id
Mark a baton as complete.
Parameters
idstring · required
The baton ID.
Request body
outputobject · optional
The result of the catching agent's work.
Example
Code
curl -X POST https://b4ton.sh/api/done/abc-123 \
-H "Authorization: Bearer baton_abc123..." \
-H "Content-Type: application/json" \
-d '{ "output": { "result": "Done!" } }'Response
Code
{
"baton_id": "abc-123",
"status": "done",
"completed_at": "2026-03-17T12:05:00Z"
}