API Reference
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.
Authorization
basic AuthorizationBasic <token>
Basic Authorization header
In: header
Path Parameters
threadId*string
runId*string
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.dealerai.com/api/v1/assistant/threads/string/runs/string"{
"run_id": "string",
"thread_id": "string",
"dealer_id": "string",
"status": "string",
"step_index": 0,
"last_error": "string",
"result_summary": "string",
"outcome": "string",
"outcome_code": "string",
"created_date": "2019-08-24T14:15:22Z",
"started_date": "2019-08-24T14:15:22Z",
"completed_date": "2019-08-24T14:15:22Z",
"last_modified_date": "2019-08-24T14:15:22Z"
}{
"message": "string",
"details": null
}{
"message": "string",
"details": null
}{
"message": "string",
"details": null
}List messages in a thread
Returns the messages exchanged in the specified assistant thread in chronological order. Use the take query parameter to limit how many messages are returned.
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.