Get a prompt run by ID
Retrieves the current state of a prompt run, including status, outputs, token usage, cost, and errors. Poll this endpoint after receiving a webhook notification, or use it to check the status of a run in progress.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Prompt run ID
Response
Prompt Run
Prompt run status and result.
Prompt run ID.
Current run status.
pending, completed, failed Timestamp when the run was created.
Timestamp when the run finished. Null while the run is pending.
LLM output text. Null while pending or when the run failed.
Error message if the run failed. Null on success.
Token usage for the successful run. Null while pending or when the run failed.
Cost breakdown for the run. Null while pending.