{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elocuenti-com/json-schema/elocuenti-com-message-accepted-response-schema.json",
  "title": "MessageAcceptedResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elocuenti-com-messages-api-openapi.yml#/components/schemas/MessageAcceptedResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/MessageAccepted"
    },
    "request_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Request Id"
    },
    "simulated": {
      "description": "`true` only with a sandbox key: the request was checked in full and nothing was sent or saved.",
      "type": "boolean",
      "title": "Simulated"
    }
  },
  "required": [
    "data"
  ],
  "$defs": {
    "MessageAccepted": {
      "type": "object",
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Message id; null if WhatsApp accepted it but it was not stored.",
          "title": "Id"
        },
        "whatsapp_message_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Whatsapp Message Id"
        },
        "status": {
          "type": "string",
          "const": "accepted",
          "title": "Status"
        },
        "to": {
          "type": "string",
          "title": "To"
        },
        "conversation_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Conversation Id"
        },
        "from": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The business number the message left from, in E.164.",
          "title": "From"
        },
        "deduplicated": {
          "type": "boolean",
          "description": "True when this idempotency_key was already accepted.",
          "title": "Deduplicated"
        }
      },
      "required": [
        "id",
        "whatsapp_message_id",
        "status",
        "to",
        "conversation_id",
        "deduplicated"
      ],
      "description": "`data` of a POST answer: 201 when WhatsApp accepted the send, 200 when the key replays.",
      "title": "MessageAccepted"
    }
  }
}