Collision Bureau API

Collision Bureau exposes a small HTTP surface for partners and AI agents. Every endpoint is documented in the OpenAPI 3.1 spec. The strict CSP on this site forbids inline script, so this page does not embed Swagger UI; load the spec into your own tool of choice.

Spec

Auth

  • Partner API. Sanctum personal access token issued at /app/partner/api-keys, with scope abilities (read:intakes, read:orders, read:wallet, read:profile, write:routings). Each key is scoped to the issuing partner.
  • Agent action layer. Shared MCP bearer in the MCP_BEARER env on the mcp.collisionbureau.com Ploi site. Nothing in the bearer bypasses the per-consumer SMS consent gate.

Agent consent

Every POST /api/agent/requests opens a draft. Collision Bureau texts the consumer a one-shot /confirm/{token} link. The token expires in ten minutes. A yes promotes the draft into a routed intake; a no records a do-not-contact row and locks the draft as rejected. See /.well-known/mcp.json and the agent_delegation block there.

Partner accept and decline

Mirror of the portal's Accept and Pass buttons. The API accept does not spend wallet credit; portal accept still does. Both require the write:routings scope.