Skip to main content
GET
/
executions
List executions
curl --request GET \
  --url https://odyssey.asteroid.ai/agents/v2/executions \
  --header 'X-Asteroid-Agents-Api-Key: <api-key>'
{
  "items": [
    {
      "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agentName": "<string>",
      "agentVersion": 123,
      "agentVersionDirty": true,
      "comments": [
        {
          "content": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "executionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "public": true,
          "updatedAt": "2023-11-07T05:31:56Z",
          "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "duration": 123,
      "executionResult": {
        "createdAt": "2023-11-07T05:31:56Z",
        "executionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "outcome": "<string>",
        "reasoning": "<string>",
        "result": "<any>"
      },
      "humanLabels": [
        {
          "color": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "name": "<string>",
          "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      ],
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "metadata": {},
      "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "starting",
      "terminalAt": "2023-11-07T05:31:56Z",
      "workflowId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "page": 123,
  "pageSize": 123,
  "total": 123
}

Authorizations

X-Asteroid-Agents-Api-Key
string
header
required

Query Parameters

organizationId
string<uuid>

Optional organization ID filter (required for customer queries)

pageSize
integer
default:10
required
page
integer
default:1
required
executionId
string

Search by execution ID (partial, case-insensitive match)

agentId
string<uuid>

Filter by agent ID

status
enum<string>[]

Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)

agentVersion
integer

Filter by agent version

createdAfter
string<date-time>

Filter executions created after this timestamp

createdBefore
string<date-time>

Filter executions created before this timestamp

humanLabels
string<uuid>[]

Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)

outcomeLabel
string

Filter by execution result outcome (partial, case-insensitive match)

metadataKey
string

Filter by metadata key - must be used together with metadataValue

metadataValue
string

Filter by metadata value - must be used together with metadataKey

sortField
enum<string>

Fields that can be used for sorting executions

Available options:
created_at,
status
sortDirection
enum<string>
Available options:
asc,
desc

Response

The request has succeeded.

items
object[]
required
page
integer
required
pageSize
integer
required
total
integer
required