Skip to main content
GET
/
api
/
v1
/
promptruns
/
{id}
Get a prompt run by ID
curl --request GET \
  --url https://promptjuggler.com/api/v1/api/v1/promptruns/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "pending",
  "createdAt": "2023-11-07T05:31:56Z",
  "finishedAt": "2023-11-07T05:31:56Z",
  "output": "<string>",
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Prompt run ID

Response

Prompt Run

Prompt run status and result.

id
string<uuid>
required

Prompt run ID.

status
enum<string>
required

Current run status.

Available options:
pending,
completed,
failed
createdAt
string<date-time>
required

Timestamp when the run was created.

finishedAt
string<date-time> | null

Timestamp when the run finished. Null while the run is pending.

output
string | null

LLM output text. Null while pending or when the run failed.

error
string | null

Error message if the run failed. Null on success.