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

# Get automation event schemas

> Return all supported trigger event schemas, keyed by source then event name.

Each schema describes the event's payload fields, which operators its
conditions support, and the valid `replies` verbs, so callers can
construct valid `triggers` for the create and update endpoints.

## Permissions

Requires a service user with the `ViewOrgAutomations` permission at the organization level.

## Usage

Call this endpoint before building automations: it returns every supported trigger event type (keyed by source, then event name) with its payload fields, the operators its conditions support, and the valid `replies` verbs, so you can construct valid `triggers` for the create and update endpoints. Sources that are not enabled for the organization are omitted.


## OpenAPI

````yaml v3-openapi.yaml GET /v3/organizations/{org_id}/automations/schemas
openapi: 3.1.0
info:
  description: Devin v3 API with Service User authentication and RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/organizations/{org_id}/automations/schemas:
    get:
      tags:
        - automations
      summary: Get automation event schemas
      description: >-
        Return all supported trigger event schemas, keyed by source then event
        name.


        Each schema describes the event's payload fields, which operators its

        conditions support, and the valid `replies` verbs, so callers can

        construct valid `triggers` for the create and update endpoints.
      operationId: >-
        handle_get_automation_schemas_v3_organizations__org_id__automations_schemas_get
      parameters:
        - description: 'Organization ID (prefix: org-)'
          in: path
          name: org_id
          required: true
          schema:
            example: org-abc123def456
            title: Org Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationSchemasResponse'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unprocessable Content
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Too Many Requests
components:
  schemas:
    AutomationSchemasResponse:
      additionalProperties: false
      properties:
        sources:
          additionalProperties:
            additionalProperties:
              $ref: '#/components/schemas/AutomationEventSchemaResponse'
            type: object
          description: Event source → event name → schema.
          title: Sources
          type: object
        update_semantics:
          description: >-
            PATCH semantics active for this organization: 'replace_groups' (a
            config group present in the request replaces the stored group
            wholesale) or 'merge_patch' (RFC 7396 for objects: omitted members
            of a present group keep their stored values, explicit nulls clear;
            list membership still replaces wholesale — deletion is resending the
            list without the element — but each sent element merges onto the
            stored element of the same type when that type appears exactly once
            on both sides; repeated types must be restated fully). Open enum —
            clients must tolerate new values.
          title: Update Semantics
          type: string
      required:
        - update_semantics
        - sources
      title: AutomationSchemasResponse
      type: object
    ProblemDetail:
      description: >-
        RFC 9457 application/problem+json error body for the v3 API.


        detail is retained from the legacy {"detail": ...} body for back-compat;
        the

        other members are additive. errors carries field-level validation
        failures

        (422 only).
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: A human-readable explanation specific to this occurrence.
          title: Detail
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: Field-level validation errors (422 responses only).
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: A URI reference (the request path) for this occurrence.
          title: Instance
        status:
          description: The HTTP status code.
          title: Status
          type: integer
        title:
          description: A short, human-readable summary of the problem type.
          title: Title
          type: string
        type:
          default: about:blank
          description: A URI reference identifying the problem type.
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
    AutomationEventSchemaResponse:
      additionalProperties: false
      properties:
        category:
          title: Category
          type: string
        event_type:
          title: Event Type
          type: string
        fields:
          additionalProperties:
            $ref: '#/components/schemas/AutomationSchemaFieldDef'
          description: >-
            Condition field path → field definition (type, label, required,
            options, ...).
          title: Fields
          type: object
        name:
          title: Name
          type: string
        supported_replies:
          description: Valid replies[].type verbs for this event type.
          items:
            type: string
          title: Supported Replies
          type: array
      required:
        - event_type
        - name
        - category
        - supported_replies
        - fields
      title: AutomationEventSchemaResponse
      type: object
    AutomationSchemaFieldDef:
      additionalProperties: false
      description: |-
        Flattened view of a condition field definition.

        Kind-specific attributes (``options``, ``min``/``max``/``unit``,
        ``granularity``, ``placeholder``) are populated only for the relevant
        ``type``.
      properties:
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        fixed:
          default: false
          title: Fixed
          type: boolean
        granularity:
          anyOf:
            - enum:
                - date
                - datetime
              type: string
            - type: 'null'
          title: Granularity
        label:
          title: Label
          type: string
        max:
          anyOf:
            - type: number
            - type: 'null'
          title: Max
        min:
          anyOf:
            - type: number
            - type: 'null'
          title: Min
        multiple:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Multiple
        options:
          anyOf:
            - items:
                $ref: '#/components/schemas/AutomationSchemaSelectOption'
              type: array
            - type: 'null'
          title: Options
        placeholder:
          anyOf:
            - type: string
            - type: 'null'
          title: Placeholder
        required:
          default: false
          title: Required
          type: boolean
        type:
          enum:
            - string
            - number
            - boolean
            - date
            - select
            - rrule
            - slack_channel
            - linear_team
            - incident_io_team
            - incident_io_severity
            - incident_io_status
            - incident_io_incident_type
            - github_repo
            - gitlab_repo
            - linear_label
            - linear_state
            - linear_assignee
            - linear_project
            - jira_project
            - jira_label
            - jira_status
            - jira_assignee
            - jira_epic
            - slack_user
            - slack_reaction
            - pylon_tag
            - pylon_status
            - file_paths
          title: Type
          type: string
        unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Unit
      required:
        - type
        - label
      title: AutomationSchemaFieldDef
      type: object
    AutomationSchemaSelectOption:
      additionalProperties: false
      properties:
        label:
          title: Label
          type: string
        value:
          title: Value
          type: string
      required:
        - value
        - label
      title: AutomationSchemaSelectOption
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Service User credential (prefix: cog_)'
      scheme: bearer
      type: http

````