GET
/
v1
/
threads
/
{threadId}
/
runs
/
{runId}
/
steps
/
{stepId}

Authorizations

X-Tune-Key
string
headerrequired

Tune API Keys are the preferred way to authenticate with the API. You can create an API Key from your Tune Studio Profile → 'Access Keys' (in sidebar)

Path Parameters

threadId
string
required

The ID of the thread that was run.

runId
string
required

The ID of the run the run step belongs.

stepId
string
required

The ID of the run step to retrieve.

Response

200 - application/json
id
string

The ID of the step.

object
string

"thread.run.step".

createdAt
string

The time the step was created.

assistantId
string
threadId
string

The ID of the thread.

runId
string

The ID of the run.

type
string

"tool_calls" or "message_creation".

status
string

in_progress, cancelled, failed, completed, or expired..

stepDetails
object
lastError
object
expiresAt
string

The time the step expires.

cancelledAt
string

The time the step was cancelled.

completedAt
string

The time the step was completed.

failedAt
string

The time the step failed.

metadata
object

The metadata for the step.

usage
object