Cordial automation templates API

The automation templates API from Cordial — 15 operation(s) for automation templates.

Operations 21

GET /v1/automationtemplates/{key} Get a single automation template #
PUT /v1/automationtemplates/{key} Update a single automation template #
DELETE /v1/automationtemplates/{key} Delete an automation template #
POST /v1/automationtemplates Add a new automation template #
GET /v1/automationtemplates Get automation templates #
POST /v1/automationtemplates/{key}/send Send a batch message from an automation template #
POST /v1/automationtemplates/{key}/senddraft Send a draft message of an automation template #
PUT /v1/automationtemplates/{key}/publish Publish a single automation template #
GET /v1/automationtemplates/{key}/renderdraft/{contactID} Render draft content of a single automation template #
GET /v1/automationtemplates/{key}/renderpublished/{contactID} Render published content of a single automation template #
GET /v2/automationtemplates/{key} Get a single automation template #
PUT /v2/automationtemplates/{key} Update an automation template #
DELETE /v2/automationtemplates/{key} Delete an automation template #
POST /v2/automationtemplates Add a new automation template #
GET /v2/automationtemplates Get automation templates #
POST /v2/automationtemplates/{key}/send Send a batch message from an automation template #
POST /v2/automationtemplates/{key}/senddraft Send a draft message of an automation template #
PUT /v2/automationtemplates/{key}/publish Publish a single automation template #
GET /v2/automationtemplates/{key}/renderdraft/{contactID} Render draft content of a single automation template #
GET /v2/automationtemplates/{key}/renderpublished/{contactID} Render published content of a single automation template #
GET /v2/automationtemplates/{key}/experimentperformance Get experiment performance for the published version of a single automation template #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cordial-automation-templates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cordial-automation-templates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cordial automation templates API
  termsOfService: https://cordial.zendesk.com
  version: '1.0'
  description: 'Operations tagged automation templates across 2 of this provider''s published API definitions: cordial-v1-openapi-original.json, cordial-v2-openapi-original.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.cordial.io/
