Path parameters
-
The ID of the thread to which the run and run step belongs.
-
The ID of the run to which the run step belongs.
-
The ID of the run step to retrieve.
GET
/threads/{thread_id}/runs/{run_id}/steps/{step_id}
curl \
-X GET https://api.openai.com/v1/threads/{thread_id}/runs/{run_id}/steps/{step_id} \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": "string",
"object": "thread.run.step",
"created_at": 42,
"assistant_id": "string",
"thread_id": "string",
"run_id": "string",
"type": "message_creation",
"status": "in_progress",
"step_details": {
"type": "message_creation",
"message_creation": {
"message_id": "string"
}
},
"last_error": {
"code": "server_error",
"message": "string"
},
"expired_at": 42,
"cancelled_at": 42,
"failed_at": 42,
"completed_at": 42,
"metadata": {},
"usage": {
"completion_tokens": 42,
"prompt_tokens": 42,
"total_tokens": 42
}
}