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

# Create Automation

> Create a new automation for a project



## OpenAPI

````yaml https://api.oviond.com/openapi.json post /v1/automations
openapi: 3.1.0
info:
  title: Oviond Backend API
  version: 1.0.0
  description: Authentication, account management, billing, and media services for Oviond.
  x-logo:
    url: https://app.oviond.com/img/oviond-full-logo.svg
    altText: Oviond
servers:
  - url: https://api.oviond.com
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/automations:
    post:
      tags:
        - Automations
      summary: Create Automation
      description: Create a new automation for a project
      operationId: create_automation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAutomationRequest'
            example:
              parent_id: projAbc123
              name: Monthly Report
              frequency: monthly
              day: '1'
              hours: '9'
              minutes: '00'
              timezone: America/New_York
              recipients:
                - client@example.com
              template_id: tmplAbc123
              sender_id: sndrAbc123
              date_text: Last 30 Days
      responses:
        '201':
          description: Automation created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAutomationResponse'
        '404':
          description: Parent project not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
components:
  schemas:
    CreateAutomationRequest:
      type: object
      properties:
        parent_id:
          type: string
          minLength: 1
          description: Project ID this automation belongs to
        name:
          type: string
        frequency:
          type: string
          enum:
            - daily
            - weekly
            - monthly
          example: weekly
        day:
          type: string
          example: monday
        hours:
          type: string
          example: '9'
        minutes:
          type: string
          example: '00'
        timezone:
          $ref: '#/components/schemas/IanaTimezone'
        time_format:
          type: string
          enum:
            - AM
            - PM
        recipients:
          type: array
          items:
            type: string
            format: email
          minItems: 1
        template_id:
          type: string
          minLength: 1
          description: >-
            Saved email template id, or the literal "custom" to save a new
            template from the custom payload
        sender_id:
          type: string
          minLength: 1
          description: Saved email sender id
        custom:
          type: object
          properties:
            name:
              type: string
              minLength: 1
            subject:
              type: string
              minLength: 1
            message:
              type: string
              minLength: 1
            button_text:
              type:
                - string
                - 'null'
            button_top:
              type: boolean
          required:
            - name
            - subject
            - message
          description: >-
            Required when template_id === "custom" — saved as a new named email
            template (name + subject + message)
        date_text:
          type: string
          enum:
            - Today
            - Yesterday
            - Last 7 Days
            - Last 30 Days
            - Last 60 Days
            - Last Month
            - This Month
            - Last 2 Months
            - Last 3 Months
            - Last 12 Months
            - This Year
            - Last Year
          example: Last 30 Days
      required:
        - parent_id
        - name
        - frequency
        - hours
        - minutes
        - timezone
        - recipients
        - template_id
        - sender_id
        - date_text
    CreateAutomationResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          type: object
          properties:
            automation_id:
              type: string
            template_id:
              type: string
          required:
            - automation_id
            - template_id
      required:
        - success
        - data
    IanaTimezone:
      type: string
      example: America/New_York
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Oviond API key (prefix `oviond_`) sent as a Bearer token — the
        credential for REST/programmatic and headless integrations. Manage keys
        in Settings → API Keys. API keys do NOT authenticate the MCP endpoint
        (/mcp), which uses OAuth 2.1 + PKCE.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Supabase-issued JWT used by the Oviond web app session. External API
        consumers should authenticate with an Oviond API key (ApiKeyAuth)
        instead.

````