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

# Trigger Automation

> A `POST` to the `/automations/{automation}/trigger` endpoint allows your application to trigger an automation.
Pass `now` (or omit it to use today) to evaluate the automation as of a specific date. Set `dry_run` to `true`
to simulate the automation without creating any production records or firing events; a dry run may also accept
a `start_date` and `end_date` to simulate every day across a range.



## OpenAPI

````yaml post /v3/automations/{automation}/trigger
openapi: 3.1.0
info:
  title: Omneo
  version: 0.0.1
servers:
  - url: https://api.{tenant}.getomneo.com/api
    variables:
      tenant:
        default: example
security: []
paths:
  /v3/automations/{automation}/trigger:
    post:
      tags:
        - Automation
      summary: Trigger Automation
      description: >-
        A `POST` to the `/automations/{automation}/trigger` endpoint allows your
        application to trigger an automation.

        Pass `now` (or omit it to use today) to evaluate the automation as of a
        specific date. Set `dry_run` to `true`

        to simulate the automation without creating any production records or
        firing events; a dry run may also accept

        a `start_date` and `end_date` to simulate every day across a range.
      operationId: automation.trigger
      parameters:
        - name: automation
          in: path
          required: true
          description: The automation ID
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TriggerAutomation'
      responses:
        '202':
          description: ''
        '204':
          description: No content
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '403':
          $ref: '#/components/responses/AuthorizationException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '422':
          $ref: '#/components/responses/ValidationException'
components:
  schemas:
    TriggerAutomation:
      type: object
      properties:
        now:
          type:
            - string
            - 'null'
          format: date
        force:
          type:
            - boolean
            - 'null'
        dry_run:
          type:
            - boolean
            - 'null'
        start_date:
          type:
            - string
            - 'null'
          format: date
        end_date:
          type:
            - string
            - 'null'
          format: date
      title: TriggerAutomation
  responses:
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    AuthorizationException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
              - message
              - errors

````