> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Triggers

> List triggers newest first, each with its config and bindings.

``order_by`` and ``sort`` sort by another field; ties keep newest first.
A cursor only continues the order it came from (400 otherwise).

``workflow_id`` or ``agent_preset_id`` keeps the triggers bound to that
target. ``status`` keeps online or offline triggers, and ``search`` those
whose name contains it. ``locked`` counts the triggers left out because
the plan lacks their kind's feature; it follows every filter but
``status`` and ``search``. ``counts`` holds the workspace's listable
triggers per kind, ignoring every filter.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json get /workspaces/{workspace_id}/triggers
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /workspaces/{workspace_id}/triggers:
    get:
      tags:
        - triggers
      summary: List Triggers
      description: >-
        List triggers newest first, each with its config and bindings.


        ``order_by`` and ``sort`` sort by another field; ties keep newest first.

        A cursor only continues the order it came from (400 otherwise).


        ``workflow_id`` or ``agent_preset_id`` keeps the triggers bound to that

        target. ``status`` keeps online or offline triggers, and ``search``
        those

        whose name contains it. ``locked`` counts the triggers left out because

        the plan lacks their kind's feature; it follows every filter but

        ``status`` and ``search``. ``counts`` holds the workspace's listable

        triggers per kind, ignoring every filter.
      operationId: triggers-list_triggers
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
        - name: kind
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/TriggerKind'
              - type: 'null'
            title: Kind
        - name: source_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Source Id
        - name: agent_preset_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Agent Preset Id
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/TriggerStatus'
              - type: 'null'
            title: Status
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 255
              - type: 'null'
            title: Search
        - name: order_by
          in: query
          required: false
          schema:
            enum:
              - created_at
              - name
              - kind
              - status
            type: string
            description: 'Field to sort by: created_at (default), name, kind or status'
            default: created_at
            title: Order By
          description: 'Field to sort by: created_at (default), name, kind or status'
        - name: sort
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                enum:
                  - asc
                  - desc
              - type: 'null'
            description: 'asc or desc. Default: desc for created_at, asc otherwise'
            title: Sort
          description: 'asc or desc. Default: desc for created_at, asc otherwise'
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 20
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 8192
              - type: 'null'
            title: Cursor
        - name: workflow_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: wf_[0-9a-zA-Z]+
              - type: string
                pattern: wf-[0-9a-f]{32}
              - type: 'null'
            title: Workflow Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TriggerListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    TriggerKind:
      type: string
      enum:
        - object_storage
        - schedule
        - webhook
        - case_trigger
        - table
      title: TriggerKind
      description: What a trigger listens to. Each kind has its own source and config.
    TriggerStatus:
      type: string
      enum:
        - online
        - offline
      title: TriggerStatus
      description: Whether a source, trigger or binding takes part in dispatch.
    TriggerListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/TriggerRead'
          type: array
          title: Items
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: Cursor for next page
        prev_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Prev Cursor
          description: Cursor for previous page
        has_more:
          type: boolean
          title: Has More
          description: Whether more items exist
          default: false
        has_previous:
          type: boolean
          title: Has Previous
          description: Whether previous items exist
          default: false
        total_estimate:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Estimate
          description: Estimated total count from table statistics
        locked:
          items:
            $ref: '#/components/schemas/LockedTriggerCount'
          type: array
          title: Locked
          description: >-
            Triggers matching the filters that are not listed because the plan
            lacks their kind's feature, counted per kind. They are kept and come
            back when the plan has the feature again.
        counts:
          items:
            $ref: '#/components/schemas/TriggerKindCount'
          type: array
          title: Counts
          description: >-
            The workspace's triggers per kind the caller can list, ignoring
            every filter. Kinds with none are left out.
      type: object
      required:
        - items
      title: TriggerListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TriggerRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        kind:
          $ref: '#/components/schemas/TriggerKind'
        name:
          type: string
          title: Name
        status:
          $ref: '#/components/schemas/TriggerStatus'
        config:
          oneOf:
            - $ref: '#/components/schemas/ObjectStorageTriggerConfigRead'
            - $ref: '#/components/schemas/ScheduleTriggerConfigRead'
            - $ref: '#/components/schemas/WebhookTriggerConfigRead'
            - $ref: '#/components/schemas/CaseEventTriggerConfigRead'
            - $ref: '#/components/schemas/TableTriggerConfigRead'
          title: Config
          discriminator:
            propertyName: kind
            mapping:
              case_trigger: '#/components/schemas/CaseEventTriggerConfigRead'
              object_storage: '#/components/schemas/ObjectStorageTriggerConfigRead'
              schedule: '#/components/schemas/ScheduleTriggerConfigRead'
              table: '#/components/schemas/TableTriggerConfigRead'
              webhook: '#/components/schemas/WebhookTriggerConfigRead'
        bindings:
          items:
            $ref: '#/components/schemas/TriggerBindingRead'
          type: array
          title: Bindings
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - kind
        - name
        - status
        - config
        - bindings
        - created_at
        - updated_at
      title: TriggerRead
    LockedTriggerCount:
      properties:
        kind:
          $ref: '#/components/schemas/TriggerKind'
        entitlement:
          $ref: '#/components/schemas/Entitlement'
          description: The plan feature the kind needs
        count:
          type: integer
          title: Count
          description: How many such triggers match the list's filters
      type: object
      required:
        - kind
        - entitlement
        - count
      title: LockedTriggerCount
      description: |-
        Triggers of one kind that a list leaves out because the plan lacks
        the kind's feature.
    TriggerKindCount:
      properties:
        kind:
          $ref: '#/components/schemas/TriggerKind'
        count:
          type: integer
          title: Count
      type: object
      required:
        - kind
        - count
      title: TriggerKindCount
      description: How many triggers of one kind the workspace has that a list can show.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ObjectStorageTriggerConfigRead:
      properties:
        kind:
          type: string
          const: object_storage
          title: Kind
        source_id:
          type: string
          format: uuid
          title: Source Id
          description: The event source to read object events from
        key_prefix:
          type: string
          maxLength: 1024
          title: Key Prefix
          description: Only keys starting with this fire. Empty matches every key.
          default: ''
        source_name:
          type: string
          title: Source Name
          description: The event source's display name
      type: object
      required:
        - kind
        - source_id
        - source_name
      title: ObjectStorageTriggerConfigRead
    ScheduleTriggerConfigRead:
      properties:
        cron:
          anyOf:
            - type: string
            - type: 'null'
          title: Cron
          description: A cron expression. Set this or `every`.
        every:
          anyOf:
            - type: string
              format: duration
            - type: 'null'
          title: Every
          description: ISO 8601 interval. Set this or `cron`.
        offset:
          anyOf:
            - type: string
              format: duration
            - type: 'null'
          title: Offset
          description: ISO 8601 delay before the first interval run. Interval only.
        start_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start At
          description: ISO 8601 datetime before which it does not run
        end_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: End At
          description: ISO 8601 datetime after which it stops
        timeout:
          type: number
          minimum: 0
          title: Timeout
          description: Most seconds each run may take. 0 means no timeout.
          default: 0
        inputs:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Inputs
          description: The workflow's trigger inputs for each run
        kind:
          type: string
          const: schedule
          title: Kind
        workflow_id:
          type: string
          title: Workflow Id
          description: The workflow the schedule runs
        schedule_id:
          type: string
          title: Schedule Id
          description: The schedule's ID in `/schedules`, which does not change
      type: object
      required:
        - kind
        - workflow_id
        - schedule_id
      title: ScheduleTriggerConfigRead
    WebhookTriggerConfigRead:
      properties:
        kind:
          type: string
          const: webhook
          title: Kind
        workflow_id:
          type: string
          title: Workflow Id
          description: The workflow the webhook runs
        webhook_id:
          type: string
          format: uuid
          title: Webhook Id
          description: The webhook's ID, which does not change
        methods:
          items:
            type: string
          type: array
          title: Methods
          description: HTTP methods the webhook accepts
        allowlisted_cidrs:
          items:
            type: string
          type: array
          title: Allowlisted Cidrs
          description: Addresses allowed to call the webhook. Empty allows all.
        include_headers:
          type: boolean
          title: Include Headers
        awaitable:
          type: boolean
          title: Awaitable
          description: >-
            Wait mode: on, the webhook starts its own workflow only and /wait
            works; off, it starts every online target
        url:
          type: string
          title: Url
          description: The webhook URL. It contains the webhook's secret.
        api_key:
          anyOf:
            - $ref: '#/components/schemas/WebhookApiKeyRead'
            - type: 'null'
          description: The webhook's API key, if it has one (preview only)
      type: object
      required:
        - kind
        - workflow_id
        - webhook_id
        - methods
        - allowlisted_cidrs
        - include_headers
        - awaitable
        - url
        - api_key
      title: WebhookTriggerConfigRead
      description: >-
        The webhook as ``/workflows/{id}/webhook`` shows it.


        Readable only with ``workflow:read``, the scope that shows the same URL
        on

        the workflow page.
    CaseEventTriggerConfigRead:
      properties:
        kind:
          type: string
          const: case_trigger
          title: Kind
        workflow_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow Id
          description: >-
            The workflow whose case trigger this is, or null for a case trigger
            with no workflow of its own
        case_trigger_id:
          type: string
          format: uuid
          title: Case Trigger Id
          description: The case trigger's ID, which does not change
        event_types:
          items:
            $ref: '#/components/schemas/CaseEventType'
          type: array
          title: Event Types
          description: Case event types that start the targets
        tag_filters:
          items:
            type: string
          type: array
          title: Tag Filters
          description: Case tag refs that limit which cases match. Empty matches all.
      type: object
      required:
        - kind
        - workflow_id
        - case_trigger_id
        - event_types
        - tag_filters
      title: CaseEventTriggerConfigRead
      description: |-
        The case trigger as ``/workflows/{id}/case-trigger`` shows it.

        Readable only with ``workflow:read`` and the ``case_addons`` plan
        feature, as on the workflow page.
    TableTriggerConfigRead:
      properties:
        kind:
          type: string
          const: table
          title: Kind
        table_id:
          type: string
          format: uuid
          title: Table Id
          description: The table whose rows fire it
        operations:
          items:
            $ref: '#/components/schemas/TableTriggerOperation'
          type: array
          minItems: 1
          title: Operations
          description: 'The row changes it fires on: `insert`, `update` or both'
        filter:
          anyOf:
            - $ref: '#/components/schemas/Filter-Output'
            - type: 'null'
          description: >-
            Only rows matching this filter fire, checked against the row as
            written. Uses the filter language of table queries, over the table's
            column names and `created_at` or `updated_at`. Null matches every
            row.
        table_name:
          type: string
          title: Table Name
          description: The table's name
        filter_error:
          anyOf:
            - type: string
            - type: 'null'
          title: Filter Error
          description: >-
            Set when the filter no longer fits the table, for example after a
            column it uses was deleted. The trigger then matches no rows until
            its filter is replaced. A deleted column shows as its ID.
      type: object
      required:
        - kind
        - table_id
        - operations
        - table_name
      title: TableTriggerConfigRead
    TriggerBindingRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        trigger_id:
          type: string
          format: uuid
          title: Trigger Id
        target_type:
          $ref: '#/components/schemas/TriggerTargetType'
        target_id:
          type: string
          format: uuid
          title: Target Id
          description: The workflow or agent preset ID
        target_name:
          type: string
          title: Target Name
          description: The workflow title or agent preset name
        instruction:
          anyOf:
            - type: string
            - type: 'null'
          title: Instruction
        status:
          $ref: '#/components/schemas/TriggerStatus'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - trigger_id
        - target_type
        - target_id
        - target_name
        - instruction
        - status
        - created_at
        - updated_at
      title: TriggerBindingRead
    Entitlement:
      type: string
      enum:
        - custom_registry
        - git_sync
        - agent_addons
        - case_addons
        - rbac_addons
        - service_accounts
        - workspace_chat
        - multi_workspace
        - external_secret_stores
        - agent_channels
        - semantic_search
        - forms
        - tunnels
        - agent_runtime_preview
        - agent_runtime_workflows
        - agent_channels_preview
        - object_triggers
        - trigger_targets
        - table_triggers
        - custom_branding
        - custom_views
      title: Entitlement
      description: Available feature entitlements.
    WebhookApiKeyRead:
      properties:
        preview:
          type: string
          title: Preview
        created_at:
          type: string
          format: date-time
          title: Created At
        last_used_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Used At
        revoked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Revoked At
        is_active:
          type: boolean
          title: Is Active
          default: false
      type: object
      required:
        - preview
        - created_at
      title: WebhookApiKeyRead
    CaseEventType:
      type: string
      enum:
        - case_created
        - case_updated
        - case_closed
        - case_reopened
        - case_viewed
        - priority_changed
        - severity_changed
        - verdict_changed
        - status_changed
        - fields_changed
        - assignee_changed
        - attachment_created
        - attachment_deleted
        - tag_added
        - tag_removed
        - payload_changed
        - task_created
        - task_deleted
        - task_status_changed
        - task_priority_changed
        - task_workflow_changed
        - task_assignee_changed
        - dropdown_value_changed
        - table_row_linked
        - table_row_unlinked
        - comment_created
        - comment_updated
        - comment_deleted
        - comment_reply_created
        - comment_reply_updated
        - comment_reply_deleted
        - parent_changed
        - sub_cases_added
        - sub_cases_removed
      title: CaseEventType
      description: Case activity type values.
    TableTriggerOperation:
      type: string
      enum:
        - insert
        - update
      title: TableTriggerOperation
      description: A row change a ``table`` trigger fires on.
    Filter-Output:
      oneOf:
        - $ref: '#/components/schemas/Condition-Output'
        - $ref: '#/components/schemas/AndClause-Output'
        - $ref: '#/components/schemas/OrClause-Output'
        - $ref: '#/components/schemas/NotClause-Output'
    TriggerTargetType:
      type: string
      enum:
        - workflow
        - agent
      title: TriggerTargetType
      description: What a trigger binding starts.
    Condition-Output:
      properties:
        field:
          type: string
          minLength: 1
          title: Field
        op:
          $ref: '#/components/schemas/FilterOp'
        value:
          anyOf:
            - $ref: '#/components/schemas/FilterValue'
            - type: 'null'
      additionalProperties: false
      type: object
      required:
        - field
        - op
      title: Condition
      description: A predicate over one resolver-defined field.
    AndClause-Output:
      properties:
        and:
          items:
            $ref: '#/components/schemas/Filter-Output'
          type: array
          minItems: 1
          title: And
      additionalProperties: false
      type: object
      required:
        - and
      title: AndClause
      description: A conjunction of one or more filters.
    OrClause-Output:
      properties:
        or:
          items:
            $ref: '#/components/schemas/Filter-Output'
          type: array
          minItems: 1
          title: Or
      additionalProperties: false
      type: object
      required:
        - or
      title: OrClause
      description: A disjunction of one or more filters.
    NotClause-Output:
      properties:
        not:
          $ref: '#/components/schemas/Filter-Output'
      additionalProperties: false
      type: object
      required:
        - not
      title: NotClause
      description: The negation of one filter.
    FilterOp:
      type: string
      enum:
        - eq
        - ne
        - in
        - not_in
        - gt
        - gte
        - lt
        - lte
        - contains
        - starts_with
        - is_null
      title: FilterOp
      description: Operations supported by the shared filter language.
    FilterValue:
      anyOf:
        - $ref: '#/components/schemas/FilterScalar'
        - items:
            $ref: '#/components/schemas/FilterScalar'
          type: array
    FilterScalar:
      anyOf:
        - type: string
        - type: integer
        - type: number
        - type: boolean
        - type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
        - type: string
          format: date-time
        - type: string
          format: date
        - type: string
          format: uuid
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.