Recuperar etapa de execução (v1)
GET
https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/steps/step_abc123
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/steps/step_abc123' \
--header 'Authorization: Bearer $OPENAI_API_KEY' \
--header 'OpenAI-Beta: assistants=v1' \
--header 'Content-Type: application/json'
Response Response Example
{
"id": "string",
"object": "string",
"created_at": 0,
"run_id": "string",
"assistant_id": "string",
"thread_id": "string",
"type": "string",
"status": "string",
"cancelled_at": null,
"completed_at": 0,
"expired_at": null,
"failed_at": null,
"last_error": null,
"step_details": {
"type": "string",
"message_creation": {
"message_id": "string"
}
},
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
}
}
Request
Header Params
Authorization
string
optional
Example:
Bearer $OPENAI_API_KEY
Content-Type
string
optional
Example:
application/json
OpenAI-Beta
string
optional
Example:
assistants=v1
Responses
Modified at 2025-01-26 08:48:10