{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-marketing-message-response-payload-schema.json",
  "title": "MarketingMessageResponsePayload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsapp-marketing-messages-api-openapi.yml#/components/schemas/MarketingMessageResponsePayload",
  "type": "object",
  "properties": {
    "contacts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "input": {
            "type": "string"
          },
          "wa_id": {
            "type": "string"
          }
        }
      }
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "message_status": {
            "$ref": "#/$defs/MessageStatus"
          }
        }
      }
    },
    "messaging_product": {
      "type": "string"
    }
  },
  "$defs": {
    "MessageStatus": {
      "type": "string",
      "enum": [
        "accepted",
        "held_for_quality_assessment",
        "paused"
      ],
      "description": "The status of a WhatsApp message:\n- `accepted`: The message has been accepted by WhatsApp and is being processed\n- `held_for_quality_assessment`: The message is being held for quality assessment before delivery\n- `paused`: The message delivery has been paused\n"
    }
  }
}