Skip to main content
GET
PromptJuggler PHP SDK

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.

emitted
object[]
required

Payloads produced by emit tools during this run, in call order. Empty until the run completes.

transcript
(TranscriptText · object | TranscriptTool · object | TranscriptData · object)[]
required

The run as a renderable sequence: assistant text, the tools it used, and emit payloads in position. Empty until the run completes. output remains the flat text for callers that only need the answer.

A block of assistant text.

finishedAt
string<date-time> | null

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

output
string | null

LLM output text produced so far; read status for completeness. Null when the run failed, or when the model returned no text — e.g. a turn that was only tool calls or only reasoning.

error
string | null

Error message from the latest failed attempt, kept even once a retry recovers — so a pending or completed run can carry one. Read status for the outcome.

tokenUsage
object | null

Token usage accumulated over successful turns — a run that failed later still reports the earlier ones. Null until the first turn succeeds.

cost
object | null

Cost breakdown for the run. Null while pending, or when no published rate covers the run.