List run steps (v1)
GET
https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/stepsReturns a list of run steps belonging to a run.
Request
Header Params
Authorization
string
required
Example:
Bearer $OPENAI_API_KEY
Content-Type
string
required
Example:
application/json
OpenAI-Beta
string
required
Example:
assistants=v1
Body Params text/plain
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object
string
required
data
array [object {15}]
required
id
string
optional
object
string
optional
created_at
integer
optional
run_id
string
optional
assistant_id
string
optional
thread_id
string
optional
type
string
optional
status
string
optional
cancelled_at
null
optional
completed_at
integer
optional
expired_at
null
optional
failed_at
null
optional
last_error
null
optional
step_details
object
optional
usage
object
optional
first_id
string
required
last_id
string
required
has_more
boolean
required
Example
{
"object": "list",
"data": [
{
"id": "step_abc123",
"object": "thread.run.step",
"created_at": 1699063291,
"run_id": "run_abc123",
"assistant_id": "asst_abc123",
"thread_id": "thread_abc123",
"type": "message_creation",
"status": "completed",
"cancelled_at": null,
"completed_at": 1699063291,
"expired_at": null,
"failed_at": null,
"last_error": null,
"step_details": {
"type": "message_creation",
"message_creation": {
"message_id": "msg_abc123"
}
},
"usage": {
"prompt_tokens": 123,
"completion_tokens": 456,
"total_tokens": 579
}
}
],
"first_id": "step_abc123",
"last_id": "step_abc456",
"has_more": false
}
Last modified: a month ago