title: WhatsApp Template Submission
type: object
x-tags:
  - Models
description: An attempt to submit a captured message body to WhatsApp. A linked
  submission has a Meta ID and status. Submission state describes the relationship
  to Meta separately from the provider’s review status.
required:
  - uuid
  - waba_id
  - content_key
  - template_origin
  - category
  - language
  - components
  - waba_template_id
  - waba_template_name
  - waba_status
  - submission_state
  - body
  - created_at
properties:
  uuid:
    type: string
    format: uuid
    description: The submission's unique version identifier. New provider template
      names include this UUID without hyphens.
    readOnly: true
  waba_id:
    type: string
    description: The WABA that received this submission.
    readOnly: true
  content_key:
    type: string
    description: The content fingerprint used to match this captured body.
    readOnly: true
  template_origin:
    $ref: ./MessageTemplateOrigin.yaml
    readOnly: true
  category:
    type: string
    description: The category supplied when submitting this version to Meta.
    readOnly: true
  language:
    type: string
    description: The language supplied when submitting this version to Meta.
    readOnly: true
  components:
    type: array
    description: The submitted provider component definition, independent of bot
      source actions.
    items:
      type: object
      additionalProperties: true
    readOnly: true
  waba_template_id:
    type:
      - string
      - 'null'
    minLength: 1
    maxLength: 255
    description: |-
      The ID of the template created using the Meta Graph API. Null before the Meta version is linked.

      This field maps directly to the `id` field in the associated Graph node.

      See https://developers.facebook.com/docs/graph-api/reference/whats-app-business-hsm/#fields for more details.
    readOnly: true
  waba_template_name:
    type: string
    minLength: 1
    maxLength: 255
    description: |-
      The name of the template created using the Meta Graph API.

      This field maps directly to the `name` field in the associated Graph node.

      See https://developers.facebook.com/docs/graph-api/reference/whats-app-business-hsm/#fields for more details.
    readOnly: true
  waba_status:
    type:
      - string
      - 'null'
    minLength: 1
    maxLength: 255
    example: APPROVED
    description: |-
      The review status from Meta, such as PENDING, APPROVED or REJECTED. Null before the Meta version is linked.

      This field maps directly to the `status` field in the associated Graph node.

      See https://developers.facebook.com/docs/graph-api/reference/whats-app-business-hsm/#fields for more details.
    readOnly: true
  submission_state:
    type: string
    enum:
      - submitting
      - linked
      - failed
      - unconfirmed
    description: Current submission outcome. A failed attempt was rejected. An unconfirmed attempt may still be linked by later provider evidence.
    readOnly: true
  body:
    $ref: ./MessageTemplateBody.yaml
    description: The source definition snapshot captured when submitting this version.
    readOnly: true
  created_at:
    type: string
    format: date-time
    description: The date-time that the template was first created.
    readOnly: true