tags:
- name: automation templates
paths:
  /v1/automationtemplates/{key}:
    get:
      security:
      - basicAuth: []
      summary: Get a single automation template
      operationId: gettemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Template Key
        required: true
        in: path
        schema:
          type: string
      - name: fields
        description: Fields (can be many, separate by comma)
        required: false
        in: query
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateShowAuto'
        '404':
          description: Records not found
    put:
      security:
      - basicAuth: []
      summary: Update a single automation template
      operationId: updateTemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Template Key
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: successful operation
        '404':
          description: Records not found
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateupdateAuto'
        description: Template object that needs to be updated to the system
        required: true
    delete:
      security:
      - basicAuth: []
      summary: Delete an automation template
      operationId: deleteTemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Delivery template key
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: successful operation
        '404':
          description: Records not found
  /v1/automationtemplates:
    post:
      security:
      - basicAuth: []
      summary: Add a new automation template
      operationId: addTemplate
      tags:
      - automation templates
      responses:
        '200':
          description: successful operation
        '422':
          description: KEY must be unique
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateAuto'
        description: Template object that needs to be added to the system
        required: true
    get:
      security:
      - basicAuth: []
      summary: Get automation templates
      operationId: getTemplates
      tags:
      - automation templates
      parameters:
      - name: fields
        description: Fields (can be many, separate by comma)
        required: false
        in: query
        schema:
          type: string
      - name: ct[gt]
        description: 'Create date greater '
        required: false
        in: query
        schema:
          type: string
      - name: ct[gte]
        description: Create date greater or equal
        required: false
        in: query
        schema:
          type: string
      - name: ct[lt]
        description: Create date less
        required: false
        in: query
        schema:
          type: string
      - name: ct[lte]
        description: Create date less or equal
        required: false
        in: query
        schema:
          type: string
      - name: lm[gt]
        description: 'Last modified date greater '
        required: false
        in: query
        schema:
          type: string
      - name: lm[gte]
        description: Last modified date greater or equal
        required: false
        in: query
        schema:
          type: string
      - name: lm[lt]
        description: Last modified date less
        required: false
        in: query
        schema:
          type: string
      - name: lm[lte]
        description: Last modified date less or equal
        required: false
        in: query
        schema:
          type: string
      - name: tags
        required: false
        in: query
        description: Message tags (can be many, separate by comma)
        schema:
          type: string
      - name: page
        description: Number of page
        required: false
        in: query
        schema:
          type: string
      - name: per_page
        description: Count templates on page
        required: false
        in: query
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TemplateShowAuto'
  /v1/automationtemplates/{key}/send:
    post:
      security:
      - basicAuth: []
      summary: Send a batch message from an automation template
      operationId: sentMessage
      tags:
      - automation templates
      parameters:
      - name: key
        description: Delivery template key
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateShowAuto'
        '404':
          description: Template not exist
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecipientsAuto'
        description: Array of contacts
        required: true
  /v1/automationtemplates/{key}/senddraft:
    post:
      security:
      - basicAuth: []
      summary: Send a draft message of an automation template
      operationId: sentDraftMessage
      tags:
      - automation templates
      parameters:
      - name: key
        description: Delivery template key
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateShowAuto'
        '422':
          description: Template not exist
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecipientsAuto'
        description: Array of contacts
        required: true
  /v1/automationtemplates/{key}/publish:
    put:
      security:
      - basicAuth: []
      summary: Publish a single automation template
      operationId: publishTemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Delivery template key
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: successful operation
        '404':
          description: Template not exist
        '422':
          description: Unable to publish template. Ensure a draft exists
  /v1/automationtemplates/{key}/renderdraft/{contactID}:
    get:
      security:
      - basicAuth: []
      summary: Render draft content of a single automation template
      operationId: renderPreviewAutomationtemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Delivery template key
        required: true
        in: path
        schema:
          type: string
      - name: contactID
        description: Contact ID
        required: true
        in: path
        schema:
          type: string
      - name: experiment
        description: 'Name of experiment '
        required: false
        in: query
        schema:
          type: string
      - name: variant
        description: Variant name
        required: false
        in: query
        schema:
          type: string
      responses:
        '201':
          description: Successful operation
        '404':
          description: Record is not found
  /v1/automationtemplates/{key}/renderpublished/{contactID}:
    get:
      security:
      - basicAuth: []
      summary: Render published content of a single automation template
      operationId: renderPublishedAutomationtemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Delivery template key
        required: true
        in: path
        schema:
          type: string
      - name: contactID
        description: Contact ID
        required: true
        in: path
        schema:
          type: string
      - name: experiment
        description: 'Name of experiment '
        required: false
        in: query
        schema:
          type: string
      - name: variant
        description: Variant name
        required: false
        in: query
        schema:
          type: string
      responses:
        '201':
          description: Successful operation
        '404':
          description: Record is not found
  /v2/automationtemplates/{key}:
    get:
      security:
      - basicAuth: []
      summary: Get a single automation template
      description: Retrieves the specified automation template. The automation template record is defined by its unique `key` value.
      operationId: gettemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Automation template key value.
        required: true
        in: path
        schema:
          type: string
      - name: fields
        description: Fields to include (can be many, comma-separated).
        required: false
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateShowAuto_2'
        '404':
          $ref: '#/components/responses/RecordNotFound'
    put:
      security:
      - basicAuth: []
      summary: Update an automation template
      description: Updates automation template fields. The automation template record is defined by its unique `key` value. For example, /automationtemplates/promo_01_20_2018 allows the template with the key value of <b>promo_01_20_2018</b> to be updated using the appropriate JSON body.
      operationId: updateTemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Automation template key value.
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationTemplateSuccess'
        '404':
          $ref: '#/components/responses/RecordNotFound'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateupdateAuto_2'
        description: Template object that needs to be updated.
        required: true
    delete:
      security:
      - basicAuth: []
      summary: Delete an automation template
      description: Deletes an existing automation template. The automation template is defined by its unique `key` value. For example, /automationtemplate/newsletter_week1 would delete the template with the key value of <b>newsletter_week1</b>.
      operationId: deleteTemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Automation template key value.
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationTemplateDelete'
        '404':
          $ref: '#/components/responses/RecordNotFound'
  /v2/automationtemplates:
    post:
      security:
      - basicAuth: []
      summary: Add a new automation template
      description: Creates a new automation template using the appropriate JSON body. Posting more than once for the same template key will generate an error. Use the PUT method to change or update fields once the template is created.
      operationId: addTemplate
      tags:
      - automation templates
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationTemplateCreated'
        '422':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationTemplateError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateAuto_2'
        description: Template object that needs to be added.
        required: true
    get:
      security:
      - basicAuth: []
      summary: Get automation templates
      description: Retrieves automation templates. Response data can be filtered using template `fields`, message `tags`, and `timestamp` values.
      operationId: getTemplates
      tags:
      - automation templates
      parameters:
      - name: fields
        description: Fields to include (can be many, comma-separated).
        required: false
        in: query
        schema:
          type: string
      - name: ct[gt]
        description: Create date is greater than.
        required: false
        in: query
        schema:
          type: string
      - name: ct[gte]
        description: Create date is greater than or equal to.
        required: false
        in: query
        schema:
          type: string
      - name: ct[lt]
        description: Create date is less than.
        required: false
        in: query
        schema:
          type: string
      - name: ct[lte]
        description: Create date is less than or equal to.
        required: false
        in: query
        schema:
          type: string
      - name: lm[gt]
        description: Last modified date is greater than.
        required: false
        in: query
        schema:
          type: string
      - name: lm[gte]
        description: Last modified date is greater than or equal to.
        required: false
        in: query
        schema:
          type: string
      - name: lm[lt]
        description: Last modified date is less than.
        required: false
        in: query
        schema:
          type: string
      - name: lm[lte]
        description: Last modified date is less than or equal to.
        required: false
        in: query
        schema:
          type: string
      - name: tags
        required: false
        in: query
        description: Returns automation templates that contain specified message tags (can be many, comma-separated).
        schema:
          type: string
      - name: orchestrationID
        required: false
        in: query
        description: Returns automation templates tied to specified orchestration.
        schema:
          type: string
      - name: compositionID
        required: false
        in: query
        description: Returns automation templates tied to specific version of orchestration.
        schema:
          type: string
      - name: page
        description: Specific page number to be returned.
        required: false
        in: query
        schema:
          type: string
      - name: per_page
        description: Number or records per page.
        required: false
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TemplateShowAuto_2'
  /v2/automationtemplates/{key}/send:
    post:
      security:
      - basicAuth: []
      summary: Send a batch message from an automation template
      description: Sends an existing automation template. The template can be sent to one or more contacts, as specified within the JSON body. This endpoint will successfully create a new contact record if the contact key value in the request does not already exist. The newly added contact will have a subscribe status of <b>none</b> and will not receive promotional messages until subscribed to the appropriate channel. If the contact key exists, data passed in the contact object will upsert corresponding contact attributes in the Cordial database.
      operationId: sentMessage
      tags:
      - automation templates
      parameters:
      - name: key
        description: Automation template key value.
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateSendResponse'
        '404':
          $ref: '#/components/responses/RecordNotFound'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecipientsAuto_2'
        description: One or more `contact` objects along with any external variables that will render content in the message.
        required: true
  /v2/automationtemplates/{key}/senddraft:
    post:
      security:
      - basicAuth: []
      summary: Send a draft message of an automation template
      description: Sends an existing automation template draft for testing purposes. For example, /automationtemplates/promo_01_20_2018/senddraft allows the draft automation template with the key value of <b>promo_01_20_2018</b> to be sent using the appropriate JSON body. The template can be sent to one or more contacts, as specified within the JSON body.
      operationId: sentDraftMessage
      tags:
      - automation templates
      parameters:
      - name: key
        description: Automation template key value.
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateSendDraftResponse'
        '422':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationTemplateError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecipientsAutoTest'
        description: One or more `contact` objects along with any external variables that will render content in the message.
        required: true
  /v2/automationtemplates/{key}/publish:
    put:
      security:
      - basicAuth: []
      summary: Publish a single automation template
      description: Publishes an existing automation template draft. The automation template record is defined by its unique `key` value.
      operationId: publishTemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Automation template key value.
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationTemplateSuccess'
        '404':
          $ref: '#/components/responses/RecordNotFound'
        '422':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationTemplateError'
  /v2/automationtemplates/{key}/renderdraft/{contactID}:
    get:
      security:
      - basicAuth: []
      summary: Render draft content of a single automation template
      description: Retrieves the message headers, the rendered HTML, and experiment name and variants of an automated template draft for a specified contact. Additionally, experiment names and variants can be passed using a query string.
      operationId: renderPreviewAutomationtemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Automation template key value.
        required: true
        in: path
        schema:
          type: string
      - name: contactID
        description: Cordial database contact ID (cID) value.
        required: true
        in: path
        schema:
          type: string
      - name: experiment
        description: Returns the automation template that contains the specified experiment name. Variant is required if experiment is specified.
        required: false
        in: query
        schema:
          type: string
      - name: variant
        description: Returns the automation template that contains the specified experiment variant. Experiment is required if variant is specified.
        required: false
        in: query
        schema:
          type: string
      responses:
        '201':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationTemplateRenderDraft'
        '404':
          $ref: '#/components/responses/RecordNotFound'
  /v2/automationtemplates/{key}/renderpublished/{contactID}:
    get:
      security:
      - basicAuth: []
      summary: Render published content of a single automation template
      description: Retrieves the message headers, the rendered HTML, and experiment name and variants of a published automated template for a specified contact. Additionally, experiment names and variants can be passed using a query string.
      operationId: renderPublishedAutomationtemplate
      tags:
      - automation templates
      parameters:
      - name: key
        description: Automation template key value.
        required: true
        in: path
        schema:
          type: string
      - name: contactID
        description: Cordial database contact ID (cID) value.
        required: true
        in: path
        schema:
          type: string
      - name: experiment
        description: Returns the automation template that contains the specified experiment name. Variant is required if experiment is specified.
        required: false
        in: query
        schema:
          type: string
      - name: variant
        description: Returns the automation template that contains the specified experiment variant. Experiment is required if variant is specified.
        required: false
        in: query
        schema:
          type: string
      responses:
        '201':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationTemplateRenderPublish'
        '404':
          $ref: '#/components/responses/RecordNotFound'
  /v2/automationtemplates/{key}/experimentperformance:
    get:
      security:
      - basicAuth: []
      summary: Get experiment performance for the published version of a single automation template
      description: Retrieves experiment performance for the published version of a single automation template. The automation template record is defined by its unique template `key` value.
      operationId: getAutomationTemplateExperimentPerformance
      tags:
      - automation templates
      parameters:
      - name: key
        description: Automation template key value.
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperimentsStats'
        '404':
          $ref: '#/components/responses/RecordNotFound'
