# Delete Message

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/messages/{service}/{id}:
    delete:
      summary: Delete Message
      deprecated: false
      description: >
        Deletes (softly) the Message and its associated data (Sendings,
        Recipients and Dispatches)
      tags:
        - API Reference/Messaging API/Messages
      parameters:
        - name: service
          in: path
          description: 'See: [Mesaging Services](doc-354677#services)'
          required: true
          example: campaigns
          schema:
            type: string
        - name: id
          in: path
          description: ''
          required: true
          example: 1
          schema:
            type: integer
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Loyalty-Club-Slug
          in: header
          description: LoyaltyClub for API context. [Details](doc-342138)
          required: false
          example: '{{LOYALTY_CLUB_SLUG}}'
          schema:
            type: string
            default: '{{LOYALTY_CLUB_SLUG}}'
        - name: Authorization
          in: header
          description: '[Member](doc-342129) or [User](doc-342130) Authorization.'
          required: false
          example: Bearer {{_OAUTH_TOKEN}}
          schema:
            type: string
            default: Bearer {{_OAUTH_TOKEN}}
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    $ref: '#/components/schemas/Message'
                x-apidog-orders:
                  - message
                required:
                  - message
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Success
        '404':
          description: ''
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  error:
                    type: string
                    examples:
                      - Record not found
                x-apidog-orders:
                  - error
                required:
                  - error
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Record Not Found
      security: []
      x-apidog-folder: API Reference/Messaging API/Messages
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-3511360-run
components:
  schemas:
    Message:
      type: object
      properties:
        id: &ref_1
          $ref: '#/components/schemas/id2'
          description: Primary identifier of the record
          readOnly: true
        created_at: &ref_2
          type: string
          description: Time at which the record was created
          format: date-time
          readOnly: true
          examples:
            - '2022-11-15T16:25:58.099512Z'
        updated_at: &ref_3
          type: string
          description: Time at which the record was updated for the last time
          format: date-time
          readOnly: true
          examples:
            - '2022-11-15T16:25:58.099512Z'
        archived_at:
          $ref: '#/components/schemas/date_time.archived_at'
          description: Time of record archivization
          readonly: true
        name: &ref_17
          type: string
          description: Arbitrary name for internal identification
          examples:
            - My Message
          nullable: true
        shorten_urls: &ref_18
          type: boolean
          description: >
            Should sendings for this message have URLs shortened with MPC
            Shortener?
          default: true
          nullable: true
        track_in_shortener: &ref_19
          type: boolean
          description: |
            (NOT IMPLEMENTED) Should members opening shortened URLs be tracked
          default: true
          deprecated: true
          nullable: true
        marketing: &ref_20
          type: boolean
          default: null
          description: >-
            Does Message has marketing purposes? See: [Marketing
            purpose](doc-354471#marketing-purpose)
          nullable: true
        campaign_id: &ref_21
          type: integer
          description: >-
            ID of [Campaign](doc-355433) (applicable to selected
            [services](api-3927095))
          minimum: 1
          format: uint64
          nullable: true
        channels:
          type: array
          items: &ref_22
            properties:
              type:
                type: string
                enum:
                  - sms
                  - email
                  - push
                x-apidog-enum:
                  - value: sms
                    name: ''
                    description: ''
                  - value: email
                    name: ''
                    description: ''
                  - value: push
                    name: ''
                    description: ''
                examples:
                  - sms
              sender:
                oneOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        const: alphanumeric
                        examples:
                          - alphanumeric
                      value:
                        type: string
                        minLength: 2
                        maxLength: 11
                        examples:
                          - INFINITY
                    x-apidog-orders:
                      - type
                      - value
                    required:
                      - type
                      - value
                  - type: object
                    properties:
                      type:
                        type: string
                        const: international
                        examples:
                          - international
                      value:
                        type: string
                        examples:
                          - '4740485124'
                        description: '[MSISDN](doc-341641#msisdn)'
                    x-apidog-orders:
                      - type
                      - value
                    required:
                      - type
                      - value
                description: 'See: [Channel attributes](doc-354471#channel-attributes)'
              from_email:
                type: string
                description: 'See: [Channel attributes](doc-354471#channel-attributes)'
                format: email
                examples:
                  - sender@example.com
                nullable: true
              from_name:
                type: string
                description: 'See: [Channel attributes](doc-354471#channel-attributes)'
                examples:
                  - Infinity
                nullable: true
              template:
                oneOf:
                  - &ref_0
                    $ref: '#/components/schemas/Template%3A%3ACore'
                    readOnly: true
                  - type: object
                    properties:
                      type:
                        type: string
                        const: inline
                      definition:
                        type: object
                        properties: {}
                        x-apidog-orders:
                          - 01K485G8ZF8MRMW1SSNZ49ZAKP
                        description: >-
                          Definition of Template to assign. See: [Template
                          Model](doc-354486)
                        x-apidog-refs:
                          01K485G8ZF8MRMW1SSNZ49ZAKP: *ref_0
                        nullable: true
                    x-apidog-orders:
                      - type
                      - definition
                    required:
                      - type
                    writeOnly: true
                  - type: object
                    properties:
                      type:
                        type: string
                        const: reference
                      id:
                        type: integer
                        description: ID of Template to assign
                        minimum: 1
                        format: uint64
                    x-apidog-orders:
                      - type
                      - id
                    x-apidog-refs: {}
                    required:
                      - type
                      - id
                    writeOnly: true
                description: 'See: [Template Model](doc-354486)'
            x-apidog-orders:
              - type
              - from_email
              - from_name
              - template
              - sender
            required:
              - type
              - template
            x-apidog-refs: {}
            $ref: '#/components/schemas/Channel'
          description: |
            Channels the message is sent with
        updated_by:
          description: ID of an author (MPC user) of the most recent change
          anyOf:
            - $ref: '#/components/schemas/uuid'
            - type: 'null'
        sending_status_type:
          type: string
          enum:
            - draft
            - scheduled
            - finished
          readOnly: true
          description: >-
            Status type of the related Sending - available only for
            [services](api-3927095) that have a single-sending behavior.

            See: [Sendings status](doc-354473#sending-status)
        sending:
          properties:
            id: *ref_1
            status:
              type: string
              description: 'See: [Sendings status](doc-354473#sending-status)'
              enum:
                - draft
                - scheduled
                - preparing
                - prepared
                - transmitting
                - transmitted
                - skipped
                - cancelled
                - failed
              x-apidog-enum:
                - value: draft
                  name: ''
                  description: ''
                - value: scheduled
                  name: ''
                  description: ''
                - value: preparing
                  name: ''
                  description: ''
                - value: prepared
                  name: ''
                  description: ''
                - value: transmitting
                  name: ''
                  description: ''
                - value: transmitted
                  name: ''
                  description: ''
                - value: skipped
                  name: ''
                  description: ''
                - value: cancelled
                  name: ''
                  description: ''
                - value: failed
                  name: ''
                  description: ''
              examples:
                - scheduled
            audience_id:
              description: ID of audience the sending is directed to
              anyOf:
                - *ref_1
                - type: 'null'
            recipients_count:
              type: integer
              examples:
                - 100
              readOnly: true
              description: Number of inline recipients
              nullable: true
            dispatches_count:
              type: integer
              examples:
                - 100
              readOnly: true
              description: |-
                Number of Dispatches built. Null when Sending transmission
                 has not started yet
              nullable: true
            members_count:
              type: integer
              title: ''
              examples:
                - 100
              readOnly: true
              description: >-
                Number of distinct members to whom messages has been sent. Null
                when Sending has not started yet
              nullable: true
            scheduled_at:
              type: string
              description: Time of Sending execution
              format: date-time
              examples:
                - '2020-09-18T09:13:59.937Z'
              nullable: true
            transmitted_at:
              type: string
              description: Time at which the Sending was fully transmitted
              format: date-time
              examples:
                - '2020-09-18T09:14:05.391Z'
              nullable: true
            created_at:
              type: string
              description: ''
              format: date-time
              examples:
                - '2020-09-18T09:13:55.312Z'
              nullable: true
            updated_at:
              type: string
              description: ''
              format: date-time
              examples:
                - '2020-09-18T09:13:59.937Z'
              nullable: true
          x-apidog-orders:
            - id
            - status
            - audience_id
            - recipients_count
            - members_count
            - dispatches_count
            - scheduled_at
            - transmitted_at
            - created_at
            - updated_at
          description: >-
            See: [Sending](doc-354473#sending-model).

            Available only for [services](api-3927095) that have a
            single-sending behavior. It is also returned when Sending is being
            created during Message creation.
          readonly: true
          required:
            - id
            - status
            - recipients_count
            - audience_id
            - members_count
            - dispatches_count
            - scheduled_at
            - transmitted_at
            - created_at
            - updated_at
          readOnly: true
          $ref: '#/components/schemas/Sending%3A%3ACore'
      required:
        - id
        - created_at
        - updated_at
        - archived_at
        - name
        - shorten_urls
        - track_in_shortener
        - marketing
        - campaign_id
        - updated_by
      x-apidog-orders:
        - 01KAV5FWF849MD27XHPV6MFGG7
        - archived_at
        - 01KAV5G7H928HN52CQNB6369B1
        - updated_by
        - sending_status_type
        - sending
      x-apidog-refs:
        01KAV5FWF849MD27XHPV6MFGG7: &ref_4
          $ref: '#/components/schemas/Base%20record%20attributes'
        01KAV5G7H928HN52CQNB6369B1:
          $ref: '#/components/schemas/Message%3A%3ACore'
      x-apidog-ignore-properties:
        - id
        - created_at
        - updated_at
        - name
        - shorten_urls
        - track_in_shortener
        - marketing
        - campaign_id
        - channels
      x-apidog-folder: ''
    Sending::Core:
      type: object
      properties:
        id: *ref_1
        created_at: *ref_2
        updated_at: *ref_3
        scheduled_at:
          type: string
          description: >-
            Time at which the Sending should be executed. Resolved from
            [schedule](doc-354473#schedule)
          format: date-time
          examples:
            - '2020-09-18T09:13:59.937Z'
          nullable: true
        scheduled_by:
          type: string
          description: ID of a user that scheduled the Sending
          format: uuid
          readOnly: true
          examples:
            - 327a9f1b-e620-4e6b-b06e-041589bffde2
          nullable: true
        reporting_id:
          description: Identifier of the Sending in the [MPC Reporting](doc-354454)
          anyOf:
            - *ref_1
            - type: 'null'
        transmitted_at:
          type: string
          description: Time at which the Sending was fully transmitted
          format: date-time
          examples:
            - '2020-09-18T09:14:05.391Z'
          nullable: true
        status:
          type: string
          description: 'See: [Sendings status](doc-354473#sending-status)'
          enum:
            - draft
            - scheduled
            - preparing
            - prepared
            - transmitting
            - transmitted
            - skipped
            - cancelled
            - failed
          x-apidog-enum:
            - value: draft
              name: ''
              description: ''
            - value: scheduled
              name: ''
              description: ''
            - value: preparing
              name: ''
              description: ''
            - value: prepared
              name: ''
              description: ''
            - value: transmitting
              name: ''
              description: ''
            - value: transmitted
              name: ''
              description: ''
            - value: skipped
              name: ''
              description: ''
            - value: cancelled
              name: ''
              description: ''
            - value: failed
              name: ''
              description: ''
          examples:
            - scheduled
        status_type:
          type: string
          description: 'See: [Sendings status](doc-354473#sending-status)'
          examples:
            - scheduled
          enum:
            - draft
            - scheduled
            - finished
          x-apidog-enum:
            - value: draft
              name: ''
              description: ''
            - value: scheduled
              name: ''
              description: ''
            - value: finished
              name: ''
              description: ''
        audience_id:
          description: >-
            ID of [audience](doc-354473#audience-recipients) the sending is
            directed to
          anyOf:
            - *ref_1
            - type: 'null'
        recipients_count:
          type: integer
          examples:
            - 100
          readOnly: true
          description: Number of [inline recipients](doc-354473#inline-recipients)
          nullable: true
        dispatches_count:
          type: integer
          examples:
            - 100
          readOnly: true
          description: |-
            Number of dispatches built. Null when Sending transmission
             has not started yet
          nullable: true
        members_count:
          type: integer
          title: ''
          examples:
            - 100
          readOnly: true
          description: >-
            Number of distinct members to whom Message has been sent to. Null
            when Sending has not started yet
          nullable: true
        scheduled_with:
          oneOf:
            - $ref: '#/components/schemas/Immediate'
            - $ref: '#/components/schemas/Absolute'
            - $ref: '#/components/schemas/Relative'
            - type: 'null'
          description: Params that Sending was [scheduled](doc-354473#schedule) with
        channels_preference:
          type: string
          description: Provided [Channels preference](doc-354473#channels-preference)
          nullable: true
      x-apidog-orders:
        - 01K4D7E81VBHFWRCE2A4ZCJWJF
        - scheduled_at
        - scheduled_by
        - reporting_id
        - transmitted_at
        - status
        - status_type
        - audience_id
        - recipients_count
        - dispatches_count
        - members_count
        - scheduled_with
        - channels_preference
      readonly: true
      required:
        - id
        - created_at
        - updated_at
        - scheduled_at
        - scheduled_by
        - reporting_id
        - transmitted_at
        - status
        - status_type
        - audience_id
        - recipients_count
        - dispatches_count
        - members_count
        - scheduled_with
        - channels_preference
      readOnly: true
      x-apidog-refs:
        01K4D7E81VBHFWRCE2A4ZCJWJF: *ref_4
      x-apidog-ignore-properties:
        - id
        - created_at
        - updated_at
      x-apidog-folder: ''
    Relative:
      type: object
      properties:
        type:
          type: string
          const: relative
        in:
          type: string
          description: Time period, see [here](doc-354473#format-of--parameter)
          pattern: ^\d+ (second|minute|hour|day|week|month|year)s?$
          examples:
            - 30 minutes
        prescheduled: &ref_5
          type: boolean
          description: >-
            For relative and absolute types - preparation starts 5 minutes
            before transmission
          default: false
      x-apidog-orders:
        - type
        - in
        - 01K4ABXVYNQ6E8JVRESDNASGG2
      required:
        - type
        - in
      x-apidog-refs:
        01K4ABXVYNQ6E8JVRESDNASGG2: &ref_6
          $ref: '#/components/schemas/Base'
      x-apidog-ignore-properties:
        - prescheduled
      x-apidog-folder: ''
    Base:
      type: object
      properties:
        prescheduled: *ref_5
      x-apidog-orders:
        - prescheduled
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Absolute:
      type: object
      properties:
        type:
          type: string
          const: absolute
        at:
          description: Defines exact time the sending should be executed at
          $ref: '#/components/schemas/date_time'
        prescheduled: *ref_5
      x-apidog-orders:
        - type
        - at
        - 01K4ABXG887KQBS3M7DFT0DHQ6
      required:
        - type
        - at
      x-apidog-refs:
        01K4ABXG887KQBS3M7DFT0DHQ6: *ref_6
      x-apidog-ignore-properties:
        - prescheduled
      x-apidog-folder: ''
    date_time:
      type: string
      format: date-time
      examples:
        - '2022-11-09T16:25:58.099512Z'
      x-apidog-folder: ''
    Immediate:
      type: object
      properties:
        type:
          type: string
          const: immediate
      x-apidog-orders:
        - type
      required:
        - type
      x-apidog-refs: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    uuid:
      type: string
      format: uuid
      readOnly: true
      examples:
        - '550e8400-e29b-41d4-a716-446655440000 '
      x-apidog-folder: ''
    Template::Core:
      type: object
      properties:
        id: *ref_1
        type: &ref_14
          type: string
          enum:
            - plain
            - email
            - bee_email
            - push
            - generic
          x-apidog-enum:
            - value: plain
              name: ''
              description: ''
            - value: email
              name: ''
              description: ''
            - value: bee_email
              name: ''
              description: ''
            - value: push
              name: ''
              description: ''
            - value: generic
              name: ''
              description: ''
          description: 'See: [Template types](doc-354486#types)'
        content:
          oneOf:
            - &ref_7
              $ref: '#/components/schemas/Plain'
            - &ref_8
              $ref: '#/components/schemas/Email'
            - &ref_9
              $ref: '#/components/schemas/BeeEmail'
            - &ref_10
              $ref: '#/components/schemas/Push'
            - &ref_11
              $ref: '#/components/schemas/Generic'
        translations:
          type: array
          items:
            oneOf:
              - *ref_7
              - *ref_8
              - *ref_9
              - *ref_10
              - *ref_11
          description: >-
            See: [Internationalized
            content](doc-354486#internationalized-content)
          nullable: true
        wrapper_id:
          anyOf:
            - *ref_1
            - &ref_15
              type: 'null'
          description: >-
            ID of a [Standalone Template](doc-354680) that should
            [wrap](doc-354486#template-wrapping) this one
        merge_properties:
          type: array
          items:
            type: string
            examples:
              - first_name
              - last_name
          readOnly: true
          description: >-
            List of all the [merge-properties](doc-354486#merge-properties)
            detected in the contect
        thumbnail_url: &ref_16
          type: string
          deprecated: true
          examples:
            - https://img.placewise.com/image.png
          readOnly: true
          nullable: true
      x-apidog-orders:
        - 01K7EGRYVSWH7VRS1YHWZRRRJW
        - type
        - content
        - translations
        - wrapper_id
        - merge_properties
        - thumbnail_url
      additional_properties: false
      required:
        - id
        - type
        - content
        - translations
        - wrapper_id
        - merge_properties
        - thumbnail_url
      readOnly: true
      x-apidog-refs:
        01K7EGRYVSWH7VRS1YHWZRRRJW:
          $ref: '#/components/schemas/id'
      additionalProperties: false
      x-apidog-ignore-properties:
        - id
      x-apidog-folder: ''
    Generic:
      type: object
      properties:
        language: &ref_12
          $ref: '#/components/schemas/language'
          description: >-
            [Language tag](doc-341959#suported-language-tags). See:
            [Internationalized content](doc-354486#internationalized-content)
        body:
          type: string
          title: ''
          examples:
            - Hi {{name}}
        subject:
          type: string
          examples:
            - Welcome!
          nullable: true
        preheader:
          type: string
          nullable: true
        url:
          type: string
          description: |
            URL to be used by mobile app for redirecting the user
          nullable: true
        image_url:
          type: string
          description: |
            URL of image to be displayed within push
          nullable: true
        data:
          type: object
          examples:
            - https://example.placewise.com/image.png
          properties: {}
          x-apidog-orders: []
          title: ''
          description: |
            Additional data to be passed to mobile app
          x-apidog-ignore-properties: []
          nullable: true
        android_payload:
          type: object
          properties: {}
          x-apidog-orders: []
          description: >-
            Additional android-specific payload [see
            more](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#androidnotification)
          x-apidog-ignore-properties: []
          nullable: true
        ios_payload:
          type: object
          properties: {}
          x-apidog-orders: []
          description: >-
            Additional ios-specific payload [see
            more](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification#2943363)
          x-apidog-ignore-properties: []
          nullable: true
        footer:
          type: string
          examples:
            - 'To unsubscribe, send STOP to 2242 '
      x-apidog-orders:
        - 01K4D99PJ86J7BM5QPDVSBC1X1
        - body
        - subject
        - preheader
        - url
        - image_url
        - data
        - android_payload
        - ios_payload
        - footer
      required:
        - body
        - subject
        - preheader
        - url
        - image_url
        - data
        - android_payload
        - ios_payload
      x-apidog-refs:
        01K4D99PJ86J7BM5QPDVSBC1X1: &ref_13
          $ref: '#/components/schemas/language1'
      x-apidog-ignore-properties:
        - language
      x-apidog-folder: ''
    language:
      type: string
      description: 'See: [Supported language tags](doc-341959#suported-language-tags)'
      x-apidog-folder: ''
    language1:
      type: object
      properties:
        language: *ref_12
      x-apidog-orders:
        - language
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Push:
      type: object
      properties:
        language: *ref_12
        body:
          type: string
          title: ''
          examples:
            - Hi {{name}}
        subject:
          type: string
          examples:
            - Welcome!
          nullable: true
        url:
          type: string
          description: |
            URL to be used by mobile app for redirecting the user
          nullable: true
        image_url:
          type: string
          description: |
            URL of image to be displayed within push
          nullable: true
        data:
          type: object
          examples:
            - foo: bar
          properties: {}
          x-apidog-orders: []
          title: ''
          description: Additional data to be passed to mobile app
          x-apidog-ignore-properties: []
          nullable: true
        android_payload:
          type: object
          properties: {}
          x-apidog-orders: []
          description: >-
            Additional android-specific payload [see
            more](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#androidnotification)
          x-apidog-ignore-properties: []
          nullable: true
        ios_payload:
          type: object
          properties: {}
          x-apidog-orders: []
          description: >-
            Additional ios-specific payload [see
            more](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification#2943363)
          x-apidog-ignore-properties: []
          nullable: true
      x-apidog-orders:
        - 01K4D99802FW050SST12634SE7
        - body
        - subject
        - url
        - image_url
        - data
        - android_payload
        - ios_payload
      required:
        - body
        - subject
        - url
        - image_url
        - data
        - android_payload
        - ios_payload
      x-apidog-refs:
        01K4D99802FW050SST12634SE7: *ref_13
      x-apidog-ignore-properties:
        - language
      x-apidog-folder: ''
    BeeEmail:
      type: object
      properties:
        language: *ref_12
        body:
          type: string
          title: ''
          examples:
            - <b>Hei {{name}}</b>
          readOnly: true
        subject:
          type: string
          examples:
            - Welcome!
          nullable: true
        preheader:
          type: string
          examples:
            - Something informative
          nullable: true
        thumbnail:
          type: object
          properties:
            url:
              type: string
              description: Auto-generated preview of the email body
              examples:
                - https://example.placewise.com/image.png
              readOnly: true
          x-apidog-orders:
            - url
          required:
            - url
          readOnly: true
          x-apidog-ignore-properties: []
        bee_json:
          type: object
          properties: {}
          examples:
            - foo: bar
          x-apidog-orders: []
          description: JSON generated by [Beefree](https://docs.beefree.io/beefree-sdk)
          x-apidog-ignore-properties: []
          nullable: true
      x-apidog-orders:
        - 01K4D98T2CBAPKZQ6J0NX89ST6
        - body
        - subject
        - preheader
        - thumbnail
        - bee_json
      required:
        - body
        - subject
        - preheader
        - thumbnail
        - bee_json
      x-apidog-refs:
        01K4D98T2CBAPKZQ6J0NX89ST6: *ref_13
      x-apidog-ignore-properties:
        - language
      x-apidog-folder: ''
    Email:
      type: object
      properties:
        language: *ref_12
        body:
          type: string
          title: ''
          examples:
            - <b>Hei {{name}}</b>
        subject:
          type: string
          examples:
            - Welcome!
          nullable: true
        preheader:
          type: string
          examples:
            - Something informative
          nullable: true
        thumbnail:
          type: object
          properties:
            url:
              type: string
              description: Auto-generated preview of the email body
              examples:
                - https://example.placewise.com/image.png
              readOnly: true
          x-apidog-orders:
            - url
          required:
            - url
          readOnly: true
          x-apidog-ignore-properties: []
      x-apidog-orders:
        - 01K4D980ZER3D14Q0JFA9BSQCC
        - body
        - subject
        - preheader
        - thumbnail
      required:
        - body
        - subject
        - preheader
        - thumbnail
      x-apidog-refs:
        01K4D980ZER3D14Q0JFA9BSQCC: *ref_13
      x-apidog-ignore-properties:
        - language
      x-apidog-folder: ''
    Plain:
      type: object
      properties:
        language: *ref_12
        body:
          type: string
          title: ''
          examples:
            - Hei {{name}}
        footer:
          type: string
          examples:
            - 'To unsubscribe, send STOP to 2242 '
      x-apidog-orders:
        - 01K4JHYK3FA0PJJVS6FMVM6HCY
        - body
        - footer
      required:
        - body
      x-apidog-refs:
        01K4JHYK3FA0PJJVS6FMVM6HCY: *ref_13
      x-apidog-ignore-properties:
        - language
      x-apidog-folder: ''
    id:
      type: object
      properties:
        id: *ref_1
      x-apidog-orders:
        - id
      required:
        - id
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Channel:
      properties:
        type:
          type: string
          enum:
            - sms
            - email
            - push
          x-apidog-enum:
            - value: sms
              name: ''
              description: ''
            - value: email
              name: ''
              description: ''
            - value: push
              name: ''
              description: ''
          examples:
            - sms
        include_footer:
          type: boolean
          description: >-
            (SMS-only) Should a [predefined](api-3511372) footer be added to the
            content of sent messages?
          default: false
          nullable: true
        sender:
          oneOf:
            - type: object
              properties:
                from_email:
                  type: string
                  description: 'See: [Channel attributes](doc-354471#channel-attributes)'
                  format: email
                  examples:
                    - sender@example.com
                  nullable: true
                from_name:
                  type: string
                  description: 'See: [Channel attributes](doc-354471#channel-attributes)'
                  examples:
                    - Infinity
                  nullable: true
              x-apidog-orders:
                - from_email
                - from_name
              required:
                - from_email
                - from_name
              x-apidog-ignore-properties: []
            - type: object
              properties:
                type:
                  type: string
                  const: international
                  examples:
                    - international
                value:
                  type: string
                  examples:
                    - '4740485124'
                  description: '[MSISDN](doc-341641#msisdn)'
              x-apidog-orders:
                - type
                - value
              required:
                - type
                - value
              x-apidog-ignore-properties: []
            - type: 'null'
          description: 'See: [Channel attributes](doc-354471#channel-attributes)'
        template:
          oneOf:
            - *ref_0
            - type: object
              properties:
                type:
                  type: string
                  const: inline
                definition:
                  type: object
                  properties:
                    id: *ref_1
                    type: *ref_14
                    content:
                      oneOf:
                        - *ref_7
                        - *ref_8
                        - *ref_9
                        - *ref_10
                        - *ref_11
                    translations:
                      type: array
                      items:
                        oneOf:
                          - *ref_7
                          - *ref_8
                          - *ref_9
                          - *ref_10
                          - *ref_11
                      description: >-
                        See: [Internationalized
                        content](doc-354486#internationalized-content)
                      nullable: true
                    wrapper_id:
                      anyOf:
                        - *ref_1
                        - *ref_15
                      description: >-
                        ID of a [Standalone Template](doc-354680) that should
                        [wrap](doc-354486#template-wrapping) this one
                    merge_properties:
                      type: array
                      items:
                        type: string
                        examples:
                          - first_name
                          - last_name
                      readOnly: true
                      description: List of all the merge-properties detected in the contect
                    thumbnail_url: *ref_16
                  x-apidog-orders:
                    - 01K485G8ZF8MRMW1SSNZ49ZAKP
                  description: >-
                    Definition of Template to assign. See: [Template
                    Model](doc-354486)
                  x-apidog-refs:
                    01K485G8ZF8MRMW1SSNZ49ZAKP: *ref_0
                  required:
                    - id
                    - type
                    - content
                    - translations
                    - wrapper_id
                    - merge_properties
                    - thumbnail_url
                  x-apidog-ignore-properties:
                    - id
                    - type
                    - content
                    - translations
                    - wrapper_id
                    - merge_properties
                    - thumbnail_url
                  nullable: true
              x-apidog-orders:
                - type
                - definition
              required:
                - type
              writeOnly: true
              x-apidog-ignore-properties: []
            - type: object
              properties:
                type:
                  type: string
                  const: reference
                id:
                  type: integer
                  description: ID of Template to assign
                  minimum: 1
                  format: uint64
              x-apidog-orders:
                - type
                - id
              x-apidog-refs: {}
              required:
                - type
                - id
              writeOnly: true
              x-apidog-ignore-properties: []
          description: 'See: [Template Model](doc-354486#template-model)'
      x-apidog-orders:
        - type
        - include_footer
        - sender
        - template
      required:
        - type
        - template
      x-apidog-refs: {}
      type: object
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    date_time.archived_at:
      type: string
      description: Time of the record archivization
      format: date-time
      examples:
        - '2022-11-15T16:25:58.099512Z'
      readOnly: true
      nullable: true
      x-apidog-folder: ''
    id2:
      type: integer
      description: Primary identifier of the record
      format: uint64
      readOnly: true
      examples:
        - 1
      x-apidog-folder: ''
    Message::Core:
      type: object
      properties:
        name: *ref_17
        shorten_urls: *ref_18
        track_in_shortener: *ref_19
        marketing: *ref_20
        campaign_id: *ref_21
        channels:
          type: array
          items: *ref_22
          description: |
            Channels the message is sent with
      required:
        - name
        - shorten_urls
        - track_in_shortener
        - marketing
        - campaign_id
      x-apidog-orders:
        - name
        - shorten_urls
        - track_in_shortener
        - marketing
        - campaign_id
        - channels
      x-apidog-refs: {}
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Base record attributes:
      type: object
      properties:
        id: *ref_1
        created_at: *ref_2
        updated_at: *ref_3
      x-apidog-orders:
        - id
        - created_at
        - updated_at
      required:
        - id
        - created_at
        - updated_at
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```