Check request status

Markdown
GET /v1/requests/{idempotency_key}

Check the state of a generation request when your integration needs to know whether it finished. Put the original Idempotency-Key in the path, use the same API key, and select the operation matching the endpoint you called.

The response contains status only: running, succeeded, failed, or uncertain. It does not return generated content. Retrieve a saved result by sending an identical retry to the original generation endpoint within its recovery window.

Select the correct operation

Set operation to reports.create, techniques.create, documents.render, or report_documents.create; it defaults to reports.create. A request key used at one endpoint does not identify a request at another endpoint. A 404 means no matching request is recorded for this API key and operation.

Do not automatically start a new generation when status is uncertain. Keep the original key and X-Request-Id and contact support. See the retry guide for the meaning of each state and how to recover downloads.

Requests, retries, and downloads

Authentication

Create a named API key in your workspace’s API keys tab, then send it in the Authorization header on each API request. Your key connects the integration to that workspace’s saved settings and Word templates. Signing into the website does not replace this header in an API integration.

Authorization: Bearer <API_KEY>

Keep the key in your application’s server-side secret configuration. It is shown only once when created, so save it securely then. Do not place it in browser code, logs, version control, or a prompt sent to your coding agent. You can revoke an integration’s key from the workspace without changing the other keys.

Parameters

NameTypeRequiredConstraintsDescription
idempotency_keypath: stringYes——
operationquery: stringNoenum=["reports.create", "techniques.create", "documents.render", "report_documents.create"]; default="reports.create"—

Example

BASE_URL=https://radiologydictation.com

curl --request GET "$BASE_URL/v1/requests/$REQUEST_ID" \
  --header "Authorization: Bearer $API_KEY"

Responses

StatusDescriptionType
200Successful ResponseRequestStatus · application/json
401Invalid or missing API key—
503Service is unavailable. Please try again.—
400Invalid request ID—
404Request not found—
422Validation ErrorHTTPValidationError · application/json

Schemas

HTTPValidationError

NameTypeRequiredConstraintsDescription
detailarray<ValidationError>No——

RequestStatus

NameTypeRequiredConstraintsDescription
statusstringYesenum=["running", "succeeded", "failed", "uncertain"]Current state of the request.

ValidationError

NameTypeRequiredConstraintsDescription
locarray<string | integer>Yes——
msgstringYes——
typestringYes——
inputobjectNo——
ctxobjectNo——

Select and copy