The Prior Auth API is an HTTP+JSON API. Every endpoint accepts JSON request bodies and returns JSON responses, with HTTP status codes following standard conventions.Documentation Index
Fetch the complete documentation index at: https://docs.trycollate.ai/llms.txt
Use this file to discover all available pages before exploring further.
Base URLs
| Environment | Base URL |
|---|---|
| Sandbox | https://api.sandbox.trycollate.ai |
| Production | https://api.trycollate.ai |
Authentication
Authenticate every request with a bearer token:GET /health is public. Every other /v1/* endpoint returns
401 unauthorized without a valid key.
Idempotency
Send a uniqueIdempotency-Key header on every command-style POST:
POST /v1/prior-auth/authorizationsPOST /v1/prior-auth/authorizations/{authorizationId}/attachmentsPOST /v1/prior-auth/authorizations/{authorizationId}/confirmPOST /v1/prior-auth/authorizations/{authorizationId}/cancel
409 idempotency_key_reused.
Concurrency
Mutable authorization operations require optimistic concurrency. Send the current authorizationversion as a quoted entity tag:
409 version_conflict. Re-read the authorization, refresh
your local snapshot, and retry with the current version.
Pagination
List endpoints use cursor pagination.| Parameter | Type | Default |
|---|---|---|
limit | integer (1–100) | 25 |
cursor | string | — |
pagination.nextCursor when another page is available.
Errors
Every error response uses a single envelope:error.code to recover. See Errors and troubleshooting
for the full catalog and recovery steps.
Files
The attachment flow is:POST /v1/filesPUT <upload.url>POST /v1/files/{fileId}/completePOST /v1/prior-auth/authorizations/{authorizationId}/attachments