- Get started
- Introduction
- Authentication
- Making requests
- Streaming
- Audio
- Batch
- Models
- Invites
- Chat
- Users
- Projects
- Project users
- Project service accounts
- Project API keys
- Audit logs
- Usage
- Project rate limits
- Completions
- Uploads
- Embeddings
- Files
- Moderations
- Assistants (v1)
- Threads (v1)
- Messages (v1)
- Runs (v1)
- Images
- Fine-tuning
List run steps (v1)
GET
https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/steps
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Authorization
stringÂ
required
Example:
Bearer $OPENAI_API_KEY
Content-Type
stringÂ
required
Example:
application/json
OpenAI-Beta
stringÂ
required
Example:
assistants=v1
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai.com/v1/threads/thread_abc123/runs/run_abc123/steps' \
--header 'Authorization: Bearer $OPENAI_API_KEY' \
--header 'OpenAI-Beta: assistants=v1' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
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
}
Modified at 2024-12-13 10:20:37