Retrieve all runs for a specific thread
curl --request GET \
--url https://itz.am/api/v1/threads/{threadId}/runs \
--header 'Api-Key: <api-key>'{
"runs": [
{
"id": "run_1234567890",
"origin": "API",
"status": "COMPLETED",
"input": "Who are you?",
"output": "I'm a helpful assistant",
"prompt": "Be friendly and helpful",
"inputTokens": 100,
"outputTokens": 100,
"cost": "0.001",
"durationInMs": 100,
"threadId": "thread_1234567890",
"model": {
"name": "GPT-4o",
"tag": "openai:gpt-4o"
},
"attachments": [
{
"url": "https://example.com/image.jpg",
"mimeType": "image/jpeg",
"id": "attachment_1234567890"
}
],
"knowledge": [
{
"id": "1353151353531",
"title": "My Resource",
"url": "https://example.com/resource.pdf",
"type": "file"
}
],
"workflowId": "workflow_1234567890",
"createdAt": "2021-01-01T00:00:00.000Z"
}
]
}The API key to use for authentication
The ID of the thread to get runs for
"thread_1234567890"
Successfully retrieved thread runs
Array of runs in the thread
Show child attributes
The ID of the run
"run_1234567890"
The origin of the run
"API"
The status of the run
"COMPLETED"
The input of the run
"Who are you?"
The output of the run
"I'm a helpful assistant"
The prompt of the run
"Be friendly and helpful"
The number of input tokens of the run
100
The number of output tokens of the run
100
The cost of the run
"0.001"
The duration of the run in milliseconds
100
The thread ID of the run
"thread_1234567890"
Show child attributes
Show child attributes
The ID of the knowledge
"1353151353531"
The title of the knowledge
"My Resource"
The URL of the knowledge
"https://example.com/resource.pdf"
The type of the knowledge
"file"
The ID of the workflow
"workflow_1234567890"
The creation date of the run
"2021-01-01T00:00:00.000Z"
curl --request GET \
--url https://itz.am/api/v1/threads/{threadId}/runs \
--header 'Api-Key: <api-key>'{
"runs": [
{
"id": "run_1234567890",
"origin": "API",
"status": "COMPLETED",
"input": "Who are you?",
"output": "I'm a helpful assistant",
"prompt": "Be friendly and helpful",
"inputTokens": 100,
"outputTokens": 100,
"cost": "0.001",
"durationInMs": 100,
"threadId": "thread_1234567890",
"model": {
"name": "GPT-4o",
"tag": "openai:gpt-4o"
},
"attachments": [
{
"url": "https://example.com/image.jpg",
"mimeType": "image/jpeg",
"id": "attachment_1234567890"
}
],
"knowledge": [
{
"id": "1353151353531",
"title": "My Resource",
"url": "https://example.com/resource.pdf",
"type": "file"
}
],
"workflowId": "workflow_1234567890",
"createdAt": "2021-01-01T00:00:00.000Z"
}
]
}