message and an errors array. Use the error code to
choose a recovery action.
Read an error
Example authentication error:X-Cortexa-Request-Id from the response headers for support.
Unknown request fields return a validation error. Check the API reference for
accepted fields.
Common error codes
A
202 response accepts the request. Check the job for its final status
and failure_code.
Failures during streaming
Before streaming starts, errors use HTTP status and JSON. During the stream,output.failed or generation.failed carries the failure code. Wait for
output.ready before treating a document as complete. See Streaming
for reconnects.
Request limits
The default application allowance is 120 authenticated requests per minute. Cortexa can assign a different limit. All grants under an application share the allowance, including token exchange and polling. On429, wait for Retry-After
and reduce request frequency.
Plan entitlements and generation quotas apply separately.
Retry a request
After a lost response, reuse the same
Idempotency-Key and unchanged body.
Keys are scoped to the grant and operation and kept for seven days.
Use a new key for new work, including a fresh attempt after resolving a failed
job. Replaying a failed request returns its original result. See Jobs.
Pagination
Most list endpoints acceptpage (starting at 1) and per_page (1–100).
They return this shape:
page while has_next is true. The workspace list GET /teams is an
array rather than a paginated object. See Workspace directory.
Support diagnostics
Send the operation, HTTP status, error code, andX-Cortexa-Request-Id to your
integration contact. Keep credentials and clinical data out of logs and
idempotency keys.