API Reference
Stream run events
Returns the event stream produced by an assistant run, such as incremental output and tool-call activity. Use the Cursor and Take query parameters to page through events as the run progresses.
Authorization
basic AuthorizationBasic <token>
Basic Authorization header
In: header
Path Parameters
threadId*string
runId*string
Query Parameters
Cursor?integer
Format
int64Range
1 <= valueTake?integer
Format
int32Range
1 <= value <= 500Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.dealerai.com/api/v1/assistant/threads/string/runs/string/events"{
"cursor": 0,
"next_cursor": 0,
"events": [
{
"sequence": 0,
"type": "string",
"summary": "string",
"payload_json": "string",
"date_created": "2019-08-24T14:15:22Z"
}
]
}{
"message": "string",
"details": null
}{
"message": "string",
"details": null
}{
"message": "string",
"details": null
}Get a run
Returns the status and result of a single assistant run within a thread. Poll this endpoint after sending a message to determine when the assistant has finished responding.
Cancel a thread run
Requests cancellation of the active run on the specified thread. The request is accepted asynchronously (202); the run transitions to a cancelled state once cancellation completes.