GET
/
api
/
v1
/
runs
/
{id}
curl --request GET \
  --url https://itz.am/api/v1/runs/{id} \
  --header 'Api-Key: <api-key>'
{
  "origin": "sdk",
  "status": "completed",
  "input": "Hello, world!",
  "output": "Hello, world!",
  "prompt": "Hello, world!",
  "inputTokens": 100,
  "outputTokens": 100,
  "cost": "0.001",
  "durationInMs": 100,
  "groupId": "group_1234567890",
  "model": {
    "name": "gpt-4o",
    "tag": "gpt-4o"
  },
  "schema": "{}",
  "workflowId": "workflow_1234567890",
  "createdAt": "2021-01-01T00:00:00.000Z"
}

Authorizations

Api-Key
string
header
required

The API key to use for authentication

Path Parameters

id
string
required

The ID of the run to retrieve

Example:

"run_1234567890"

Response

200
application/json

Successfully retrieved run details

The response is of type object.