---
title: "Search All Automation Executions"
method: POST
path: "/api/v1/search/all_automation_executions"
tags: ["Automations"]
---

# Search All Automation Executions

`POST /api/v1/search/all_automation_executions`

Search across all automation executions in the tenant, with filters for state, template, app, and subject user.
 Each AutomationExecutionView row is large — request a small page_size (≤10) and set expand_mask to only the paths you need; broad expansion inlines whole related objects and bloats the response.

## Request body

- C1ApiAutomationsV1SearchAllAutomationExecutionsRequest — The SearchAllAutomationExecutionsRequest message.
  - `appIds` string[], nullable — Filter to executions associated with one or more apps.
  - `automationTemplateIds` string[], nullable — Filter to one or more specific automation templates.
  - `executionStates` string[], nullable — Filter by execution state (e.g. DONE, ERROR).
  - `expandMask` C1ApiAutomationsV1AutomationExecutionExpandMask — The AutomationExecutionExpandMask message.
    - `paths` string[], nullable — The paths field.
  - `pageSize` integer — Maximum number of results to return per page.
  - `pageToken` string — Pagination token from a previous SearchAllAutomationExecutionsResponse.
  - `subjectUserIds` string[], nullable — Filter to executions where one or more C1 users are subjects.

## Response `200`

Successful response

- C1ApiAutomationsV1SearchAllAutomationExecutionsResponse — The SearchAllAutomationExecutionsResponse message.
  - `expanded` object[], nullable — Related objects requested via the expand mask.
    - `@type` string — The type of the serialized message.
  - `list` C1ApiAutomationsV1AutomationExecutionView[], nullable — The page of execution views matching the search criteria.
    - `automationExecution` C1ApiAutomationsV1AutomationExecution — The AutomationExecution message.
      - `automationTemplateId` string — The automationTemplateId field.
      - `completedAt` string, date-time, nullable
      - `context` C1ApiAutomationsV1AutomationContext — The AutomationContext message.
        - `context` object, nullable
      - `createdAt` string, date-time, nullable
      - `currentVersion` integer — The currentVersion field.
      - `deletedAt` string, date-time, nullable
      - `duration` string, duration, nullable
      - `id` string, int64 — The id field.
      - `isDraft` boolean — The isDraft field.
      - `state` 'AUTOMATION_EXECUTION_STATE_UNSPECIFIED' | 'AUTOMATION_EXECUTION_STATE_PENDING' | 'AUTOMATION_EXECUTION_STATE_CREATING' | 'AUTOMATION_EXECUTION_STATE_GET_STEP' | 'AUTOMATION_EXECUTION_STATE_PROCESS_STEP' | 'AUTOMATION_EXECUTION_STATE_COMPLETE_STEP' | 'AUTOMATION_EXECUTION_STATE_DONE' | 'AUTOMATION_EXECUTION_STATE_ERROR' | 'AUTOMATION_EXECUTION_STATE_TERMINATE' | 'AUTOMATION_EXECUTION_STATE_WAITING' | 'AUTOMATION_EXECUTION_STATE_PAUSED_BY_CIRCUIT_BREAKER' — The state field.
      - `updatedAt` string, date-time, nullable
    - `automationExecutionTriggerPath` string — The automationExecutionTriggerPath field.
    - `automationPath` string — The automationPath field.
  - `nextPageToken` string — Token to retrieve the next page of results, empty when no more results exist.

---

[API](https://skmtc.net/conductorone/apis/c1-api.md) · [All operations](https://skmtc.net/conductorone/apis/c1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conductorone/c1-api/revisions/f2cf3228f366/schema)
