getRun

abstract suspend fun getRun(threadId: ThreadId, runId: RunId, requestOptions: RequestOptions? = null): Run

Deprecated

OpenAI retired the Assistants API on August 26, 2026. Use Responses and Conversations.

Retrieves a run.

Parameters

threadId

The ID of the thread to run

runId

The ID of the run to retrieve

requestOptions

request options.