cURL
Hit the API directly from the command line. No SDK needed.
Pass
POST /api/pass
curl -X POST https://b4ton.sh/api/pass \
-H "Authorization: Bearer baton_abc123..." \
-H "Content-Type: application/json" \
-d '{
"task": "Review this draft email",
"output": { "draft": "Hello..." },
"context": { "tone": "professional" }
}'Catch
GET /api/catch/:id
curl https://b4ton.sh/api/catch/abc-123 \
-H "Authorization: Bearer baton_abc123..."Done
POST /api/done/:id
curl -X POST https://b4ton.sh/api/done/abc-123 \
-H "Authorization: Bearer baton_abc123..." \
-H "Content-Type: application/json" \
-d '{ "output": { "result": "Done!" } }'Status
GET /api/status/:id
curl https://b4ton.sh/api/status/abc-123 \
-H "Authorization: Bearer baton_abc123..."