components:
  schemas:
    TemplateAuto:
      title: Template
      type: object
      required:
      - key
      - channel
      - name
      - baseAggregation
      - message
      properties:
        key:
          type: string
        name:
          type: string
        tags:
          type: array
          items:
            type: string
        channel:
          type: string
          description: can be 'email', 'push' etc.
        classification:
          type: string
          enum:
          - transactional
          - promotional
        baseAggregation:
          type: string
          enum:
          - daily
          - hourly
        message:
          $ref: '#/components/schemas/MessageAuto'
        transportID:
          type: string
        draftContent:
          type: boolean
          description: If use this flag content will be submitted as a draft, in other case content will be published
        trackLinks:
          type: string
          enum:
          - enabled
          - disabled
        priority:
          type: number
          default: 2
          description: Messages with a higher priority will be processed before those with a lower priority, 1 - Low, 2 - Standard, 3 - High,4 - Highest
    TemplateAuto_2:
      title: Template
      type: object
      required:
      - key
      - channel
      - name
      - baseAggregation
      - message
      properties:
        key:
          type: string
          description: Unique automation template key. The key may only contain letters, numbers and dashes.
        name:
          type: string
          description: Automation template name.
        tags:
          type: array
          description: An array of auotmation template tags (e.g. ["birthday","promo"]). Tags are case-sensitive.
          items:
            type: string
        channel:
          type: string
          description: Messaging channel key (e.g. email). Note that some of your channels may have custom keys.
        classification:
          type: string
          description: If applicable, classifies the message as transactional or promotional.
        baseAggregation:
          type: string
          description: 'Message performance aggregate rollup interval. Specific to API and event-triggered messages. Possible values: daily, hourly.'
        message:
          $ref: '#/components/schemas/MessageAuto'
        transportID:
          type: string
          description: Defines the transportID if overriding the default.
        draftContent:
          type: boolean
          description: 'Determines if the automation template will be submitted as draft or published (version set in UI). Automation templates are submitted as `published` by default. Possible values: true, false.'
        trackLinks:
          type: string
          description: 'Determines if link performance will be tracked. Link tracking is `enabled` by default. Possible values: enabled, disabled.'
        priority:
          type: number
          default: 2
          description: Messages with a higher priority will be processed before those with a lower priority. 1 - Low, 2 - Standard, 3 - High, 4 - Highest.
        bcc:
          type: string
          description: Defines BCC email address that will receive a copy of every email. Only works with the 'enable-bcc' feature.
        bccEnabled:
          type: boolean
          description: Determines if the BCC is enabled or disabled. Only works with the 'enable-bcc' feature.
        vanityDomainKey:
          type: string
          description: Defines the vanity domain key for email messages.
    extVarsAuto:
      title: extVars
      type: object
      description: 'Using ''extVars'', any number of additional external variables may be added. These values are then available in the template. For example, if ''extVars'': {''orderID'':''o1234''} is included as an order ID value, then in the message it can be accessed as {$extVars.orderID}.'
      properties:
        key:
          type: string
          default: value
    ToAutoTest:
      title: To
      type: object
      required:
      - contact
      properties:
        contact:
          $ref: '#/components/schemas/ContactAuto_2'
        extVars:
          $ref: '#/components/schemas/extVarsAuto_2'
    ContactAuto_2:
      title: Contact
      type: object
      required:
      - email
      properties:
        email:
          type: string
          description: 'Contact identifier key/value pair. Use the "identifierKey": "identifierValue" format (e.g. "cID": "58d2fc99ac0c8117814d4e78", "email": "msmith@example.com", "custID": "ID1234").'
    AutomationTemplateRenderDraft:
      title: Render draft automation template
      type: object
      properties:
        wip:
          type: object
          schema:
            properties:
              headers:
                type: object
                schema:
                  properties:
                    fromDesc:
                      type: string
                      example: From description
                    subject:
                      type: string
                      example: Subject
                    fromEmail:
                      type: string
                      example: from-email@cordial.com
                    replyEmail:
                      type: string
                      example: reply-email@cordial.com
              content:
                type: object
                schema:
                  properties:
                    text/html:
                      type: string
                      example: Some HTML content with smarty
                    text:
                      type: string
                      example: plain text
                      description: This field is only used for SMS channel type.
                    senderNumber:
                      type: string
                      example: '12345'
                      description: This field is only used for SMS channel type.
                    smsProgramId:
                      type: string
                      example: program-name
                      description: This field is only used for SMS channel type.
        headers:
          type: object
          schema:
            properties:
              fromDesc:
                type: string
                example: From description
              subject:
                type: string
                example: Subject
              fromEmail:
                type: string
                example: from-email@cordial.com
              replyEmail:
                type: string
                example: reply-email@cordial.com
        content:
          type: object
          schema:
            properties:
              text/html:
                type: string
                example: Some HTML content with smarty
              text:
                type: string
                example: plain text
                description: This field is only used for SMS channel type.
              senderNumber:
                type: string
                example: '12345'
                description: This field is only used for SMS channel type.
              smsProgramId:
                type: string
                example: program-name
                description: This field is only used for SMS channel type.
    AutomationTemplateSuccess:
      title: Success operation
      type: object
      required:
      - success
      properties:
        success:
          type: boolean
          example: true
    ExperimentStats:
      title: ExperimentStats
      type: object
      required: []
      properties:
        ts:
          type: integer
          description: Number of total sends for the variant.
        tc:
          type: integer
          description: Number of total click for the variant.
        uc:
          type: integer
          description: Unique clicks for the variant.
        to:
          type: integer
          description: Number of total opens for the variant.
        uo:
          type: integer
          description: Number of unique opens f

# --- truncated at 32 KB (47 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/cordial/refs/heads/main/openapi/cordial-automation-templates-api-openapi.yml