v1

latestOpenAPI 3.0.02026-07-1761823.7 KB

Get run by ID

Retrieve the run details by its ID

get/api/v1/runs/{id}

Path parameters

idstring required

The ID of the run to retrieve

Example:run_1234567890

Response

Successfully retrieved run details

originstring required

The origin of the run

statusstring required

The status of the run

inputstring required

The input of the run

outputstring required

The output of the run

promptstring required

The prompt of the run

inputTokensnumber required

The number of input tokens of the run

outputTokensnumber required

The number of output tokens of the run

coststring required

The cost of the run

durationInMsnumber required

The duration of the run in milliseconds

groupIdstring required

The group ID of the run

schemastring nullable required

The schema used to generate the object

workflowIdstring required

The ID of the workflow

createdAtstring required

The creation date of the run

Example response

{
  "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"
}