apicheats.dev openai/llms.txt Raw .md
GET

GET /threads/{thread_id}/runs/{run_id}/steps/{step_id} — OpenAI API

OpenAI API key (required); https://api.openai.com/v1

OpenAI API

Retrieve run step

Base URL
https://api.openai.com/v1
Auth
Authorization: Bearer <OPENAI_API_KEY>
Last verified
2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 251 tokens · Vary: Accept

Critical gotchas

The Responses API is the primary interface for new text and tool workflows; Chat Completions remains a separate compatibility API.

Audio transcription uploads use multipart form data rather than a JSON request body.

cURL

curl -X GET 'https://api.openai.com/v1/threads/thread-id/runs/run-id/steps/step-id?include%5B%5D=example' \  -H "Authorization: Bearer $OPENAI_API_KEY"

Parameters

Name In Type Required Description
thread_id path string Yes The ID of the thread to which the run and run step belongs.
run_id path string Yes The ID of the run to which the run step belongs.
step_id path string Yes The ID of the run step to retrieve.
include[] query string[] No A list of additional fields to include in the response. Currently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content. See the [file search tool documentation](https://developers.openai.com/api/docs/guides/tools-file-search#retrieval-customization) for more information.

Response 200 OK

{
  "id": "string",
  "object": "thread.run.step",
  "created_at": 0,
  "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": 0,
  "cancelled_at": 0,
  "failed_at": 0,
  "completed_at": 0,
  "metadata": {},
  "usage": {
    "completion_tokens": 0,
    "prompt_tokens": 0,
    "total_tokens": 0
  }
}
Get a free OpenAI API key → sponsored

Affiliate link - we may earn a commission, at no extra cost to you.