> For the complete documentation index, see [llms.txt](https://api.bind.hr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.bind.hr/channels/models.md).

# Models

## The MessageRequest object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"MessageRequest":{"type":"object","required":["channels"],"properties":{"channels":{"type":"array","minItems":1,"maxItems":20,"description":"The channels to send on, in order. At least one. Each entry carries everything that channel needs. An `sms` entry must be the last one; anywhere else it is a `400` on `channels[n].channel` and nothing is sent.\n","items":{"$ref":"#/components/schemas/ChannelEntry"}}}},"ChannelEntry":{"type":"object","required":["channel","to","content"],"description":"One channel to send on. Everything the send needs is on the entry itself - a missing field is a `400` naming it. Every channel needs `profile_id`, except `whatsapp`, which needs `profile_number_id` instead.\n","properties":{"channel":{"type":"string","description":"Channel name, e.g. `viber`, `sms` or `whatsapp`. `sms` must be the last entry.\n"},"profile_id":{"type":"string","format":"uuid","description":"The sender profile this channel sends from, by the UUID we issued for it. We fill in the sender from it, and it is what the message is attributed to in your reporting. A profile belongs to one channel, so each entry has its own. A UUID that matches no active profile of yours, or a profile whose brand is disabled, is rejected with `PROFILE_NOT_FOUND`. Required on every channel except `whatsapp`, where it is refused with a `400`: the number decides the profile.\n"},"profile_number_id":{"type":"string","format":"uuid","description":"`whatsapp` only, and required there: the WhatsApp number to send from, by the API id shown for it on your profile. A UUID that matches none of your numbers is `PROFILE_NUMBER_NOT_FOUND`. A number that is not active - paused, not yet connected, or removed from your WhatsApp account - or whose profile is not active or whose brand is disabled is `PROFILE_NUMBER_NOT_ACTIVE`, with `detail` saying which.\n"},"reply_to_message_id":{"type":"string","format":"uuid","description":"`whatsapp` only, optional, and on any content but a `reaction`: the `message_id` of a reply we sent to your webhook, to answer it as a quote. It must have been received on this `profile_number_id` from this `to` - otherwise `REPLY_TO_MISMATCH`, with `detail` saying which - and within the last 30 days. An id we do not know, or one older than that, is `REPLY_TO_NOT_FOUND`. On a `template` WhatsApp accepts it, but the recipient's app does not show the quote.\n"},"to":{"type":"string","description":"Recipient phone number in international format, country code first. Whitespace and one leading `+` are removed before it is checked, so `+44 7123 456789` is sent as `447123456789` - the form the delivery report gives it back in. What is left must be 9 to 15 digits; anything else is a `400` on `to`.\n"},"content":{"description":"`Content` for `sms` and `viber`, `WhatsappContent` for `whatsapp`.\n","anyOf":[{"$ref":"#/components/schemas/Content"},{"$ref":"#/components/schemas/WhatsappContent"}]},"failover_after":{"type":"integer","minimum":1,"description":"Seconds to wait for a `DELIVERED` report on this channel before we try the next entry. Optional. Without it, we move on only when the channel refuses the message or reports it `UNDELIVERABLE`. No upper limit is checked, but we keep a message for 3 days, so a longer wait never moves on. On the last entry, the message ends as `UNDELIVERABLE` (`5000`) when the time is up. Does not apply to `sms`, which must be the last entry. See **Failover** in the description of **Send a message**.\n"}}},"Content":{"description":"For `sms`, the content is a plain text string. For rich channels like `viber` it is an object. The two are interchangeable for plain text: a string sent to Viber goes out as a text message, and `{\"type\": \"text\", \"text\": \"...\"}` sent to SMS goes out as that text.\n","oneOf":[{"type":"string","description":"Plain text."},{"$ref":"#/components/schemas/ViberContent"}]},"ViberContent":{"type":"object","description":"Viber message content. Not every combination of fields is a valid Viber message, so the ones that work are listed here in full. Anything else is rejected with `UNSUPPORTED_CONTENT`. There is a ready-made example of each under **Request samples** of the send request.\n\n**These work:**\n\n| Content | With text | With a button | |---|---|---| | `text` | - | yes | | `media_url` (image) | yes | yes | | `video` | yes | yes | | `file` | no | no | | `carousel` | yes | no | | `list` | yes | no |\n\n**These do not:** an image and a video (or a file) together; a carousel and a list together; a file with anything else at all; a button on its own, with no text, image or video to attach it to; a button with no `caption`; a completely empty content object. `ttl` may accompany any of the working combinations.\n\nOnly fields you actually fill in are sent on; empty strings, empty objects and empty lists count as not set. Keys are snake_case, and the camelCase spelling noted per field also works.\n","properties":{"text":{"type":"string"},"media_url":{"type":"string","format":"uri","description":"Image URL. Also accepted as `mediaUrl`."},"video":{"$ref":"#/components/schemas/ViberVideo"},"file":{"$ref":"#/components/schemas/ViberFile"},"button":{"$ref":"#/components/schemas/ViberButton"},"carousel":{"$ref":"#/components/schemas/ViberCarousel"},"list":{"$ref":"#/components/schemas/ViberList"},"ttl":{"type":"integer","description":"How long the message stays valid, in seconds."},"type":{"type":"string","description":"Accepted and ignored on Viber. It only matters if you send the same object to the SMS channel, where `\"text\"` marks it as convertible to plain text.\n"},"message_type":{"type":"string","description":"Accepted and ignored. Also accepted as `messageType`."}}},"ViberVideo":{"type":"object","description":"A video. This is an object, not a plain URL string.","properties":{"media_url":{"type":"string","format":"uri","description":"Video URL. Also accepted as `mediaUrl`."},"thumbnail":{"type":"string","format":"uri"}}},"ViberFile":{"type":"object","description":"A file. This is an object, not a plain URL string. A file must be sent on its own - no text, button, image or video alongside it.\n","properties":{"media_url":{"type":"string","format":"uri","description":"File URL. Also accepted as `mediaUrl`."},"file_name":{"type":"string","description":"Also accepted as `fileName`."}}},"ViberButton":{"type":"object","required":["caption"],"description":"A button needs text, an image or a video alongside it, and it must have a caption.\n","properties":{"caption":{"type":"string","description":"The button label. Required."},"action":{"type":"string","description":"What the button opens - an `https://` or `viber://` link. Note the key is `action`; a `url` key is not supported and is ignored.\n"}}},"ViberCarousel":{"type":"object","description":"A carousel of cards. Send it on its own or with text - not with an image, video, file, button or list.\n","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ViberCarouselItem"}}}},"ViberCarouselItem":{"type":"object","properties":{"title":{"type":"string"},"image_url":{"type":"string","format":"uri","description":"Also accepted as `imageUrl`."},"primary_button":{"$ref":"#/components/schemas/CarouselButton"},"secondary_button":{"$ref":"#/components/schemas/CarouselButton"}}},"CarouselButton":{"type":"object","description":"A button on a carousel card. The containing keys are also accepted as `primaryButton` / `secondaryButton`.\n","properties":{"label":{"type":"string"},"action_url":{"type":"string","format":"uri","description":"Also accepted as `actionUrl`."}}},"ViberList":{"type":"object","description":"A survey list. Send it on its own or with text - not with an image, video, file, button or carousel. `survey.options` must have at least one option.\n","properties":{"survey":{"$ref":"#/components/schemas/ViberSurvey"}}},"ViberSurvey":{"type":"object","properties":{"options":{"type":"array","minItems":1,"items":{"type":"string"}}}},"WhatsappContent":{"type":"object","required":["type"],"additionalProperties":false,"description":"WhatsApp content is an approved template, or - while the recipient's customer service window is open - a service message. It is sent to WhatsApp exactly as you give it. Carry only the object `type` names: any other key is a `400` naming it.\n\n**Template.** The template is looked up on the number's profile by `name` and `language.code`, compared exactly. None by that name and language is `TEMPLATE_NOT_FOUND`; one that is not approved and active is `TEMPLATE_NOT_ACTIVE`, with `detail` naming its status.\n\nThe price is the one for the template's category - marketing, utility or authentication - so there is no message type to send. A template whose category we cannot price is `TEMPLATE_CATEGORY_UNKNOWN`, and a category with no price on your account is `CLIENT_PRICE_NOT_FOUND`.\n\n**Service messages** - text, image, video, document, audio, sticker, location, contacts, reaction and interactive. No template is needed, but WhatsApp delivers one only within 24 hours of the recipient's last message to the number you send from. Outside that window the send is `SESSION_WINDOW_CLOSED` and nothing is sent. If we cannot tell whether the window is open, we send anyway, and a closed window comes back as a failed delivery report. The price is your service rate.\n\nTo quote the recipient's message, name it in the channel's `reply_to_message_id` - on a template too. A reaction names the message it is on in `reaction.message_id` instead.\n\nMedia is fetched by WhatsApp from `link` after we accept the send, so a link it cannot fetch, or a file it does not support, arrives as a failed delivery report rather than an error here.\n","properties":{"type":{"type":"string","enum":["template","text","image","video","document","audio","sticker","location","contacts","reaction","interactive"]},"template":{"$ref":"#/components/schemas/WhatsappTemplate"},"text":{"$ref":"#/components/schemas/WhatsappText"},"image":{"$ref":"#/components/schemas/WhatsappServiceImage"},"document":{"$ref":"#/components/schemas/WhatsappServiceDocument"},"video":{"$ref":"#/components/schemas/WhatsappServiceVideo"},"audio":{"$ref":"#/components/schemas/WhatsappServiceAudio"},"sticker":{"$ref":"#/components/schemas/WhatsappServiceSticker"},"location":{"$ref":"#/components/schemas/WhatsappServiceLocation"},"contacts":{"type":"array","minItems":1,"maxItems":5,"description":"1 to 5 contact cards, at most 16384 bytes as JSON in all.","items":{"$ref":"#/components/schemas/WhatsappContact"}},"reaction":{"$ref":"#/components/schemas/WhatsappReaction"},"interactive":{"$ref":"#/components/schemas/WhatsappInteractive"},"message_type":{"type":"string","description":"Accepted and ignored - the price follows the template's category, or is the service rate."}}},"WhatsappTemplate":{"type":"object","required":["name","language"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The template's name, as approved."},"language":{"$ref":"#/components/schemas/WhatsappLanguage"},"components":{"type":"array","maxItems":16,"description":"The values for the template's variables, in WhatsApp's own component format. Leave it out for a template without variables. At most 16 components, and the whole `template` object may be at most 32768 bytes as JSON; either over its limit is a `400`. A key WhatsApp's send-time template does not take, at any level, is a `400` naming it.\n","items":{"$ref":"#/components/schemas/WhatsappComponent"}}}},"WhatsappLanguage":{"type":"object","required":["code"],"additionalProperties":false,"properties":{"code":{"type":"string","description":"The language the template was approved in, e.g. `en_US` or `en_GB`."}}},"WhatsappComponent":{"type":"object","additionalProperties":false,"description":"One component of the template: `header`, `body`, `button`, `limited_time_offer` or `carousel`. Only `carousel` takes `cards`.\n","properties":{"type":{"type":"string"},"sub_type":{"type":"string","description":"On a button - `quick_reply`, `url` or `copy_code`."},"index":{"description":"On a button - its position among the template's buttons.","oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}},"cards":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCard"}}}},"WhatsappParameter":{"type":"object","additionalProperties":false,"description":"One value. `type` names which of the other keys carries it.\n\n`parameter_name` follows how the template's variables were approved, and is sent to WhatsApp as given, never added or removed for you. A template approved with named variables (`{{order_id}}`) takes `parameter_name` on every header and body parameter. A template with numbered variables (`{{1}}`, `{{2}}`) takes none, and its parameters go in the order the variables appear. Three cases are always numbered, whatever the template: a URL button's dynamic suffix, a carousel whose cards carry a variable (the top body and every card body), and an authentication template's body and code button. A `parameter_name` where none is expected, or a missing one where it is required, is refused by WhatsApp or delivers the variable unfilled.\n\nThe template's page in the customer portal has a \"Send via API\" panel that shows the exact channel entry for that template. Copy it from there.\n","properties":{"type":{"type":"string"},"parameter_name":{"type":"string"},"text":{"type":"string"},"payload":{"type":"string"},"coupon_code":{"type":"string"},"image":{"$ref":"#/components/schemas/WhatsappMedia"},"video":{"$ref":"#/components/schemas/WhatsappMedia"},"document":{"$ref":"#/components/schemas/WhatsappDocument"},"location":{"$ref":"#/components/schemas/WhatsappLocation"},"currency":{"$ref":"#/components/schemas/WhatsappCurrency"},"date_time":{"$ref":"#/components/schemas/WhatsappDateTime"},"limited_time_offer":{"$ref":"#/components/schemas/WhatsappLimitedTimeOffer"}}},"WhatsappMedia":{"type":"object","additionalProperties":false,"description":"An uploaded media `id` or a public `link`.","properties":{"id":{"type":"string"},"link":{"type":"string"}}},"WhatsappDocument":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"link":{"type":"string"},"filename":{"type":"string"}}},"WhatsappLocation":{"type":"object","additionalProperties":false,"properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"}}},"WhatsappCurrency":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"},"code":{"type":"string"},"amount_1000":{"type":"integer"}}},"WhatsappDateTime":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"}}},"WhatsappLimitedTimeOffer":{"type":"object","additionalProperties":false,"properties":{"expiration_time_ms":{"type":"integer"}}},"WhatsappCard":{"type":"object","additionalProperties":false,"properties":{"card_index":{"type":"integer"},"components":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCardComponent"}}}},"WhatsappCardComponent":{"type":"object","additionalProperties":false,"description":"A component of a carousel card, as `WhatsappComponent` without `cards`.","properties":{"type":{"type":"string"},"sub_type":{"type":"string"},"index":{"oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}}}},"WhatsappText":{"type":"object","required":["body"],"additionalProperties":false,"properties":{"body":{"type":"string","maxLength":4096,"description":"The message text."},"preview_url":{"type":"boolean","description":"Show a preview of the first URL in `body`."}}},"WhatsappServiceImage":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of a JPEG or PNG, up to 5 MB."},"caption":{"type":"string","maxLength":1024}}},"WhatsappServiceDocument":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the file, up to 100 MB."},"caption":{"type":"string","maxLength":1024},"filename":{"type":"string","maxLength":255,"description":"The file name the recipient sees."}}},"WhatsappServiceVideo":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the video."},"caption":{"type":"string","maxLength":1024}}},"WhatsappServiceAudio":{"type":"object","required":["link"],"additionalProperties":false,"description":"WhatsApp takes no caption on audio.","properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the audio file."}}},"WhatsappServiceSticker":{"type":"object","required":["link"],"additionalProperties":false,"description":"WhatsApp takes no caption on a sticker.","properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of a WebP sticker."}}},"WhatsappServiceLocation":{"type":"object","required":["latitude","longitude"],"additionalProperties":false,"properties":{"latitude":{"description":"Decimal degrees, -90 to 90, as a number or a string.","oneOf":[{"type":"number"},{"type":"string"}]},"longitude":{"description":"Decimal degrees, -180 to 180, as a number or a string.","oneOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string","maxLength":1000},"address":{"type":"string","maxLength":1000}}},"WhatsappContact":{"type":"object","required":["name"],"additionalProperties":false,"description":"One contact card. Every field is a non-empty string of at most 1000 characters, and each list holds at most 20 entries.\n","properties":{"name":{"$ref":"#/components/schemas/WhatsappContactName"},"addresses":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactAddress"}},"birthday":{"type":"string","description":"YYYY-MM-DD."},"emails":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactEmail"}},"org":{"$ref":"#/components/schemas/WhatsappContactOrg"},"phones":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactPhone"}},"urls":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactUrl"}}}},"WhatsappContactName":{"type":"object","required":["formatted_name"],"additionalProperties":false,"properties":{"formatted_name":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"middle_name":{"type":"string"},"prefix":{"type":"string"},"suffix":{"type":"string"}}},"WhatsappContactAddress":{"type":"object","additionalProperties":false,"properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"country_code":{"type":"string"},"type":{"type":"string"}}},"WhatsappContactEmail":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"type":{"type":"string"}}},"WhatsappContactOrg":{"type":"object","additionalProperties":false,"properties":{"company":{"type":"string"},"department":{"type":"string"},"title":{"type":"string"}}},"WhatsappContactPhone":{"type":"object","additionalProperties":false,"properties":{"phone":{"type":"string"},"type":{"type":"string"},"wa_id":{"type":"string"}}},"WhatsappContactUrl":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string"},"type":{"type":"string"}}},"WhatsappReaction":{"type":"object","required":["message_id","emoji"],"additionalProperties":false,"description":"An emoji on a message the recipient sent you. WhatsApp reports a reaction only as sent, so its delivery report is `DELIVERED` once WhatsApp has sent it.\n","properties":{"message_id":{"type":"string","format":"uuid","description":"The `message_id` of a reply we sent to your webhook, received on this `profile_number_id` from this `to` - otherwise `REPLY_TO_MISMATCH`, with `detail` saying which - within the last 30 days. An id we do not know, or one older than that, is `REPLY_TO_NOT_FOUND`. If we cannot look it up right now the send is `REPLY_TO_UNAVAILABLE`, and the same request may succeed later.\n"},"emoji":{"type":"string","description":"Exactly one emoji - a flag or a keycap counts as one. An empty emoji is refused: removing a reaction is not supported.\n"}}},"WhatsappInteractive":{"type":"object","required":["type","body","action"],"additionalProperties":false,"description":"A message with buttons. Each `type` takes its own `action`, and a key of another type's `action` is a `400`:\n\n- `button` - up to 3 reply buttons, `action.buttons`. The header may be text,\n  an image, a video or a document.\n\n- `list` - a menu, `action.button` (the label that opens it) and\n  `action.sections`: 1 to 10 sections, 10 rows in all. Each section needs a\n  `title` once there is more than one. The header may only be text, and the\n  body may be up to 4096 characters.\n\n- `cta_url` - one button that opens a URL, `action.name` `cta_url` and\n  `action.parameters`. The header may be text, an image, a video or a document.\n\n- `location_request_message` - a button asking the recipient to share their\n  location, `action.name` `send_location`. No header and no footer.\n\n\nIds and titles of buttons, and ids of rows, must be unique within the message. What the recipient picks comes back to your webhook as a reply with `content.type` `interactive` (or `location` for a shared location), with `reply_to_message_id` naming this message.\n","properties":{"type":{"type":"string","enum":["button","list","cta_url","location_request_message"]},"header":{"$ref":"#/components/schemas/WhatsappInteractiveHeader"},"body":{"$ref":"#/components/schemas/WhatsappInteractiveBody"},"footer":{"$ref":"#/components/schemas/WhatsappInteractiveFooter"},"action":{"$ref":"#/components/schemas/WhatsappInteractiveAction"}}},"WhatsappInteractiveHeader":{"type":"object","required":["type"],"additionalProperties":false,"description":"Carries `text`, or the media object `type` names - nothing else.","properties":{"type":{"type":"string","enum":["text","image","video","document"]},"text":{"type":"string","maxLength":60},"image":{"$ref":"#/components/schemas/WhatsappInteractiveMedia"},"video":{"$ref":"#/components/schemas/WhatsappInteractiveMedia"},"document":{"$ref":"#/components/schemas/WhatsappInteractiveDocument"}}},"WhatsappInteractiveMedia":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."}}},"WhatsappInteractiveDocument":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."},"filename":{"type":"string","maxLength":255,"description":"The file name the recipient sees."}}},"WhatsappInteractiveBody":{"type":"object","required":["text"],"additionalProperties":false,"properties":{"text":{"type":"string","maxLength":4096,"description":"Up to 1024 characters, or 4096 on a `list`."}}},"WhatsappInteractiveFooter":{"type":"object","required":["text"],"additionalProperties":false,"properties":{"text":{"type":"string","maxLength":60}}},"WhatsappInteractiveAction":{"type":"object","additionalProperties":false,"properties":{"buttons":{"type":"array","minItems":1,"maxItems":3,"description":"`button` only.","items":{"$ref":"#/components/schemas/WhatsappInteractiveButton"}},"button":{"type":"string","maxLength":20,"description":"`list` only: the label of the button that opens the list."},"sections":{"type":"array","minItems":1,"maxItems":10,"description":"`list` only. 10 rows in all.","items":{"$ref":"#/components/schemas/WhatsappInteractiveSection"}},"name":{"type":"string","enum":["cta_url","send_location"],"description":"`cta_url` on a `cta_url` message, `send_location` on a `location_request_message`."},"parameters":{"$ref":"#/components/schemas/WhatsappInteractiveUrl"}}},"WhatsappInteractiveButton":{"type":"object","required":["type","reply"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["reply"]},"reply":{"$ref":"#/components/schemas/WhatsappInteractiveReply"}}},"WhatsappInteractiveReply":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":256,"description":"Comes back in the reply when the recipient taps the button."},"title":{"type":"string","maxLength":20}}},"WhatsappInteractiveSection":{"type":"object","required":["rows"],"additionalProperties":false,"properties":{"title":{"type":"string","maxLength":24},"rows":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/WhatsappInteractiveRow"}}}},"WhatsappInteractiveRow":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":200,"description":"Comes back in the reply when the recipient picks the row."},"title":{"type":"string","maxLength":24},"description":{"type":"string","maxLength":72}}},"WhatsappInteractiveUrl":{"type":"object","required":["display_text","url"],"additionalProperties":false,"description":"`cta_url` only.","properties":{"display_text":{"type":"string","maxLength":20},"url":{"type":"string","maxLength":2048,"description":"Public http(s) URL the button opens."}}}}}}
```

## The ChannelEntry object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ChannelEntry":{"type":"object","required":["channel","to","content"],"description":"One channel to send on. Everything the send needs is on the entry itself - a missing field is a `400` naming it. Every channel needs `profile_id`, except `whatsapp`, which needs `profile_number_id` instead.\n","properties":{"channel":{"type":"string","description":"Channel name, e.g. `viber`, `sms` or `whatsapp`. `sms` must be the last entry.\n"},"profile_id":{"type":"string","format":"uuid","description":"The sender profile this channel sends from, by the UUID we issued for it. We fill in the sender from it, and it is what the message is attributed to in your reporting. A profile belongs to one channel, so each entry has its own. A UUID that matches no active profile of yours, or a profile whose brand is disabled, is rejected with `PROFILE_NOT_FOUND`. Required on every channel except `whatsapp`, where it is refused with a `400`: the number decides the profile.\n"},"profile_number_id":{"type":"string","format":"uuid","description":"`whatsapp` only, and required there: the WhatsApp number to send from, by the API id shown for it on your profile. A UUID that matches none of your numbers is `PROFILE_NUMBER_NOT_FOUND`. A number that is not active - paused, not yet connected, or removed from your WhatsApp account - or whose profile is not active or whose brand is disabled is `PROFILE_NUMBER_NOT_ACTIVE`, with `detail` saying which.\n"},"reply_to_message_id":{"type":"string","format":"uuid","description":"`whatsapp` only, optional, and on any content but a `reaction`: the `message_id` of a reply we sent to your webhook, to answer it as a quote. It must have been received on this `profile_number_id` from this `to` - otherwise `REPLY_TO_MISMATCH`, with `detail` saying which - and within the last 30 days. An id we do not know, or one older than that, is `REPLY_TO_NOT_FOUND`. On a `template` WhatsApp accepts it, but the recipient's app does not show the quote.\n"},"to":{"type":"string","description":"Recipient phone number in international format, country code first. Whitespace and one leading `+` are removed before it is checked, so `+44 7123 456789` is sent as `447123456789` - the form the delivery report gives it back in. What is left must be 9 to 15 digits; anything else is a `400` on `to`.\n"},"content":{"description":"`Content` for `sms` and `viber`, `WhatsappContent` for `whatsapp`.\n","anyOf":[{"$ref":"#/components/schemas/Content"},{"$ref":"#/components/schemas/WhatsappContent"}]},"failover_after":{"type":"integer","minimum":1,"description":"Seconds to wait for a `DELIVERED` report on this channel before we try the next entry. Optional. Without it, we move on only when the channel refuses the message or reports it `UNDELIVERABLE`. No upper limit is checked, but we keep a message for 3 days, so a longer wait never moves on. On the last entry, the message ends as `UNDELIVERABLE` (`5000`) when the time is up. Does not apply to `sms`, which must be the last entry. See **Failover** in the description of **Send a message**.\n"}}},"Content":{"description":"For `sms`, the content is a plain text string. For rich channels like `viber` it is an object. The two are interchangeable for plain text: a string sent to Viber goes out as a text message, and `{\"type\": \"text\", \"text\": \"...\"}` sent to SMS goes out as that text.\n","oneOf":[{"type":"string","description":"Plain text."},{"$ref":"#/components/schemas/ViberContent"}]},"ViberContent":{"type":"object","description":"Viber message content. Not every combination of fields is a valid Viber message, so the ones that work are listed here in full. Anything else is rejected with `UNSUPPORTED_CONTENT`. There is a ready-made example of each under **Request samples** of the send request.\n\n**These work:**\n\n| Content | With text | With a button | |---|---|---| | `text` | - | yes | | `media_url` (image) | yes | yes | | `video` | yes | yes | | `file` | no | no | | `carousel` | yes | no | | `list` | yes | no |\n\n**These do not:** an image and a video (or a file) together; a carousel and a list together; a file with anything else at all; a button on its own, with no text, image or video to attach it to; a button with no `caption`; a completely empty content object. `ttl` may accompany any of the working combinations.\n\nOnly fields you actually fill in are sent on; empty strings, empty objects and empty lists count as not set. Keys are snake_case, and the camelCase spelling noted per field also works.\n","properties":{"text":{"type":"string"},"media_url":{"type":"string","format":"uri","description":"Image URL. Also accepted as `mediaUrl`."},"video":{"$ref":"#/components/schemas/ViberVideo"},"file":{"$ref":"#/components/schemas/ViberFile"},"button":{"$ref":"#/components/schemas/ViberButton"},"carousel":{"$ref":"#/components/schemas/ViberCarousel"},"list":{"$ref":"#/components/schemas/ViberList"},"ttl":{"type":"integer","description":"How long the message stays valid, in seconds."},"type":{"type":"string","description":"Accepted and ignored on Viber. It only matters if you send the same object to the SMS channel, where `\"text\"` marks it as convertible to plain text.\n"},"message_type":{"type":"string","description":"Accepted and ignored. Also accepted as `messageType`."}}},"ViberVideo":{"type":"object","description":"A video. This is an object, not a plain URL string.","properties":{"media_url":{"type":"string","format":"uri","description":"Video URL. Also accepted as `mediaUrl`."},"thumbnail":{"type":"string","format":"uri"}}},"ViberFile":{"type":"object","description":"A file. This is an object, not a plain URL string. A file must be sent on its own - no text, button, image or video alongside it.\n","properties":{"media_url":{"type":"string","format":"uri","description":"File URL. Also accepted as `mediaUrl`."},"file_name":{"type":"string","description":"Also accepted as `fileName`."}}},"ViberButton":{"type":"object","required":["caption"],"description":"A button needs text, an image or a video alongside it, and it must have a caption.\n","properties":{"caption":{"type":"string","description":"The button label. Required."},"action":{"type":"string","description":"What the button opens - an `https://` or `viber://` link. Note the key is `action`; a `url` key is not supported and is ignored.\n"}}},"ViberCarousel":{"type":"object","description":"A carousel of cards. Send it on its own or with text - not with an image, video, file, button or list.\n","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ViberCarouselItem"}}}},"ViberCarouselItem":{"type":"object","properties":{"title":{"type":"string"},"image_url":{"type":"string","format":"uri","description":"Also accepted as `imageUrl`."},"primary_button":{"$ref":"#/components/schemas/CarouselButton"},"secondary_button":{"$ref":"#/components/schemas/CarouselButton"}}},"CarouselButton":{"type":"object","description":"A button on a carousel card. The containing keys are also accepted as `primaryButton` / `secondaryButton`.\n","properties":{"label":{"type":"string"},"action_url":{"type":"string","format":"uri","description":"Also accepted as `actionUrl`."}}},"ViberList":{"type":"object","description":"A survey list. Send it on its own or with text - not with an image, video, file, button or carousel. `survey.options` must have at least one option.\n","properties":{"survey":{"$ref":"#/components/schemas/ViberSurvey"}}},"ViberSurvey":{"type":"object","properties":{"options":{"type":"array","minItems":1,"items":{"type":"string"}}}},"WhatsappContent":{"type":"object","required":["type"],"additionalProperties":false,"description":"WhatsApp content is an approved template, or - while the recipient's customer service window is open - a service message. It is sent to WhatsApp exactly as you give it. Carry only the object `type` names: any other key is a `400` naming it.\n\n**Template.** The template is looked up on the number's profile by `name` and `language.code`, compared exactly. None by that name and language is `TEMPLATE_NOT_FOUND`; one that is not approved and active is `TEMPLATE_NOT_ACTIVE`, with `detail` naming its status.\n\nThe price is the one for the template's category - marketing, utility or authentication - so there is no message type to send. A template whose category we cannot price is `TEMPLATE_CATEGORY_UNKNOWN`, and a category with no price on your account is `CLIENT_PRICE_NOT_FOUND`.\n\n**Service messages** - text, image, video, document, audio, sticker, location, contacts, reaction and interactive. No template is needed, but WhatsApp delivers one only within 24 hours of the recipient's last message to the number you send from. Outside that window the send is `SESSION_WINDOW_CLOSED` and nothing is sent. If we cannot tell whether the window is open, we send anyway, and a closed window comes back as a failed delivery report. The price is your service rate.\n\nTo quote the recipient's message, name it in the channel's `reply_to_message_id` - on a template too. A reaction names the message it is on in `reaction.message_id` instead.\n\nMedia is fetched by WhatsApp from `link` after we accept the send, so a link it cannot fetch, or a file it does not support, arrives as a failed delivery report rather than an error here.\n","properties":{"type":{"type":"string","enum":["template","text","image","video","document","audio","sticker","location","contacts","reaction","interactive"]},"template":{"$ref":"#/components/schemas/WhatsappTemplate"},"text":{"$ref":"#/components/schemas/WhatsappText"},"image":{"$ref":"#/components/schemas/WhatsappServiceImage"},"document":{"$ref":"#/components/schemas/WhatsappServiceDocument"},"video":{"$ref":"#/components/schemas/WhatsappServiceVideo"},"audio":{"$ref":"#/components/schemas/WhatsappServiceAudio"},"sticker":{"$ref":"#/components/schemas/WhatsappServiceSticker"},"location":{"$ref":"#/components/schemas/WhatsappServiceLocation"},"contacts":{"type":"array","minItems":1,"maxItems":5,"description":"1 to 5 contact cards, at most 16384 bytes as JSON in all.","items":{"$ref":"#/components/schemas/WhatsappContact"}},"reaction":{"$ref":"#/components/schemas/WhatsappReaction"},"interactive":{"$ref":"#/components/schemas/WhatsappInteractive"},"message_type":{"type":"string","description":"Accepted and ignored - the price follows the template's category, or is the service rate."}}},"WhatsappTemplate":{"type":"object","required":["name","language"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The template's name, as approved."},"language":{"$ref":"#/components/schemas/WhatsappLanguage"},"components":{"type":"array","maxItems":16,"description":"The values for the template's variables, in WhatsApp's own component format. Leave it out for a template without variables. At most 16 components, and the whole `template` object may be at most 32768 bytes as JSON; either over its limit is a `400`. A key WhatsApp's send-time template does not take, at any level, is a `400` naming it.\n","items":{"$ref":"#/components/schemas/WhatsappComponent"}}}},"WhatsappLanguage":{"type":"object","required":["code"],"additionalProperties":false,"properties":{"code":{"type":"string","description":"The language the template was approved in, e.g. `en_US` or `en_GB`."}}},"WhatsappComponent":{"type":"object","additionalProperties":false,"description":"One component of the template: `header`, `body`, `button`, `limited_time_offer` or `carousel`. Only `carousel` takes `cards`.\n","properties":{"type":{"type":"string"},"sub_type":{"type":"string","description":"On a button - `quick_reply`, `url` or `copy_code`."},"index":{"description":"On a button - its position among the template's buttons.","oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}},"cards":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCard"}}}},"WhatsappParameter":{"type":"object","additionalProperties":false,"description":"One value. `type` names which of the other keys carries it.\n\n`parameter_name` follows how the template's variables were approved, and is sent to WhatsApp as given, never added or removed for you. A template approved with named variables (`{{order_id}}`) takes `parameter_name` on every header and body parameter. A template with numbered variables (`{{1}}`, `{{2}}`) takes none, and its parameters go in the order the variables appear. Three cases are always numbered, whatever the template: a URL button's dynamic suffix, a carousel whose cards carry a variable (the top body and every card body), and an authentication template's body and code button. A `parameter_name` where none is expected, or a missing one where it is required, is refused by WhatsApp or delivers the variable unfilled.\n\nThe template's page in the customer portal has a \"Send via API\" panel that shows the exact channel entry for that template. Copy it from there.\n","properties":{"type":{"type":"string"},"parameter_name":{"type":"string"},"text":{"type":"string"},"payload":{"type":"string"},"coupon_code":{"type":"string"},"image":{"$ref":"#/components/schemas/WhatsappMedia"},"video":{"$ref":"#/components/schemas/WhatsappMedia"},"document":{"$ref":"#/components/schemas/WhatsappDocument"},"location":{"$ref":"#/components/schemas/WhatsappLocation"},"currency":{"$ref":"#/components/schemas/WhatsappCurrency"},"date_time":{"$ref":"#/components/schemas/WhatsappDateTime"},"limited_time_offer":{"$ref":"#/components/schemas/WhatsappLimitedTimeOffer"}}},"WhatsappMedia":{"type":"object","additionalProperties":false,"description":"An uploaded media `id` or a public `link`.","properties":{"id":{"type":"string"},"link":{"type":"string"}}},"WhatsappDocument":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"link":{"type":"string"},"filename":{"type":"string"}}},"WhatsappLocation":{"type":"object","additionalProperties":false,"properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"}}},"WhatsappCurrency":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"},"code":{"type":"string"},"amount_1000":{"type":"integer"}}},"WhatsappDateTime":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"}}},"WhatsappLimitedTimeOffer":{"type":"object","additionalProperties":false,"properties":{"expiration_time_ms":{"type":"integer"}}},"WhatsappCard":{"type":"object","additionalProperties":false,"properties":{"card_index":{"type":"integer"},"components":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCardComponent"}}}},"WhatsappCardComponent":{"type":"object","additionalProperties":false,"description":"A component of a carousel card, as `WhatsappComponent` without `cards`.","properties":{"type":{"type":"string"},"sub_type":{"type":"string"},"index":{"oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}}}},"WhatsappText":{"type":"object","required":["body"],"additionalProperties":false,"properties":{"body":{"type":"string","maxLength":4096,"description":"The message text."},"preview_url":{"type":"boolean","description":"Show a preview of the first URL in `body`."}}},"WhatsappServiceImage":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of a JPEG or PNG, up to 5 MB."},"caption":{"type":"string","maxLength":1024}}},"WhatsappServiceDocument":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the file, up to 100 MB."},"caption":{"type":"string","maxLength":1024},"filename":{"type":"string","maxLength":255,"description":"The file name the recipient sees."}}},"WhatsappServiceVideo":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the video."},"caption":{"type":"string","maxLength":1024}}},"WhatsappServiceAudio":{"type":"object","required":["link"],"additionalProperties":false,"description":"WhatsApp takes no caption on audio.","properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the audio file."}}},"WhatsappServiceSticker":{"type":"object","required":["link"],"additionalProperties":false,"description":"WhatsApp takes no caption on a sticker.","properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of a WebP sticker."}}},"WhatsappServiceLocation":{"type":"object","required":["latitude","longitude"],"additionalProperties":false,"properties":{"latitude":{"description":"Decimal degrees, -90 to 90, as a number or a string.","oneOf":[{"type":"number"},{"type":"string"}]},"longitude":{"description":"Decimal degrees, -180 to 180, as a number or a string.","oneOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string","maxLength":1000},"address":{"type":"string","maxLength":1000}}},"WhatsappContact":{"type":"object","required":["name"],"additionalProperties":false,"description":"One contact card. Every field is a non-empty string of at most 1000 characters, and each list holds at most 20 entries.\n","properties":{"name":{"$ref":"#/components/schemas/WhatsappContactName"},"addresses":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactAddress"}},"birthday":{"type":"string","description":"YYYY-MM-DD."},"emails":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactEmail"}},"org":{"$ref":"#/components/schemas/WhatsappContactOrg"},"phones":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactPhone"}},"urls":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactUrl"}}}},"WhatsappContactName":{"type":"object","required":["formatted_name"],"additionalProperties":false,"properties":{"formatted_name":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"middle_name":{"type":"string"},"prefix":{"type":"string"},"suffix":{"type":"string"}}},"WhatsappContactAddress":{"type":"object","additionalProperties":false,"properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"country_code":{"type":"string"},"type":{"type":"string"}}},"WhatsappContactEmail":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"type":{"type":"string"}}},"WhatsappContactOrg":{"type":"object","additionalProperties":false,"properties":{"company":{"type":"string"},"department":{"type":"string"},"title":{"type":"string"}}},"WhatsappContactPhone":{"type":"object","additionalProperties":false,"properties":{"phone":{"type":"string"},"type":{"type":"string"},"wa_id":{"type":"string"}}},"WhatsappContactUrl":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string"},"type":{"type":"string"}}},"WhatsappReaction":{"type":"object","required":["message_id","emoji"],"additionalProperties":false,"description":"An emoji on a message the recipient sent you. WhatsApp reports a reaction only as sent, so its delivery report is `DELIVERED` once WhatsApp has sent it.\n","properties":{"message_id":{"type":"string","format":"uuid","description":"The `message_id` of a reply we sent to your webhook, received on this `profile_number_id` from this `to` - otherwise `REPLY_TO_MISMATCH`, with `detail` saying which - within the last 30 days. An id we do not know, or one older than that, is `REPLY_TO_NOT_FOUND`. If we cannot look it up right now the send is `REPLY_TO_UNAVAILABLE`, and the same request may succeed later.\n"},"emoji":{"type":"string","description":"Exactly one emoji - a flag or a keycap counts as one. An empty emoji is refused: removing a reaction is not supported.\n"}}},"WhatsappInteractive":{"type":"object","required":["type","body","action"],"additionalProperties":false,"description":"A message with buttons. Each `type` takes its own `action`, and a key of another type's `action` is a `400`:\n\n- `button` - up to 3 reply buttons, `action.buttons`. The header may be text,\n  an image, a video or a document.\n\n- `list` - a menu, `action.button` (the label that opens it) and\n  `action.sections`: 1 to 10 sections, 10 rows in all. Each section needs a\n  `title` once there is more than one. The header may only be text, and the\n  body may be up to 4096 characters.\n\n- `cta_url` - one button that opens a URL, `action.name` `cta_url` and\n  `action.parameters`. The header may be text, an image, a video or a document.\n\n- `location_request_message` - a button asking the recipient to share their\n  location, `action.name` `send_location`. No header and no footer.\n\n\nIds and titles of buttons, and ids of rows, must be unique within the message. What the recipient picks comes back to your webhook as a reply with `content.type` `interactive` (or `location` for a shared location), with `reply_to_message_id` naming this message.\n","properties":{"type":{"type":"string","enum":["button","list","cta_url","location_request_message"]},"header":{"$ref":"#/components/schemas/WhatsappInteractiveHeader"},"body":{"$ref":"#/components/schemas/WhatsappInteractiveBody"},"footer":{"$ref":"#/components/schemas/WhatsappInteractiveFooter"},"action":{"$ref":"#/components/schemas/WhatsappInteractiveAction"}}},"WhatsappInteractiveHeader":{"type":"object","required":["type"],"additionalProperties":false,"description":"Carries `text`, or the media object `type` names - nothing else.","properties":{"type":{"type":"string","enum":["text","image","video","document"]},"text":{"type":"string","maxLength":60},"image":{"$ref":"#/components/schemas/WhatsappInteractiveMedia"},"video":{"$ref":"#/components/schemas/WhatsappInteractiveMedia"},"document":{"$ref":"#/components/schemas/WhatsappInteractiveDocument"}}},"WhatsappInteractiveMedia":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."}}},"WhatsappInteractiveDocument":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."},"filename":{"type":"string","maxLength":255,"description":"The file name the recipient sees."}}},"WhatsappInteractiveBody":{"type":"object","required":["text"],"additionalProperties":false,"properties":{"text":{"type":"string","maxLength":4096,"description":"Up to 1024 characters, or 4096 on a `list`."}}},"WhatsappInteractiveFooter":{"type":"object","required":["text"],"additionalProperties":false,"properties":{"text":{"type":"string","maxLength":60}}},"WhatsappInteractiveAction":{"type":"object","additionalProperties":false,"properties":{"buttons":{"type":"array","minItems":1,"maxItems":3,"description":"`button` only.","items":{"$ref":"#/components/schemas/WhatsappInteractiveButton"}},"button":{"type":"string","maxLength":20,"description":"`list` only: the label of the button that opens the list."},"sections":{"type":"array","minItems":1,"maxItems":10,"description":"`list` only. 10 rows in all.","items":{"$ref":"#/components/schemas/WhatsappInteractiveSection"}},"name":{"type":"string","enum":["cta_url","send_location"],"description":"`cta_url` on a `cta_url` message, `send_location` on a `location_request_message`."},"parameters":{"$ref":"#/components/schemas/WhatsappInteractiveUrl"}}},"WhatsappInteractiveButton":{"type":"object","required":["type","reply"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["reply"]},"reply":{"$ref":"#/components/schemas/WhatsappInteractiveReply"}}},"WhatsappInteractiveReply":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":256,"description":"Comes back in the reply when the recipient taps the button."},"title":{"type":"string","maxLength":20}}},"WhatsappInteractiveSection":{"type":"object","required":["rows"],"additionalProperties":false,"properties":{"title":{"type":"string","maxLength":24},"rows":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/WhatsappInteractiveRow"}}}},"WhatsappInteractiveRow":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":200,"description":"Comes back in the reply when the recipient picks the row."},"title":{"type":"string","maxLength":24},"description":{"type":"string","maxLength":72}}},"WhatsappInteractiveUrl":{"type":"object","required":["display_text","url"],"additionalProperties":false,"description":"`cta_url` only.","properties":{"display_text":{"type":"string","maxLength":20},"url":{"type":"string","maxLength":2048,"description":"Public http(s) URL the button opens."}}}}}}
```

## The Content object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"Content":{"description":"For `sms`, the content is a plain text string. For rich channels like `viber` it is an object. The two are interchangeable for plain text: a string sent to Viber goes out as a text message, and `{\"type\": \"text\", \"text\": \"...\"}` sent to SMS goes out as that text.\n","oneOf":[{"type":"string","description":"Plain text."},{"$ref":"#/components/schemas/ViberContent"}]},"ViberContent":{"type":"object","description":"Viber message content. Not every combination of fields is a valid Viber message, so the ones that work are listed here in full. Anything else is rejected with `UNSUPPORTED_CONTENT`. There is a ready-made example of each under **Request samples** of the send request.\n\n**These work:**\n\n| Content | With text | With a button | |---|---|---| | `text` | - | yes | | `media_url` (image) | yes | yes | | `video` | yes | yes | | `file` | no | no | | `carousel` | yes | no | | `list` | yes | no |\n\n**These do not:** an image and a video (or a file) together; a carousel and a list together; a file with anything else at all; a button on its own, with no text, image or video to attach it to; a button with no `caption`; a completely empty content object. `ttl` may accompany any of the working combinations.\n\nOnly fields you actually fill in are sent on; empty strings, empty objects and empty lists count as not set. Keys are snake_case, and the camelCase spelling noted per field also works.\n","properties":{"text":{"type":"string"},"media_url":{"type":"string","format":"uri","description":"Image URL. Also accepted as `mediaUrl`."},"video":{"$ref":"#/components/schemas/ViberVideo"},"file":{"$ref":"#/components/schemas/ViberFile"},"button":{"$ref":"#/components/schemas/ViberButton"},"carousel":{"$ref":"#/components/schemas/ViberCarousel"},"list":{"$ref":"#/components/schemas/ViberList"},"ttl":{"type":"integer","description":"How long the message stays valid, in seconds."},"type":{"type":"string","description":"Accepted and ignored on Viber. It only matters if you send the same object to the SMS channel, where `\"text\"` marks it as convertible to plain text.\n"},"message_type":{"type":"string","description":"Accepted and ignored. Also accepted as `messageType`."}}},"ViberVideo":{"type":"object","description":"A video. This is an object, not a plain URL string.","properties":{"media_url":{"type":"string","format":"uri","description":"Video URL. Also accepted as `mediaUrl`."},"thumbnail":{"type":"string","format":"uri"}}},"ViberFile":{"type":"object","description":"A file. This is an object, not a plain URL string. A file must be sent on its own - no text, button, image or video alongside it.\n","properties":{"media_url":{"type":"string","format":"uri","description":"File URL. Also accepted as `mediaUrl`."},"file_name":{"type":"string","description":"Also accepted as `fileName`."}}},"ViberButton":{"type":"object","required":["caption"],"description":"A button needs text, an image or a video alongside it, and it must have a caption.\n","properties":{"caption":{"type":"string","description":"The button label. Required."},"action":{"type":"string","description":"What the button opens - an `https://` or `viber://` link. Note the key is `action`; a `url` key is not supported and is ignored.\n"}}},"ViberCarousel":{"type":"object","description":"A carousel of cards. Send it on its own or with text - not with an image, video, file, button or list.\n","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ViberCarouselItem"}}}},"ViberCarouselItem":{"type":"object","properties":{"title":{"type":"string"},"image_url":{"type":"string","format":"uri","description":"Also accepted as `imageUrl`."},"primary_button":{"$ref":"#/components/schemas/CarouselButton"},"secondary_button":{"$ref":"#/components/schemas/CarouselButton"}}},"CarouselButton":{"type":"object","description":"A button on a carousel card. The containing keys are also accepted as `primaryButton` / `secondaryButton`.\n","properties":{"label":{"type":"string"},"action_url":{"type":"string","format":"uri","description":"Also accepted as `actionUrl`."}}},"ViberList":{"type":"object","description":"A survey list. Send it on its own or with text - not with an image, video, file, button or carousel. `survey.options` must have at least one option.\n","properties":{"survey":{"$ref":"#/components/schemas/ViberSurvey"}}},"ViberSurvey":{"type":"object","properties":{"options":{"type":"array","minItems":1,"items":{"type":"string"}}}}}}}
```

## The ViberContent object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ViberContent":{"type":"object","description":"Viber message content. Not every combination of fields is a valid Viber message, so the ones that work are listed here in full. Anything else is rejected with `UNSUPPORTED_CONTENT`. There is a ready-made example of each under **Request samples** of the send request.\n\n**These work:**\n\n| Content | With text | With a button | |---|---|---| | `text` | - | yes | | `media_url` (image) | yes | yes | | `video` | yes | yes | | `file` | no | no | | `carousel` | yes | no | | `list` | yes | no |\n\n**These do not:** an image and a video (or a file) together; a carousel and a list together; a file with anything else at all; a button on its own, with no text, image or video to attach it to; a button with no `caption`; a completely empty content object. `ttl` may accompany any of the working combinations.\n\nOnly fields you actually fill in are sent on; empty strings, empty objects and empty lists count as not set. Keys are snake_case, and the camelCase spelling noted per field also works.\n","properties":{"text":{"type":"string"},"media_url":{"type":"string","format":"uri","description":"Image URL. Also accepted as `mediaUrl`."},"video":{"$ref":"#/components/schemas/ViberVideo"},"file":{"$ref":"#/components/schemas/ViberFile"},"button":{"$ref":"#/components/schemas/ViberButton"},"carousel":{"$ref":"#/components/schemas/ViberCarousel"},"list":{"$ref":"#/components/schemas/ViberList"},"ttl":{"type":"integer","description":"How long the message stays valid, in seconds."},"type":{"type":"string","description":"Accepted and ignored on Viber. It only matters if you send the same object to the SMS channel, where `\"text\"` marks it as convertible to plain text.\n"},"message_type":{"type":"string","description":"Accepted and ignored. Also accepted as `messageType`."}}},"ViberVideo":{"type":"object","description":"A video. This is an object, not a plain URL string.","properties":{"media_url":{"type":"string","format":"uri","description":"Video URL. Also accepted as `mediaUrl`."},"thumbnail":{"type":"string","format":"uri"}}},"ViberFile":{"type":"object","description":"A file. This is an object, not a plain URL string. A file must be sent on its own - no text, button, image or video alongside it.\n","properties":{"media_url":{"type":"string","format":"uri","description":"File URL. Also accepted as `mediaUrl`."},"file_name":{"type":"string","description":"Also accepted as `fileName`."}}},"ViberButton":{"type":"object","required":["caption"],"description":"A button needs text, an image or a video alongside it, and it must have a caption.\n","properties":{"caption":{"type":"string","description":"The button label. Required."},"action":{"type":"string","description":"What the button opens - an `https://` or `viber://` link. Note the key is `action`; a `url` key is not supported and is ignored.\n"}}},"ViberCarousel":{"type":"object","description":"A carousel of cards. Send it on its own or with text - not with an image, video, file, button or list.\n","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ViberCarouselItem"}}}},"ViberCarouselItem":{"type":"object","properties":{"title":{"type":"string"},"image_url":{"type":"string","format":"uri","description":"Also accepted as `imageUrl`."},"primary_button":{"$ref":"#/components/schemas/CarouselButton"},"secondary_button":{"$ref":"#/components/schemas/CarouselButton"}}},"CarouselButton":{"type":"object","description":"A button on a carousel card. The containing keys are also accepted as `primaryButton` / `secondaryButton`.\n","properties":{"label":{"type":"string"},"action_url":{"type":"string","format":"uri","description":"Also accepted as `actionUrl`."}}},"ViberList":{"type":"object","description":"A survey list. Send it on its own or with text - not with an image, video, file, button or carousel. `survey.options` must have at least one option.\n","properties":{"survey":{"$ref":"#/components/schemas/ViberSurvey"}}},"ViberSurvey":{"type":"object","properties":{"options":{"type":"array","minItems":1,"items":{"type":"string"}}}}}}}
```

## The ViberVideo object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ViberVideo":{"type":"object","description":"A video. This is an object, not a plain URL string.","properties":{"media_url":{"type":"string","format":"uri","description":"Video URL. Also accepted as `mediaUrl`."},"thumbnail":{"type":"string","format":"uri"}}}}}}
```

## The ViberFile object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ViberFile":{"type":"object","description":"A file. This is an object, not a plain URL string. A file must be sent on its own - no text, button, image or video alongside it.\n","properties":{"media_url":{"type":"string","format":"uri","description":"File URL. Also accepted as `mediaUrl`."},"file_name":{"type":"string","description":"Also accepted as `fileName`."}}}}}}
```

## The ViberButton object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ViberButton":{"type":"object","required":["caption"],"description":"A button needs text, an image or a video alongside it, and it must have a caption.\n","properties":{"caption":{"type":"string","description":"The button label. Required."},"action":{"type":"string","description":"What the button opens - an `https://` or `viber://` link. Note the key is `action`; a `url` key is not supported and is ignored.\n"}}}}}}
```

## The ViberCarousel object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ViberCarousel":{"type":"object","description":"A carousel of cards. Send it on its own or with text - not with an image, video, file, button or list.\n","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ViberCarouselItem"}}}},"ViberCarouselItem":{"type":"object","properties":{"title":{"type":"string"},"image_url":{"type":"string","format":"uri","description":"Also accepted as `imageUrl`."},"primary_button":{"$ref":"#/components/schemas/CarouselButton"},"secondary_button":{"$ref":"#/components/schemas/CarouselButton"}}},"CarouselButton":{"type":"object","description":"A button on a carousel card. The containing keys are also accepted as `primaryButton` / `secondaryButton`.\n","properties":{"label":{"type":"string"},"action_url":{"type":"string","format":"uri","description":"Also accepted as `actionUrl`."}}}}}}
```

## The ViberCarouselItem object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ViberCarouselItem":{"type":"object","properties":{"title":{"type":"string"},"image_url":{"type":"string","format":"uri","description":"Also accepted as `imageUrl`."},"primary_button":{"$ref":"#/components/schemas/CarouselButton"},"secondary_button":{"$ref":"#/components/schemas/CarouselButton"}}},"CarouselButton":{"type":"object","description":"A button on a carousel card. The containing keys are also accepted as `primaryButton` / `secondaryButton`.\n","properties":{"label":{"type":"string"},"action_url":{"type":"string","format":"uri","description":"Also accepted as `actionUrl`."}}}}}}
```

## The ViberList object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ViberList":{"type":"object","description":"A survey list. Send it on its own or with text - not with an image, video, file, button or carousel. `survey.options` must have at least one option.\n","properties":{"survey":{"$ref":"#/components/schemas/ViberSurvey"}}},"ViberSurvey":{"type":"object","properties":{"options":{"type":"array","minItems":1,"items":{"type":"string"}}}}}}}
```

## The ViberSurvey object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ViberSurvey":{"type":"object","properties":{"options":{"type":"array","minItems":1,"items":{"type":"string"}}}}}}}
```

## The WhatsappContent object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappContent":{"type":"object","required":["type"],"additionalProperties":false,"description":"WhatsApp content is an approved template, or - while the recipient's customer service window is open - a service message. It is sent to WhatsApp exactly as you give it. Carry only the object `type` names: any other key is a `400` naming it.\n\n**Template.** The template is looked up on the number's profile by `name` and `language.code`, compared exactly. None by that name and language is `TEMPLATE_NOT_FOUND`; one that is not approved and active is `TEMPLATE_NOT_ACTIVE`, with `detail` naming its status.\n\nThe price is the one for the template's category - marketing, utility or authentication - so there is no message type to send. A template whose category we cannot price is `TEMPLATE_CATEGORY_UNKNOWN`, and a category with no price on your account is `CLIENT_PRICE_NOT_FOUND`.\n\n**Service messages** - text, image, video, document, audio, sticker, location, contacts, reaction and interactive. No template is needed, but WhatsApp delivers one only within 24 hours of the recipient's last message to the number you send from. Outside that window the send is `SESSION_WINDOW_CLOSED` and nothing is sent. If we cannot tell whether the window is open, we send anyway, and a closed window comes back as a failed delivery report. The price is your service rate.\n\nTo quote the recipient's message, name it in the channel's `reply_to_message_id` - on a template too. A reaction names the message it is on in `reaction.message_id` instead.\n\nMedia is fetched by WhatsApp from `link` after we accept the send, so a link it cannot fetch, or a file it does not support, arrives as a failed delivery report rather than an error here.\n","properties":{"type":{"type":"string","enum":["template","text","image","video","document","audio","sticker","location","contacts","reaction","interactive"]},"template":{"$ref":"#/components/schemas/WhatsappTemplate"},"text":{"$ref":"#/components/schemas/WhatsappText"},"image":{"$ref":"#/components/schemas/WhatsappServiceImage"},"document":{"$ref":"#/components/schemas/WhatsappServiceDocument"},"video":{"$ref":"#/components/schemas/WhatsappServiceVideo"},"audio":{"$ref":"#/components/schemas/WhatsappServiceAudio"},"sticker":{"$ref":"#/components/schemas/WhatsappServiceSticker"},"location":{"$ref":"#/components/schemas/WhatsappServiceLocation"},"contacts":{"type":"array","minItems":1,"maxItems":5,"description":"1 to 5 contact cards, at most 16384 bytes as JSON in all.","items":{"$ref":"#/components/schemas/WhatsappContact"}},"reaction":{"$ref":"#/components/schemas/WhatsappReaction"},"interactive":{"$ref":"#/components/schemas/WhatsappInteractive"},"message_type":{"type":"string","description":"Accepted and ignored - the price follows the template's category, or is the service rate."}}},"WhatsappTemplate":{"type":"object","required":["name","language"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The template's name, as approved."},"language":{"$ref":"#/components/schemas/WhatsappLanguage"},"components":{"type":"array","maxItems":16,"description":"The values for the template's variables, in WhatsApp's own component format. Leave it out for a template without variables. At most 16 components, and the whole `template` object may be at most 32768 bytes as JSON; either over its limit is a `400`. A key WhatsApp's send-time template does not take, at any level, is a `400` naming it.\n","items":{"$ref":"#/components/schemas/WhatsappComponent"}}}},"WhatsappLanguage":{"type":"object","required":["code"],"additionalProperties":false,"properties":{"code":{"type":"string","description":"The language the template was approved in, e.g. `en_US` or `en_GB`."}}},"WhatsappComponent":{"type":"object","additionalProperties":false,"description":"One component of the template: `header`, `body`, `button`, `limited_time_offer` or `carousel`. Only `carousel` takes `cards`.\n","properties":{"type":{"type":"string"},"sub_type":{"type":"string","description":"On a button - `quick_reply`, `url` or `copy_code`."},"index":{"description":"On a button - its position among the template's buttons.","oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}},"cards":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCard"}}}},"WhatsappParameter":{"type":"object","additionalProperties":false,"description":"One value. `type` names which of the other keys carries it.\n\n`parameter_name` follows how the template's variables were approved, and is sent to WhatsApp as given, never added or removed for you. A template approved with named variables (`{{order_id}}`) takes `parameter_name` on every header and body parameter. A template with numbered variables (`{{1}}`, `{{2}}`) takes none, and its parameters go in the order the variables appear. Three cases are always numbered, whatever the template: a URL button's dynamic suffix, a carousel whose cards carry a variable (the top body and every card body), and an authentication template's body and code button. A `parameter_name` where none is expected, or a missing one where it is required, is refused by WhatsApp or delivers the variable unfilled.\n\nThe template's page in the customer portal has a \"Send via API\" panel that shows the exact channel entry for that template. Copy it from there.\n","properties":{"type":{"type":"string"},"parameter_name":{"type":"string"},"text":{"type":"string"},"payload":{"type":"string"},"coupon_code":{"type":"string"},"image":{"$ref":"#/components/schemas/WhatsappMedia"},"video":{"$ref":"#/components/schemas/WhatsappMedia"},"document":{"$ref":"#/components/schemas/WhatsappDocument"},"location":{"$ref":"#/components/schemas/WhatsappLocation"},"currency":{"$ref":"#/components/schemas/WhatsappCurrency"},"date_time":{"$ref":"#/components/schemas/WhatsappDateTime"},"limited_time_offer":{"$ref":"#/components/schemas/WhatsappLimitedTimeOffer"}}},"WhatsappMedia":{"type":"object","additionalProperties":false,"description":"An uploaded media `id` or a public `link`.","properties":{"id":{"type":"string"},"link":{"type":"string"}}},"WhatsappDocument":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"link":{"type":"string"},"filename":{"type":"string"}}},"WhatsappLocation":{"type":"object","additionalProperties":false,"properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"}}},"WhatsappCurrency":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"},"code":{"type":"string"},"amount_1000":{"type":"integer"}}},"WhatsappDateTime":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"}}},"WhatsappLimitedTimeOffer":{"type":"object","additionalProperties":false,"properties":{"expiration_time_ms":{"type":"integer"}}},"WhatsappCard":{"type":"object","additionalProperties":false,"properties":{"card_index":{"type":"integer"},"components":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCardComponent"}}}},"WhatsappCardComponent":{"type":"object","additionalProperties":false,"description":"A component of a carousel card, as `WhatsappComponent` without `cards`.","properties":{"type":{"type":"string"},"sub_type":{"type":"string"},"index":{"oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}}}},"WhatsappText":{"type":"object","required":["body"],"additionalProperties":false,"properties":{"body":{"type":"string","maxLength":4096,"description":"The message text."},"preview_url":{"type":"boolean","description":"Show a preview of the first URL in `body`."}}},"WhatsappServiceImage":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of a JPEG or PNG, up to 5 MB."},"caption":{"type":"string","maxLength":1024}}},"WhatsappServiceDocument":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the file, up to 100 MB."},"caption":{"type":"string","maxLength":1024},"filename":{"type":"string","maxLength":255,"description":"The file name the recipient sees."}}},"WhatsappServiceVideo":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the video."},"caption":{"type":"string","maxLength":1024}}},"WhatsappServiceAudio":{"type":"object","required":["link"],"additionalProperties":false,"description":"WhatsApp takes no caption on audio.","properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the audio file."}}},"WhatsappServiceSticker":{"type":"object","required":["link"],"additionalProperties":false,"description":"WhatsApp takes no caption on a sticker.","properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of a WebP sticker."}}},"WhatsappServiceLocation":{"type":"object","required":["latitude","longitude"],"additionalProperties":false,"properties":{"latitude":{"description":"Decimal degrees, -90 to 90, as a number or a string.","oneOf":[{"type":"number"},{"type":"string"}]},"longitude":{"description":"Decimal degrees, -180 to 180, as a number or a string.","oneOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string","maxLength":1000},"address":{"type":"string","maxLength":1000}}},"WhatsappContact":{"type":"object","required":["name"],"additionalProperties":false,"description":"One contact card. Every field is a non-empty string of at most 1000 characters, and each list holds at most 20 entries.\n","properties":{"name":{"$ref":"#/components/schemas/WhatsappContactName"},"addresses":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactAddress"}},"birthday":{"type":"string","description":"YYYY-MM-DD."},"emails":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactEmail"}},"org":{"$ref":"#/components/schemas/WhatsappContactOrg"},"phones":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactPhone"}},"urls":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactUrl"}}}},"WhatsappContactName":{"type":"object","required":["formatted_name"],"additionalProperties":false,"properties":{"formatted_name":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"middle_name":{"type":"string"},"prefix":{"type":"string"},"suffix":{"type":"string"}}},"WhatsappContactAddress":{"type":"object","additionalProperties":false,"properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"country_code":{"type":"string"},"type":{"type":"string"}}},"WhatsappContactEmail":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"type":{"type":"string"}}},"WhatsappContactOrg":{"type":"object","additionalProperties":false,"properties":{"company":{"type":"string"},"department":{"type":"string"},"title":{"type":"string"}}},"WhatsappContactPhone":{"type":"object","additionalProperties":false,"properties":{"phone":{"type":"string"},"type":{"type":"string"},"wa_id":{"type":"string"}}},"WhatsappContactUrl":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string"},"type":{"type":"string"}}},"WhatsappReaction":{"type":"object","required":["message_id","emoji"],"additionalProperties":false,"description":"An emoji on a message the recipient sent you. WhatsApp reports a reaction only as sent, so its delivery report is `DELIVERED` once WhatsApp has sent it.\n","properties":{"message_id":{"type":"string","format":"uuid","description":"The `message_id` of a reply we sent to your webhook, received on this `profile_number_id` from this `to` - otherwise `REPLY_TO_MISMATCH`, with `detail` saying which - within the last 30 days. An id we do not know, or one older than that, is `REPLY_TO_NOT_FOUND`. If we cannot look it up right now the send is `REPLY_TO_UNAVAILABLE`, and the same request may succeed later.\n"},"emoji":{"type":"string","description":"Exactly one emoji - a flag or a keycap counts as one. An empty emoji is refused: removing a reaction is not supported.\n"}}},"WhatsappInteractive":{"type":"object","required":["type","body","action"],"additionalProperties":false,"description":"A message with buttons. Each `type` takes its own `action`, and a key of another type's `action` is a `400`:\n\n- `button` - up to 3 reply buttons, `action.buttons`. The header may be text,\n  an image, a video or a document.\n\n- `list` - a menu, `action.button` (the label that opens it) and\n  `action.sections`: 1 to 10 sections, 10 rows in all. Each section needs a\n  `title` once there is more than one. The header may only be text, and the\n  body may be up to 4096 characters.\n\n- `cta_url` - one button that opens a URL, `action.name` `cta_url` and\n  `action.parameters`. The header may be text, an image, a video or a document.\n\n- `location_request_message` - a button asking the recipient to share their\n  location, `action.name` `send_location`. No header and no footer.\n\n\nIds and titles of buttons, and ids of rows, must be unique within the message. What the recipient picks comes back to your webhook as a reply with `content.type` `interactive` (or `location` for a shared location), with `reply_to_message_id` naming this message.\n","properties":{"type":{"type":"string","enum":["button","list","cta_url","location_request_message"]},"header":{"$ref":"#/components/schemas/WhatsappInteractiveHeader"},"body":{"$ref":"#/components/schemas/WhatsappInteractiveBody"},"footer":{"$ref":"#/components/schemas/WhatsappInteractiveFooter"},"action":{"$ref":"#/components/schemas/WhatsappInteractiveAction"}}},"WhatsappInteractiveHeader":{"type":"object","required":["type"],"additionalProperties":false,"description":"Carries `text`, or the media object `type` names - nothing else.","properties":{"type":{"type":"string","enum":["text","image","video","document"]},"text":{"type":"string","maxLength":60},"image":{"$ref":"#/components/schemas/WhatsappInteractiveMedia"},"video":{"$ref":"#/components/schemas/WhatsappInteractiveMedia"},"document":{"$ref":"#/components/schemas/WhatsappInteractiveDocument"}}},"WhatsappInteractiveMedia":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."}}},"WhatsappInteractiveDocument":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."},"filename":{"type":"string","maxLength":255,"description":"The file name the recipient sees."}}},"WhatsappInteractiveBody":{"type":"object","required":["text"],"additionalProperties":false,"properties":{"text":{"type":"string","maxLength":4096,"description":"Up to 1024 characters, or 4096 on a `list`."}}},"WhatsappInteractiveFooter":{"type":"object","required":["text"],"additionalProperties":false,"properties":{"text":{"type":"string","maxLength":60}}},"WhatsappInteractiveAction":{"type":"object","additionalProperties":false,"properties":{"buttons":{"type":"array","minItems":1,"maxItems":3,"description":"`button` only.","items":{"$ref":"#/components/schemas/WhatsappInteractiveButton"}},"button":{"type":"string","maxLength":20,"description":"`list` only: the label of the button that opens the list."},"sections":{"type":"array","minItems":1,"maxItems":10,"description":"`list` only. 10 rows in all.","items":{"$ref":"#/components/schemas/WhatsappInteractiveSection"}},"name":{"type":"string","enum":["cta_url","send_location"],"description":"`cta_url` on a `cta_url` message, `send_location` on a `location_request_message`."},"parameters":{"$ref":"#/components/schemas/WhatsappInteractiveUrl"}}},"WhatsappInteractiveButton":{"type":"object","required":["type","reply"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["reply"]},"reply":{"$ref":"#/components/schemas/WhatsappInteractiveReply"}}},"WhatsappInteractiveReply":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":256,"description":"Comes back in the reply when the recipient taps the button."},"title":{"type":"string","maxLength":20}}},"WhatsappInteractiveSection":{"type":"object","required":["rows"],"additionalProperties":false,"properties":{"title":{"type":"string","maxLength":24},"rows":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/WhatsappInteractiveRow"}}}},"WhatsappInteractiveRow":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":200,"description":"Comes back in the reply when the recipient picks the row."},"title":{"type":"string","maxLength":24},"description":{"type":"string","maxLength":72}}},"WhatsappInteractiveUrl":{"type":"object","required":["display_text","url"],"additionalProperties":false,"description":"`cta_url` only.","properties":{"display_text":{"type":"string","maxLength":20},"url":{"type":"string","maxLength":2048,"description":"Public http(s) URL the button opens."}}}}}}
```

## The WhatsappText object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappText":{"type":"object","required":["body"],"additionalProperties":false,"properties":{"body":{"type":"string","maxLength":4096,"description":"The message text."},"preview_url":{"type":"boolean","description":"Show a preview of the first URL in `body`."}}}}}}
```

## The WhatsappServiceImage object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappServiceImage":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of a JPEG or PNG, up to 5 MB."},"caption":{"type":"string","maxLength":1024}}}}}}
```

## The WhatsappServiceDocument object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappServiceDocument":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the file, up to 100 MB."},"caption":{"type":"string","maxLength":1024},"filename":{"type":"string","maxLength":255,"description":"The file name the recipient sees."}}}}}}
```

## The WhatsappServiceVideo object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappServiceVideo":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the video."},"caption":{"type":"string","maxLength":1024}}}}}}
```

## The WhatsappServiceAudio object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappServiceAudio":{"type":"object","required":["link"],"additionalProperties":false,"description":"WhatsApp takes no caption on audio.","properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of the audio file."}}}}}}
```

## The WhatsappServiceSticker object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappServiceSticker":{"type":"object","required":["link"],"additionalProperties":false,"description":"WhatsApp takes no caption on a sticker.","properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL of a WebP sticker."}}}}}}
```

## The WhatsappServiceLocation object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappServiceLocation":{"type":"object","required":["latitude","longitude"],"additionalProperties":false,"properties":{"latitude":{"description":"Decimal degrees, -90 to 90, as a number or a string.","oneOf":[{"type":"number"},{"type":"string"}]},"longitude":{"description":"Decimal degrees, -180 to 180, as a number or a string.","oneOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string","maxLength":1000},"address":{"type":"string","maxLength":1000}}}}}}
```

## The WhatsappContact object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappContact":{"type":"object","required":["name"],"additionalProperties":false,"description":"One contact card. Every field is a non-empty string of at most 1000 characters, and each list holds at most 20 entries.\n","properties":{"name":{"$ref":"#/components/schemas/WhatsappContactName"},"addresses":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactAddress"}},"birthday":{"type":"string","description":"YYYY-MM-DD."},"emails":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactEmail"}},"org":{"$ref":"#/components/schemas/WhatsappContactOrg"},"phones":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactPhone"}},"urls":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/WhatsappContactUrl"}}}},"WhatsappContactName":{"type":"object","required":["formatted_name"],"additionalProperties":false,"properties":{"formatted_name":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"middle_name":{"type":"string"},"prefix":{"type":"string"},"suffix":{"type":"string"}}},"WhatsappContactAddress":{"type":"object","additionalProperties":false,"properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"country_code":{"type":"string"},"type":{"type":"string"}}},"WhatsappContactEmail":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"type":{"type":"string"}}},"WhatsappContactOrg":{"type":"object","additionalProperties":false,"properties":{"company":{"type":"string"},"department":{"type":"string"},"title":{"type":"string"}}},"WhatsappContactPhone":{"type":"object","additionalProperties":false,"properties":{"phone":{"type":"string"},"type":{"type":"string"},"wa_id":{"type":"string"}}},"WhatsappContactUrl":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string"},"type":{"type":"string"}}}}}}
```

## The WhatsappContactName object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappContactName":{"type":"object","required":["formatted_name"],"additionalProperties":false,"properties":{"formatted_name":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"middle_name":{"type":"string"},"prefix":{"type":"string"},"suffix":{"type":"string"}}}}}}
```

## The WhatsappContactAddress object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappContactAddress":{"type":"object","additionalProperties":false,"properties":{"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"zip":{"type":"string"},"country":{"type":"string"},"country_code":{"type":"string"},"type":{"type":"string"}}}}}}
```

## The WhatsappContactEmail object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappContactEmail":{"type":"object","additionalProperties":false,"properties":{"email":{"type":"string"},"type":{"type":"string"}}}}}}
```

## The WhatsappContactOrg object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappContactOrg":{"type":"object","additionalProperties":false,"properties":{"company":{"type":"string"},"department":{"type":"string"},"title":{"type":"string"}}}}}}
```

## The WhatsappContactPhone object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappContactPhone":{"type":"object","additionalProperties":false,"properties":{"phone":{"type":"string"},"type":{"type":"string"},"wa_id":{"type":"string"}}}}}}
```

## The WhatsappContactUrl object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappContactUrl":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string"},"type":{"type":"string"}}}}}}
```

## The WhatsappReaction object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappReaction":{"type":"object","required":["message_id","emoji"],"additionalProperties":false,"description":"An emoji on a message the recipient sent you. WhatsApp reports a reaction only as sent, so its delivery report is `DELIVERED` once WhatsApp has sent it.\n","properties":{"message_id":{"type":"string","format":"uuid","description":"The `message_id` of a reply we sent to your webhook, received on this `profile_number_id` from this `to` - otherwise `REPLY_TO_MISMATCH`, with `detail` saying which - within the last 30 days. An id we do not know, or one older than that, is `REPLY_TO_NOT_FOUND`. If we cannot look it up right now the send is `REPLY_TO_UNAVAILABLE`, and the same request may succeed later.\n"},"emoji":{"type":"string","description":"Exactly one emoji - a flag or a keycap counts as one. An empty emoji is refused: removing a reaction is not supported.\n"}}}}}}
```

## The WhatsappInteractive object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractive":{"type":"object","required":["type","body","action"],"additionalProperties":false,"description":"A message with buttons. Each `type` takes its own `action`, and a key of another type's `action` is a `400`:\n\n- `button` - up to 3 reply buttons, `action.buttons`. The header may be text,\n  an image, a video or a document.\n\n- `list` - a menu, `action.button` (the label that opens it) and\n  `action.sections`: 1 to 10 sections, 10 rows in all. Each section needs a\n  `title` once there is more than one. The header may only be text, and the\n  body may be up to 4096 characters.\n\n- `cta_url` - one button that opens a URL, `action.name` `cta_url` and\n  `action.parameters`. The header may be text, an image, a video or a document.\n\n- `location_request_message` - a button asking the recipient to share their\n  location, `action.name` `send_location`. No header and no footer.\n\n\nIds and titles of buttons, and ids of rows, must be unique within the message. What the recipient picks comes back to your webhook as a reply with `content.type` `interactive` (or `location` for a shared location), with `reply_to_message_id` naming this message.\n","properties":{"type":{"type":"string","enum":["button","list","cta_url","location_request_message"]},"header":{"$ref":"#/components/schemas/WhatsappInteractiveHeader"},"body":{"$ref":"#/components/schemas/WhatsappInteractiveBody"},"footer":{"$ref":"#/components/schemas/WhatsappInteractiveFooter"},"action":{"$ref":"#/components/schemas/WhatsappInteractiveAction"}}},"WhatsappInteractiveHeader":{"type":"object","required":["type"],"additionalProperties":false,"description":"Carries `text`, or the media object `type` names - nothing else.","properties":{"type":{"type":"string","enum":["text","image","video","document"]},"text":{"type":"string","maxLength":60},"image":{"$ref":"#/components/schemas/WhatsappInteractiveMedia"},"video":{"$ref":"#/components/schemas/WhatsappInteractiveMedia"},"document":{"$ref":"#/components/schemas/WhatsappInteractiveDocument"}}},"WhatsappInteractiveMedia":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."}}},"WhatsappInteractiveDocument":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."},"filename":{"type":"string","maxLength":255,"description":"The file name the recipient sees."}}},"WhatsappInteractiveBody":{"type":"object","required":["text"],"additionalProperties":false,"properties":{"text":{"type":"string","maxLength":4096,"description":"Up to 1024 characters, or 4096 on a `list`."}}},"WhatsappInteractiveFooter":{"type":"object","required":["text"],"additionalProperties":false,"properties":{"text":{"type":"string","maxLength":60}}},"WhatsappInteractiveAction":{"type":"object","additionalProperties":false,"properties":{"buttons":{"type":"array","minItems":1,"maxItems":3,"description":"`button` only.","items":{"$ref":"#/components/schemas/WhatsappInteractiveButton"}},"button":{"type":"string","maxLength":20,"description":"`list` only: the label of the button that opens the list."},"sections":{"type":"array","minItems":1,"maxItems":10,"description":"`list` only. 10 rows in all.","items":{"$ref":"#/components/schemas/WhatsappInteractiveSection"}},"name":{"type":"string","enum":["cta_url","send_location"],"description":"`cta_url` on a `cta_url` message, `send_location` on a `location_request_message`."},"parameters":{"$ref":"#/components/schemas/WhatsappInteractiveUrl"}}},"WhatsappInteractiveButton":{"type":"object","required":["type","reply"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["reply"]},"reply":{"$ref":"#/components/schemas/WhatsappInteractiveReply"}}},"WhatsappInteractiveReply":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":256,"description":"Comes back in the reply when the recipient taps the button."},"title":{"type":"string","maxLength":20}}},"WhatsappInteractiveSection":{"type":"object","required":["rows"],"additionalProperties":false,"properties":{"title":{"type":"string","maxLength":24},"rows":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/WhatsappInteractiveRow"}}}},"WhatsappInteractiveRow":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":200,"description":"Comes back in the reply when the recipient picks the row."},"title":{"type":"string","maxLength":24},"description":{"type":"string","maxLength":72}}},"WhatsappInteractiveUrl":{"type":"object","required":["display_text","url"],"additionalProperties":false,"description":"`cta_url` only.","properties":{"display_text":{"type":"string","maxLength":20},"url":{"type":"string","maxLength":2048,"description":"Public http(s) URL the button opens."}}}}}}
```

## The WhatsappInteractiveHeader object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveHeader":{"type":"object","required":["type"],"additionalProperties":false,"description":"Carries `text`, or the media object `type` names - nothing else.","properties":{"type":{"type":"string","enum":["text","image","video","document"]},"text":{"type":"string","maxLength":60},"image":{"$ref":"#/components/schemas/WhatsappInteractiveMedia"},"video":{"$ref":"#/components/schemas/WhatsappInteractiveMedia"},"document":{"$ref":"#/components/schemas/WhatsappInteractiveDocument"}}},"WhatsappInteractiveMedia":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."}}},"WhatsappInteractiveDocument":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."},"filename":{"type":"string","maxLength":255,"description":"The file name the recipient sees."}}}}}}
```

## The WhatsappInteractiveMedia object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveMedia":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."}}}}}}
```

## The WhatsappInteractiveDocument object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveDocument":{"type":"object","required":["link"],"additionalProperties":false,"properties":{"link":{"type":"string","maxLength":2048,"description":"Public http(s) URL."},"filename":{"type":"string","maxLength":255,"description":"The file name the recipient sees."}}}}}}
```

## The WhatsappInteractiveBody object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveBody":{"type":"object","required":["text"],"additionalProperties":false,"properties":{"text":{"type":"string","maxLength":4096,"description":"Up to 1024 characters, or 4096 on a `list`."}}}}}}
```

## The WhatsappInteractiveFooter object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveFooter":{"type":"object","required":["text"],"additionalProperties":false,"properties":{"text":{"type":"string","maxLength":60}}}}}}
```

## The WhatsappInteractiveAction object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveAction":{"type":"object","additionalProperties":false,"properties":{"buttons":{"type":"array","minItems":1,"maxItems":3,"description":"`button` only.","items":{"$ref":"#/components/schemas/WhatsappInteractiveButton"}},"button":{"type":"string","maxLength":20,"description":"`list` only: the label of the button that opens the list."},"sections":{"type":"array","minItems":1,"maxItems":10,"description":"`list` only. 10 rows in all.","items":{"$ref":"#/components/schemas/WhatsappInteractiveSection"}},"name":{"type":"string","enum":["cta_url","send_location"],"description":"`cta_url` on a `cta_url` message, `send_location` on a `location_request_message`."},"parameters":{"$ref":"#/components/schemas/WhatsappInteractiveUrl"}}},"WhatsappInteractiveButton":{"type":"object","required":["type","reply"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["reply"]},"reply":{"$ref":"#/components/schemas/WhatsappInteractiveReply"}}},"WhatsappInteractiveReply":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":256,"description":"Comes back in the reply when the recipient taps the button."},"title":{"type":"string","maxLength":20}}},"WhatsappInteractiveSection":{"type":"object","required":["rows"],"additionalProperties":false,"properties":{"title":{"type":"string","maxLength":24},"rows":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/WhatsappInteractiveRow"}}}},"WhatsappInteractiveRow":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":200,"description":"Comes back in the reply when the recipient picks the row."},"title":{"type":"string","maxLength":24},"description":{"type":"string","maxLength":72}}},"WhatsappInteractiveUrl":{"type":"object","required":["display_text","url"],"additionalProperties":false,"description":"`cta_url` only.","properties":{"display_text":{"type":"string","maxLength":20},"url":{"type":"string","maxLength":2048,"description":"Public http(s) URL the button opens."}}}}}}
```

## The WhatsappInteractiveButton object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveButton":{"type":"object","required":["type","reply"],"additionalProperties":false,"properties":{"type":{"type":"string","enum":["reply"]},"reply":{"$ref":"#/components/schemas/WhatsappInteractiveReply"}}},"WhatsappInteractiveReply":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":256,"description":"Comes back in the reply when the recipient taps the button."},"title":{"type":"string","maxLength":20}}}}}}
```

## The WhatsappInteractiveReply object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveReply":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":256,"description":"Comes back in the reply when the recipient taps the button."},"title":{"type":"string","maxLength":20}}}}}}
```

## The WhatsappInteractiveSection object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveSection":{"type":"object","required":["rows"],"additionalProperties":false,"properties":{"title":{"type":"string","maxLength":24},"rows":{"type":"array","minItems":1,"maxItems":10,"items":{"$ref":"#/components/schemas/WhatsappInteractiveRow"}}}},"WhatsappInteractiveRow":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":200,"description":"Comes back in the reply when the recipient picks the row."},"title":{"type":"string","maxLength":24},"description":{"type":"string","maxLength":72}}}}}}
```

## The WhatsappInteractiveRow object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveRow":{"type":"object","required":["id","title"],"additionalProperties":false,"properties":{"id":{"type":"string","maxLength":200,"description":"Comes back in the reply when the recipient picks the row."},"title":{"type":"string","maxLength":24},"description":{"type":"string","maxLength":72}}}}}}
```

## The WhatsappInteractiveUrl object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappInteractiveUrl":{"type":"object","required":["display_text","url"],"additionalProperties":false,"description":"`cta_url` only.","properties":{"display_text":{"type":"string","maxLength":20},"url":{"type":"string","maxLength":2048,"description":"Public http(s) URL the button opens."}}}}}}
```

## The WhatsappTemplate object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappTemplate":{"type":"object","required":["name","language"],"additionalProperties":false,"properties":{"name":{"type":"string","description":"The template's name, as approved."},"language":{"$ref":"#/components/schemas/WhatsappLanguage"},"components":{"type":"array","maxItems":16,"description":"The values for the template's variables, in WhatsApp's own component format. Leave it out for a template without variables. At most 16 components, and the whole `template` object may be at most 32768 bytes as JSON; either over its limit is a `400`. A key WhatsApp's send-time template does not take, at any level, is a `400` naming it.\n","items":{"$ref":"#/components/schemas/WhatsappComponent"}}}},"WhatsappLanguage":{"type":"object","required":["code"],"additionalProperties":false,"properties":{"code":{"type":"string","description":"The language the template was approved in, e.g. `en_US` or `en_GB`."}}},"WhatsappComponent":{"type":"object","additionalProperties":false,"description":"One component of the template: `header`, `body`, `button`, `limited_time_offer` or `carousel`. Only `carousel` takes `cards`.\n","properties":{"type":{"type":"string"},"sub_type":{"type":"string","description":"On a button - `quick_reply`, `url` or `copy_code`."},"index":{"description":"On a button - its position among the template's buttons.","oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}},"cards":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCard"}}}},"WhatsappParameter":{"type":"object","additionalProperties":false,"description":"One value. `type` names which of the other keys carries it.\n\n`parameter_name` follows how the template's variables were approved, and is sent to WhatsApp as given, never added or removed for you. A template approved with named variables (`{{order_id}}`) takes `parameter_name` on every header and body parameter. A template with numbered variables (`{{1}}`, `{{2}}`) takes none, and its parameters go in the order the variables appear. Three cases are always numbered, whatever the template: a URL button's dynamic suffix, a carousel whose cards carry a variable (the top body and every card body), and an authentication template's body and code button. A `parameter_name` where none is expected, or a missing one where it is required, is refused by WhatsApp or delivers the variable unfilled.\n\nThe template's page in the customer portal has a \"Send via API\" panel that shows the exact channel entry for that template. Copy it from there.\n","properties":{"type":{"type":"string"},"parameter_name":{"type":"string"},"text":{"type":"string"},"payload":{"type":"string"},"coupon_code":{"type":"string"},"image":{"$ref":"#/components/schemas/WhatsappMedia"},"video":{"$ref":"#/components/schemas/WhatsappMedia"},"document":{"$ref":"#/components/schemas/WhatsappDocument"},"location":{"$ref":"#/components/schemas/WhatsappLocation"},"currency":{"$ref":"#/components/schemas/WhatsappCurrency"},"date_time":{"$ref":"#/components/schemas/WhatsappDateTime"},"limited_time_offer":{"$ref":"#/components/schemas/WhatsappLimitedTimeOffer"}}},"WhatsappMedia":{"type":"object","additionalProperties":false,"description":"An uploaded media `id` or a public `link`.","properties":{"id":{"type":"string"},"link":{"type":"string"}}},"WhatsappDocument":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"link":{"type":"string"},"filename":{"type":"string"}}},"WhatsappLocation":{"type":"object","additionalProperties":false,"properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"}}},"WhatsappCurrency":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"},"code":{"type":"string"},"amount_1000":{"type":"integer"}}},"WhatsappDateTime":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"}}},"WhatsappLimitedTimeOffer":{"type":"object","additionalProperties":false,"properties":{"expiration_time_ms":{"type":"integer"}}},"WhatsappCard":{"type":"object","additionalProperties":false,"properties":{"card_index":{"type":"integer"},"components":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCardComponent"}}}},"WhatsappCardComponent":{"type":"object","additionalProperties":false,"description":"A component of a carousel card, as `WhatsappComponent` without `cards`.","properties":{"type":{"type":"string"},"sub_type":{"type":"string"},"index":{"oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}}}}}}}
```

## The WhatsappLanguage object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappLanguage":{"type":"object","required":["code"],"additionalProperties":false,"properties":{"code":{"type":"string","description":"The language the template was approved in, e.g. `en_US` or `en_GB`."}}}}}}
```

## The WhatsappComponent object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappComponent":{"type":"object","additionalProperties":false,"description":"One component of the template: `header`, `body`, `button`, `limited_time_offer` or `carousel`. Only `carousel` takes `cards`.\n","properties":{"type":{"type":"string"},"sub_type":{"type":"string","description":"On a button - `quick_reply`, `url` or `copy_code`."},"index":{"description":"On a button - its position among the template's buttons.","oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}},"cards":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCard"}}}},"WhatsappParameter":{"type":"object","additionalProperties":false,"description":"One value. `type` names which of the other keys carries it.\n\n`parameter_name` follows how the template's variables were approved, and is sent to WhatsApp as given, never added or removed for you. A template approved with named variables (`{{order_id}}`) takes `parameter_name` on every header and body parameter. A template with numbered variables (`{{1}}`, `{{2}}`) takes none, and its parameters go in the order the variables appear. Three cases are always numbered, whatever the template: a URL button's dynamic suffix, a carousel whose cards carry a variable (the top body and every card body), and an authentication template's body and code button. A `parameter_name` where none is expected, or a missing one where it is required, is refused by WhatsApp or delivers the variable unfilled.\n\nThe template's page in the customer portal has a \"Send via API\" panel that shows the exact channel entry for that template. Copy it from there.\n","properties":{"type":{"type":"string"},"parameter_name":{"type":"string"},"text":{"type":"string"},"payload":{"type":"string"},"coupon_code":{"type":"string"},"image":{"$ref":"#/components/schemas/WhatsappMedia"},"video":{"$ref":"#/components/schemas/WhatsappMedia"},"document":{"$ref":"#/components/schemas/WhatsappDocument"},"location":{"$ref":"#/components/schemas/WhatsappLocation"},"currency":{"$ref":"#/components/schemas/WhatsappCurrency"},"date_time":{"$ref":"#/components/schemas/WhatsappDateTime"},"limited_time_offer":{"$ref":"#/components/schemas/WhatsappLimitedTimeOffer"}}},"WhatsappMedia":{"type":"object","additionalProperties":false,"description":"An uploaded media `id` or a public `link`.","properties":{"id":{"type":"string"},"link":{"type":"string"}}},"WhatsappDocument":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"link":{"type":"string"},"filename":{"type":"string"}}},"WhatsappLocation":{"type":"object","additionalProperties":false,"properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"}}},"WhatsappCurrency":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"},"code":{"type":"string"},"amount_1000":{"type":"integer"}}},"WhatsappDateTime":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"}}},"WhatsappLimitedTimeOffer":{"type":"object","additionalProperties":false,"properties":{"expiration_time_ms":{"type":"integer"}}},"WhatsappCard":{"type":"object","additionalProperties":false,"properties":{"card_index":{"type":"integer"},"components":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCardComponent"}}}},"WhatsappCardComponent":{"type":"object","additionalProperties":false,"description":"A component of a carousel card, as `WhatsappComponent` without `cards`.","properties":{"type":{"type":"string"},"sub_type":{"type":"string"},"index":{"oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}}}}}}}
```

## The WhatsappCard object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappCard":{"type":"object","additionalProperties":false,"properties":{"card_index":{"type":"integer"},"components":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappCardComponent"}}}},"WhatsappCardComponent":{"type":"object","additionalProperties":false,"description":"A component of a carousel card, as `WhatsappComponent` without `cards`.","properties":{"type":{"type":"string"},"sub_type":{"type":"string"},"index":{"oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}}}},"WhatsappParameter":{"type":"object","additionalProperties":false,"description":"One value. `type` names which of the other keys carries it.\n\n`parameter_name` follows how the template's variables were approved, and is sent to WhatsApp as given, never added or removed for you. A template approved with named variables (`{{order_id}}`) takes `parameter_name` on every header and body parameter. A template with numbered variables (`{{1}}`, `{{2}}`) takes none, and its parameters go in the order the variables appear. Three cases are always numbered, whatever the template: a URL button's dynamic suffix, a carousel whose cards carry a variable (the top body and every card body), and an authentication template's body and code button. A `parameter_name` where none is expected, or a missing one where it is required, is refused by WhatsApp or delivers the variable unfilled.\n\nThe template's page in the customer portal has a \"Send via API\" panel that shows the exact channel entry for that template. Copy it from there.\n","properties":{"type":{"type":"string"},"parameter_name":{"type":"string"},"text":{"type":"string"},"payload":{"type":"string"},"coupon_code":{"type":"string"},"image":{"$ref":"#/components/schemas/WhatsappMedia"},"video":{"$ref":"#/components/schemas/WhatsappMedia"},"document":{"$ref":"#/components/schemas/WhatsappDocument"},"location":{"$ref":"#/components/schemas/WhatsappLocation"},"currency":{"$ref":"#/components/schemas/WhatsappCurrency"},"date_time":{"$ref":"#/components/schemas/WhatsappDateTime"},"limited_time_offer":{"$ref":"#/components/schemas/WhatsappLimitedTimeOffer"}}},"WhatsappMedia":{"type":"object","additionalProperties":false,"description":"An uploaded media `id` or a public `link`.","properties":{"id":{"type":"string"},"link":{"type":"string"}}},"WhatsappDocument":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"link":{"type":"string"},"filename":{"type":"string"}}},"WhatsappLocation":{"type":"object","additionalProperties":false,"properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"}}},"WhatsappCurrency":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"},"code":{"type":"string"},"amount_1000":{"type":"integer"}}},"WhatsappDateTime":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"}}},"WhatsappLimitedTimeOffer":{"type":"object","additionalProperties":false,"properties":{"expiration_time_ms":{"type":"integer"}}}}}}
```

## The WhatsappCardComponent object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappCardComponent":{"type":"object","additionalProperties":false,"description":"A component of a carousel card, as `WhatsappComponent` without `cards`.","properties":{"type":{"type":"string"},"sub_type":{"type":"string"},"index":{"oneOf":[{"type":"integer"},{"type":"string"}]},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappParameter"}}}},"WhatsappParameter":{"type":"object","additionalProperties":false,"description":"One value. `type` names which of the other keys carries it.\n\n`parameter_name` follows how the template's variables were approved, and is sent to WhatsApp as given, never added or removed for you. A template approved with named variables (`{{order_id}}`) takes `parameter_name` on every header and body parameter. A template with numbered variables (`{{1}}`, `{{2}}`) takes none, and its parameters go in the order the variables appear. Three cases are always numbered, whatever the template: a URL button's dynamic suffix, a carousel whose cards carry a variable (the top body and every card body), and an authentication template's body and code button. A `parameter_name` where none is expected, or a missing one where it is required, is refused by WhatsApp or delivers the variable unfilled.\n\nThe template's page in the customer portal has a \"Send via API\" panel that shows the exact channel entry for that template. Copy it from there.\n","properties":{"type":{"type":"string"},"parameter_name":{"type":"string"},"text":{"type":"string"},"payload":{"type":"string"},"coupon_code":{"type":"string"},"image":{"$ref":"#/components/schemas/WhatsappMedia"},"video":{"$ref":"#/components/schemas/WhatsappMedia"},"document":{"$ref":"#/components/schemas/WhatsappDocument"},"location":{"$ref":"#/components/schemas/WhatsappLocation"},"currency":{"$ref":"#/components/schemas/WhatsappCurrency"},"date_time":{"$ref":"#/components/schemas/WhatsappDateTime"},"limited_time_offer":{"$ref":"#/components/schemas/WhatsappLimitedTimeOffer"}}},"WhatsappMedia":{"type":"object","additionalProperties":false,"description":"An uploaded media `id` or a public `link`.","properties":{"id":{"type":"string"},"link":{"type":"string"}}},"WhatsappDocument":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"link":{"type":"string"},"filename":{"type":"string"}}},"WhatsappLocation":{"type":"object","additionalProperties":false,"properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"}}},"WhatsappCurrency":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"},"code":{"type":"string"},"amount_1000":{"type":"integer"}}},"WhatsappDateTime":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"}}},"WhatsappLimitedTimeOffer":{"type":"object","additionalProperties":false,"properties":{"expiration_time_ms":{"type":"integer"}}}}}}
```

## The WhatsappParameter object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappParameter":{"type":"object","additionalProperties":false,"description":"One value. `type` names which of the other keys carries it.\n\n`parameter_name` follows how the template's variables were approved, and is sent to WhatsApp as given, never added or removed for you. A template approved with named variables (`{{order_id}}`) takes `parameter_name` on every header and body parameter. A template with numbered variables (`{{1}}`, `{{2}}`) takes none, and its parameters go in the order the variables appear. Three cases are always numbered, whatever the template: a URL button's dynamic suffix, a carousel whose cards carry a variable (the top body and every card body), and an authentication template's body and code button. A `parameter_name` where none is expected, or a missing one where it is required, is refused by WhatsApp or delivers the variable unfilled.\n\nThe template's page in the customer portal has a \"Send via API\" panel that shows the exact channel entry for that template. Copy it from there.\n","properties":{"type":{"type":"string"},"parameter_name":{"type":"string"},"text":{"type":"string"},"payload":{"type":"string"},"coupon_code":{"type":"string"},"image":{"$ref":"#/components/schemas/WhatsappMedia"},"video":{"$ref":"#/components/schemas/WhatsappMedia"},"document":{"$ref":"#/components/schemas/WhatsappDocument"},"location":{"$ref":"#/components/schemas/WhatsappLocation"},"currency":{"$ref":"#/components/schemas/WhatsappCurrency"},"date_time":{"$ref":"#/components/schemas/WhatsappDateTime"},"limited_time_offer":{"$ref":"#/components/schemas/WhatsappLimitedTimeOffer"}}},"WhatsappMedia":{"type":"object","additionalProperties":false,"description":"An uploaded media `id` or a public `link`.","properties":{"id":{"type":"string"},"link":{"type":"string"}}},"WhatsappDocument":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"link":{"type":"string"},"filename":{"type":"string"}}},"WhatsappLocation":{"type":"object","additionalProperties":false,"properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"}}},"WhatsappCurrency":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"},"code":{"type":"string"},"amount_1000":{"type":"integer"}}},"WhatsappDateTime":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"}}},"WhatsappLimitedTimeOffer":{"type":"object","additionalProperties":false,"properties":{"expiration_time_ms":{"type":"integer"}}}}}}
```

## The WhatsappDocument object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappDocument":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string"},"link":{"type":"string"},"filename":{"type":"string"}}}}}}
```

## The WhatsappLocation object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappLocation":{"type":"object","additionalProperties":false,"properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"}}}}}}
```

## The WhatsappCurrency object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappCurrency":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"},"code":{"type":"string"},"amount_1000":{"type":"integer"}}}}}}
```

## The WhatsappDateTime object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappDateTime":{"type":"object","additionalProperties":false,"properties":{"fallback_value":{"type":"string"}}}}}}
```

## The WhatsappLimitedTimeOffer object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappLimitedTimeOffer":{"type":"object","additionalProperties":false,"properties":{"expiration_time_ms":{"type":"integer"}}}}}}
```

## The WhatsappMedia object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"WhatsappMedia":{"type":"object","additionalProperties":false,"description":"An uploaded media `id` or a public `link`.","properties":{"id":{"type":"string"},"link":{"type":"string"}}}}}}
```

## The CarouselButton object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"CarouselButton":{"type":"object","description":"A button on a carousel card. The containing keys are also accepted as `primaryButton` / `secondaryButton`.\n","properties":{"label":{"type":"string"},"action_url":{"type":"string","format":"uri","description":"Also accepted as `actionUrl`."}}}}}}
```

## The ErrorEntry object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ErrorEntry":{"type":"object","properties":{"property":{"type":"string","description":"The request field that is wrong."},"error":{"type":"string","description":"What is wrong with it."}}}}}}
```

## The Problem object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"Problem":{"type":"object","description":"Every error, in one shape - `application/problem+json` (RFC 9457). There is not a different body per kind of failure, so you only need one parser.\n","required":["title","status","code"],"properties":{"title":{"type":"string","description":"Short human-readable summary of what went wrong. Meant for your logs, not for branching on - the wording may change.\n"},"status":{"type":"integer","description":"The HTTP status, repeated here so the body stands on its own."},"code":{"type":"string","description":"Stable machine-readable code. **This is the one to branch on** - it never changes for a given condition, while the status and title may be refined.\n","enum":["VALIDATION_FAILED","UNAUTHORIZED","OUT_OF_BALANCE","CLIENT_PRICE_NOT_FOUND","IP_NOT_ALLOWED","DISABLED_CONNECTION","DISABLED_CLIENT","CLIENT_ARCHIVED","DISABLED_ACCOUNT","DISABLED_PRODUCT","DISABLED_CLIENT_PRODUCT","CHANNEL_DISABLED","INVALID_SENDER","DESTINATION_COUNTRY_FORBIDDEN","UNKNOWN_CHANNEL","CHANNEL_NOT_CONFIGURED","CLIENT_PRODUCT_DOES_NOT_EXIST","PROFILE_NOT_FOUND","PROFILE_NUMBER_NOT_FOUND","PROFILE_NUMBER_NOT_ACTIVE","TEMPLATE_NOT_FOUND","TEMPLATE_NOT_ACTIVE","TEMPLATE_CATEGORY_UNKNOWN","SESSION_WINDOW_CLOSED","REPLY_TO_NOT_FOUND","REPLY_TO_MISMATCH","REPLY_TO_UNAVAILABLE","UNKNOWN_BRAND","NO_DNS_CONFIGURED","NOT_FOUND","METHOD_NOT_ALLOWED","UNSUPPORTED_MEDIA_TYPE","PAYLOAD_TOO_LARGE","UNSUPPORTED_CONTENT","REJECTED","TOO_MANY_REQUESTS","NO_ROUTES","INTERNAL_ERROR"]},"detail":{"type":"string","description":"Present when one code covers several reasons, and names the one that applied - e.g. `Number is PAUSED` on `PROFILE_NUMBER_NOT_ACTIVE`, or `Template is PENDING` on `TEMPLATE_NOT_ACTIVE`. For a human, like `title`.\n"},"errors":{"type":"array","description":"Only on a `400`: one entry per offending field, so you can point at the exact problem rather than re-reading the whole request.\n","items":{"$ref":"#/components/schemas/ErrorEntry"}}}},"ErrorEntry":{"type":"object","properties":{"property":{"type":"string","description":"The request field that is wrong."},"error":{"type":"string","description":"What is wrong with it."}}}}}}
```

## The DeliveryReport object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"DeliveryReport":{"type":"object","description":"The delivery report we POST to the webhook set for your API key.","properties":{"type":{"type":"string","enum":["DLR"]},"message_id":{"type":"string","format":"uuid","description":"The `request_id` you got when the message was accepted."},"to":{"type":"string","description":"Recipient phone number."},"status":{"type":"string","enum":["DELIVERED","SEEN","UNDELIVERABLE"],"description":"`DELIVERED` and `UNDELIVERABLE` are final: the message is done, and no other channel will be tried. `SEEN` is a read receipt and is not final; expect it in addition to, not instead of, a final report.\n"},"error":{"type":"string","description":"Result code. `000` for `DELIVERED` and `SEEN`. On `UNDELIVERABLE`, why the\nmessage was not delivered:\n\n| code | meaning |\n| --- | --- |\n| `001` | The recipient has no account on this channel. |\n| `5000` | Not delivered, for a reason not listed here. |\n| `5001` | The recipient is receiving too many messages, or has limited messages from businesses. |\n| `5002` | The sending number reached its daily limit. |\n| `5003` | The channel refused the content (for example a template that is not approved). |\n| `5004` | The channel refused our credentials. |\n| `5005` | The sender is not set up correctly on the channel. |\n| `5006` | The channel refused the message. |\n| `5007` | The channel did not answer or is limiting our requests. |\n| `5008` | Your account is out of balance. |\n| `5009` | The recipient's number is not valid. |\n| `5010` | The destination cannot be reached or is not allowed for your account. |\n| `5011` | Your account or product is not active. |\n\nThese codes are the same on every channel except SMS. We may add codes; treat\none you do not recognise as not delivered. When `channel` is `sms`, the code is\nthe SMS delivery error code, as on an SMS delivery report.\n"},"cost":{"type":"number","nullable":true,"description":"What this attempt actually charged, in your account currency - `0` if the message was never charged (e.g. an `UNDELIVERABLE` outcome on an account billed per delivery, or a WhatsApp or Viber message refused before it was sent). `null` can still appear on an `sms` report that was never charged. May differ from the `cost` on the send response, which was only an indicative estimate for the first channel tried.\n"},"count":{"type":"integer","description":"The number of parts `cost` applies to - more than `1` only for a long SMS. The total is `cost * count`.\n"},"channel":{"type":"string","enum":["whatsapp","viber","sms"],"description":"The channel this report is about: the one the message was delivered on, or the last one tried. `sms` when an SMS fallback delivered the message or was the last to fail.\n"}}}}}}
```

## The ReplyCallback object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyCallback":{"type":"object","description":"A recipient's reply, as we POST it to the webhook set for your API key.","required":["type","channel","message_id","profile_id","from","to","received_at","reply_to_message_id","content"],"properties":{"type":{"type":"string","enum":["MO"]},"channel":{"type":"string","enum":["whatsapp","viber"],"description":"The channel the reply came in on."},"message_id":{"type":"string","format":"uuid","description":"Our id of this reply. Use it to recognise a repeated callback."},"profile_id":{"type":"string","format":"uuid","nullable":true,"description":"The sender profile that received the reply. `null` when the profile has no id for the API. On WhatsApp it is the profile of the number the recipient wrote to.\n"},"profile_number_id":{"type":"string","format":"uuid","description":"The connected WhatsApp number the recipient wrote to - the `profile_number_id` you send with. WhatsApp only.\n"},"from":{"type":"string","nullable":true,"description":"The recipient who replied, as a phone number in international format without `+`."},"to":{"type":"string","description":"The address the reply was sent to - on WhatsApp your number in international format without `+`, on Viber the sender name.\n"},"received_at":{"type":"string","format":"date-time","nullable":true,"description":"When the recipient's channel received the reply. Order replies by it."},"reply_to_message_id":{"type":"string","format":"uuid","nullable":true,"description":"The `request_id` of the message you sent that this reply refers to, from our delivery cache. `null` when it refers to nothing, when that message is older than the delivery cache window, or when the recipient quoted their own message.\n"},"client_id":{"type":"string","format":"uuid","description":"WhatsApp, for a partner whose clients send with its number: the id of your client whose message the recipient quoted - the same message as `reply_to_message_id`. Absent on every other reply; an unquoted reply on your number is yours to route.\n"},"content":{"description":"The reply itself, a `ReplyContent` by `type`. `null` on Viber.\n","anyOf":[{"$ref":"#/components/schemas/ReplyContent"},{"$ref":"#/components/schemas/ReplyContentNone"}]},"text":{"type":"string","description":"**Viber:** the reply itself - what the user wrote, or the label of a tapped button. Absent on a file reply.\n\n**WhatsApp:** read `content` instead; `text` is kept for older integrations. It holds the text of a text reply, the label of a tapped button, the title of a picked button or list reply, the caption of a media reply, or the emoji of a reaction, and is absent for every other reply (a removed reaction, a location, contacts, media without a caption).\n"},"conversation_id":{"type":"string","description":"Viber only - the Viber chat the reply belongs to. It is the same for every reply in that chat, so you can group them.\n"},"media_url":{"type":"string","description":"Viber only - the link to a file the user sent (an image, video or document). Absent on every other reply.\n"}}},"ReplyContent":{"description":"A WhatsApp reply's message object as WhatsApp describes it, keyed by its `type`, without WhatsApp's own message ids (the reference to another message is in `reply_to_message_id`). A media reply carries our `url` for the file instead of WhatsApp's media id and link.\n","oneOf":[{"$ref":"#/components/schemas/ReplyText"},{"$ref":"#/components/schemas/ReplyButton"},{"$ref":"#/components/schemas/ReplyInteractive"},{"$ref":"#/components/schemas/ReplyReaction"},{"$ref":"#/components/schemas/ReplyLocation"},{"$ref":"#/components/schemas/ReplyContacts"},{"$ref":"#/components/schemas/ReplyImage"},{"$ref":"#/components/schemas/ReplyVideo"},{"$ref":"#/components/schemas/ReplyAudio"},{"$ref":"#/components/schemas/ReplyDocument"},{"$ref":"#/components/schemas/ReplySticker"}]},"ReplyText":{"type":"object","required":["type","from_user_id","text"],"properties":{"type":{"type":"string","enum":["text"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"text":{"$ref":"#/components/schemas/ReplyTextBody"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyTextBody":{"type":"object","properties":{"body":{"type":"string"}}},"ReplyButton":{"type":"object","description":"A tapped quick-reply button of your template.","required":["type","from_user_id","button"],"properties":{"type":{"type":"string","enum":["button"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"button":{"$ref":"#/components/schemas/ReplyButtonBody"}}},"ReplyButtonBody":{"type":"object","properties":{"text":{"type":"string","description":"The button's label."},"payload":{"type":"string","description":"The payload you gave the button."}}},"ReplyInteractive":{"type":"object","description":"A picked button or list reply.\n","required":["type","from_user_id","interactive"],"properties":{"type":{"type":"string","enum":["interactive"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"interactive":{"$ref":"#/components/schemas/ReplyInteractiveBody"}}},"ReplyInteractiveBody":{"type":"object","properties":{"type":{"type":"string","enum":["button_reply","list_reply"]},"button_reply":{"$ref":"#/components/schemas/ReplyButtonReply"},"list_reply":{"$ref":"#/components/schemas/ReplyListReply"}}},"ReplyButtonReply":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}}},"ReplyListReply":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}},"ReplyReaction":{"type":"object","description":"A reaction to the message in `reply_to_message_id`. Without `emoji`, the recipient removed their reaction.\n","required":["type","from_user_id","reaction"],"properties":{"type":{"type":"string","enum":["reaction"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"reaction":{"$ref":"#/components/schemas/ReplyReactionBody"}}},"ReplyReactionBody":{"type":"object","properties":{"emoji":{"type":"string"}}},"ReplyLocation":{"type":"object","required":["type","from_user_id","location"],"properties":{"type":{"type":"string","enum":["location"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"location":{"$ref":"#/components/schemas/ReplyLocationBody"}}},"ReplyLocationBody":{"type":"object","properties":{"latitude":{"type":"number"},"longitude":{"type":"number"},"name":{"type":"string"},"address":{"type":"string"},"url":{"type":"string"}}},"ReplyContacts":{"type":"object","description":"Contact cards the recipient shared, as WhatsApp sends them.","required":["type","from_user_id","contacts"],"properties":{"type":{"type":"string","enum":["contacts"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/ReplyContact"}}}},"ReplyContact":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"object","additionalProperties":true},"phones":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"ReplyImage":{"type":"object","description":"An image.","required":["type","from_user_id","image"],"properties":{"type":{"type":"string","enum":["image"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"image":{"$ref":"#/components/schemas/ReplyImageFile"}}},"ReplyImageFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}},"ReplyVideo":{"type":"object","description":"A video.","required":["type","from_user_id","video"],"properties":{"type":{"type":"string","enum":["video"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"video":{"$ref":"#/components/schemas/ReplyVideoFile"}}},"ReplyVideoFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplyAudio":{"type":"object","description":"An audio file or a voice message.","required":["type","from_user_id","audio"],"properties":{"type":{"type":"string","enum":["audio"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"audio":{"$ref":"#/components/schemas/ReplyAudioFile"}}},"ReplyAudioFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"voice":{"type":"boolean","description":"`true` for a voice message recorded in WhatsApp."}}}]},"ReplyDocument":{"type":"object","description":"A document.","required":["type","from_user_id","document"],"properties":{"type":{"type":"string","enum":["document"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"document":{"$ref":"#/components/schemas/ReplyDocumentFile"}}},"ReplyDocumentFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"filename":{"type":"string","description":"The file name the recipient's app gave the document."},"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplySticker":{"type":"object","description":"A sticker.","required":["type","from_user_id","sticker"],"properties":{"type":{"type":"string","enum":["sticker"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"sticker":{"$ref":"#/components/schemas/ReplyStickerFile"}}},"ReplyStickerFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"animated":{"type":"boolean","description":"`true` for an animated sticker."}}}]},"ReplyContentNone":{"type":"object","nullable":true,"enum":[null],"description":"No content - a Viber reply, whose message is in `text` or `media_url`."}}}}
```

## The ReplyContent object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyContent":{"description":"A WhatsApp reply's message object as WhatsApp describes it, keyed by its `type`, without WhatsApp's own message ids (the reference to another message is in `reply_to_message_id`). A media reply carries our `url` for the file instead of WhatsApp's media id and link.\n","oneOf":[{"$ref":"#/components/schemas/ReplyText"},{"$ref":"#/components/schemas/ReplyButton"},{"$ref":"#/components/schemas/ReplyInteractive"},{"$ref":"#/components/schemas/ReplyReaction"},{"$ref":"#/components/schemas/ReplyLocation"},{"$ref":"#/components/schemas/ReplyContacts"},{"$ref":"#/components/schemas/ReplyImage"},{"$ref":"#/components/schemas/ReplyVideo"},{"$ref":"#/components/schemas/ReplyAudio"},{"$ref":"#/components/schemas/ReplyDocument"},{"$ref":"#/components/schemas/ReplySticker"}]},"ReplyText":{"type":"object","required":["type","from_user_id","text"],"properties":{"type":{"type":"string","enum":["text"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"text":{"$ref":"#/components/schemas/ReplyTextBody"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyTextBody":{"type":"object","properties":{"body":{"type":"string"}}},"ReplyButton":{"type":"object","description":"A tapped quick-reply button of your template.","required":["type","from_user_id","button"],"properties":{"type":{"type":"string","enum":["button"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"button":{"$ref":"#/components/schemas/ReplyButtonBody"}}},"ReplyButtonBody":{"type":"object","properties":{"text":{"type":"string","description":"The button's label."},"payload":{"type":"string","description":"The payload you gave the button."}}},"ReplyInteractive":{"type":"object","description":"A picked button or list reply.\n","required":["type","from_user_id","interactive"],"properties":{"type":{"type":"string","enum":["interactive"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"interactive":{"$ref":"#/components/schemas/ReplyInteractiveBody"}}},"ReplyInteractiveBody":{"type":"object","properties":{"type":{"type":"string","enum":["button_reply","list_reply"]},"button_reply":{"$ref":"#/components/schemas/ReplyButtonReply"},"list_reply":{"$ref":"#/components/schemas/ReplyListReply"}}},"ReplyButtonReply":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}}},"ReplyListReply":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}},"ReplyReaction":{"type":"object","description":"A reaction to the message in `reply_to_message_id`. Without `emoji`, the recipient removed their reaction.\n","required":["type","from_user_id","reaction"],"properties":{"type":{"type":"string","enum":["reaction"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"reaction":{"$ref":"#/components/schemas/ReplyReactionBody"}}},"ReplyReactionBody":{"type":"object","properties":{"emoji":{"type":"string"}}},"ReplyLocation":{"type":"object","required":["type","from_user_id","location"],"properties":{"type":{"type":"string","enum":["location"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"location":{"$ref":"#/components/schemas/ReplyLocationBody"}}},"ReplyLocationBody":{"type":"object","properties":{"latitude":{"type":"number"},"longitude":{"type":"number"},"name":{"type":"string"},"address":{"type":"string"},"url":{"type":"string"}}},"ReplyContacts":{"type":"object","description":"Contact cards the recipient shared, as WhatsApp sends them.","required":["type","from_user_id","contacts"],"properties":{"type":{"type":"string","enum":["contacts"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/ReplyContact"}}}},"ReplyContact":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"object","additionalProperties":true},"phones":{"type":"array","items":{"type":"object","additionalProperties":true}}}},"ReplyImage":{"type":"object","description":"An image.","required":["type","from_user_id","image"],"properties":{"type":{"type":"string","enum":["image"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"image":{"$ref":"#/components/schemas/ReplyImageFile"}}},"ReplyImageFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}},"ReplyVideo":{"type":"object","description":"A video.","required":["type","from_user_id","video"],"properties":{"type":{"type":"string","enum":["video"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"video":{"$ref":"#/components/schemas/ReplyVideoFile"}}},"ReplyVideoFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplyAudio":{"type":"object","description":"An audio file or a voice message.","required":["type","from_user_id","audio"],"properties":{"type":{"type":"string","enum":["audio"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"audio":{"$ref":"#/components/schemas/ReplyAudioFile"}}},"ReplyAudioFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"voice":{"type":"boolean","description":"`true` for a voice message recorded in WhatsApp."}}}]},"ReplyDocument":{"type":"object","description":"A document.","required":["type","from_user_id","document"],"properties":{"type":{"type":"string","enum":["document"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"document":{"$ref":"#/components/schemas/ReplyDocumentFile"}}},"ReplyDocumentFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"filename":{"type":"string","description":"The file name the recipient's app gave the document."},"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplySticker":{"type":"object","description":"A sticker.","required":["type","from_user_id","sticker"],"properties":{"type":{"type":"string","enum":["sticker"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"sticker":{"$ref":"#/components/schemas/ReplyStickerFile"}}},"ReplyStickerFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"animated":{"type":"boolean","description":"`true` for an animated sticker."}}}]}}}}
```

## The ReplyContentNone object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyContentNone":{"type":"object","nullable":true,"enum":[null],"description":"No content - a Viber reply, whose message is in `text` or `media_url`."}}}}
```

## The ReplyFromUserId object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"}}}}
```

## The ReplyText object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyText":{"type":"object","required":["type","from_user_id","text"],"properties":{"type":{"type":"string","enum":["text"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"text":{"$ref":"#/components/schemas/ReplyTextBody"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyTextBody":{"type":"object","properties":{"body":{"type":"string"}}}}}}
```

## The ReplyTextBody object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyTextBody":{"type":"object","properties":{"body":{"type":"string"}}}}}}
```

## The ReplyButton object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyButton":{"type":"object","description":"A tapped quick-reply button of your template.","required":["type","from_user_id","button"],"properties":{"type":{"type":"string","enum":["button"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"button":{"$ref":"#/components/schemas/ReplyButtonBody"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyButtonBody":{"type":"object","properties":{"text":{"type":"string","description":"The button's label."},"payload":{"type":"string","description":"The payload you gave the button."}}}}}}
```

## The ReplyButtonBody object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyButtonBody":{"type":"object","properties":{"text":{"type":"string","description":"The button's label."},"payload":{"type":"string","description":"The payload you gave the button."}}}}}}
```

## The ReplyInteractive object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyInteractive":{"type":"object","description":"A picked button or list reply.\n","required":["type","from_user_id","interactive"],"properties":{"type":{"type":"string","enum":["interactive"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"interactive":{"$ref":"#/components/schemas/ReplyInteractiveBody"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyInteractiveBody":{"type":"object","properties":{"type":{"type":"string","enum":["button_reply","list_reply"]},"button_reply":{"$ref":"#/components/schemas/ReplyButtonReply"},"list_reply":{"$ref":"#/components/schemas/ReplyListReply"}}},"ReplyButtonReply":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}}},"ReplyListReply":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}}}}}
```

## The ReplyInteractiveBody object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyInteractiveBody":{"type":"object","properties":{"type":{"type":"string","enum":["button_reply","list_reply"]},"button_reply":{"$ref":"#/components/schemas/ReplyButtonReply"},"list_reply":{"$ref":"#/components/schemas/ReplyListReply"}}},"ReplyButtonReply":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}}},"ReplyListReply":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}}}}}
```

## The ReplyButtonReply object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyButtonReply":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"}}}}}}
```

## The ReplyListReply object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyListReply":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"}}}}}}
```

## The ReplyReaction object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyReaction":{"type":"object","description":"A reaction to the message in `reply_to_message_id`. Without `emoji`, the recipient removed their reaction.\n","required":["type","from_user_id","reaction"],"properties":{"type":{"type":"string","enum":["reaction"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"reaction":{"$ref":"#/components/schemas/ReplyReactionBody"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyReactionBody":{"type":"object","properties":{"emoji":{"type":"string"}}}}}}
```

## The ReplyReactionBody object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyReactionBody":{"type":"object","properties":{"emoji":{"type":"string"}}}}}}
```

## The ReplyLocation object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyLocation":{"type":"object","required":["type","from_user_id","location"],"properties":{"type":{"type":"string","enum":["location"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"location":{"$ref":"#/components/schemas/ReplyLocationBody"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyLocationBody":{"type":"object","properties":{"latitude":{"type":"number"},"longitude":{"type":"number"},"name":{"type":"string"},"address":{"type":"string"},"url":{"type":"string"}}}}}}
```

## The ReplyLocationBody object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyLocationBody":{"type":"object","properties":{"latitude":{"type":"number"},"longitude":{"type":"number"},"name":{"type":"string"},"address":{"type":"string"},"url":{"type":"string"}}}}}}
```

## The ReplyContacts object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyContacts":{"type":"object","description":"Contact cards the recipient shared, as WhatsApp sends them.","required":["type","from_user_id","contacts"],"properties":{"type":{"type":"string","enum":["contacts"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"contacts":{"type":"array","items":{"$ref":"#/components/schemas/ReplyContact"}}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyContact":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"object","additionalProperties":true},"phones":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}}
```

## The ReplyContact object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyContact":{"type":"object","additionalProperties":true,"properties":{"name":{"type":"object","additionalProperties":true},"phones":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}}
```

## The ReplyMedia object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The ReplyImage object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyImage":{"type":"object","description":"An image.","required":["type","from_user_id","image"],"properties":{"type":{"type":"string","enum":["image"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"image":{"$ref":"#/components/schemas/ReplyImageFile"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyImageFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The ReplyImageFile object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyImageFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The ReplyVideo object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyVideo":{"type":"object","description":"A video.","required":["type","from_user_id","video"],"properties":{"type":{"type":"string","enum":["video"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"video":{"$ref":"#/components/schemas/ReplyVideoFile"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyVideoFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The ReplyVideoFile object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyVideoFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The ReplyAudio object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyAudio":{"type":"object","description":"An audio file or a voice message.","required":["type","from_user_id","audio"],"properties":{"type":{"type":"string","enum":["audio"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"audio":{"$ref":"#/components/schemas/ReplyAudioFile"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyAudioFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"voice":{"type":"boolean","description":"`true` for a voice message recorded in WhatsApp."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The ReplyAudioFile object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyAudioFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"voice":{"type":"boolean","description":"`true` for a voice message recorded in WhatsApp."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The ReplyDocument object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyDocument":{"type":"object","description":"A document.","required":["type","from_user_id","document"],"properties":{"type":{"type":"string","enum":["document"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"document":{"$ref":"#/components/schemas/ReplyDocumentFile"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyDocumentFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"filename":{"type":"string","description":"The file name the recipient's app gave the document."},"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The ReplyDocumentFile object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyDocumentFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"filename":{"type":"string","description":"The file name the recipient's app gave the document."},"caption":{"type":"string","description":"The recipient's caption. Absent when they wrote none."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The ReplySticker object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplySticker":{"type":"object","description":"A sticker.","required":["type","from_user_id","sticker"],"properties":{"type":{"type":"string","enum":["sticker"]},"from_user_id":{"$ref":"#/components/schemas/ReplyFromUserId"},"sticker":{"$ref":"#/components/schemas/ReplyStickerFile"}}},"ReplyFromUserId":{"type":"string","nullable":true,"description":"WhatsApp's user id of the recipient (for example `GB.1234567890`), which WhatsApp sends alongside or instead of the phone number. Always present on WhatsApp content; `null` when WhatsApp does not send one.\n"},"ReplyStickerFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"animated":{"type":"boolean","description":"`true` for an animated sticker."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The ReplyStickerFile object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"ReplyStickerFile":{"allOf":[{"$ref":"#/components/schemas/ReplyMedia"},{"type":"object","properties":{"animated":{"type":"boolean","description":"`true` for an animated sticker."}}}]},"ReplyMedia":{"type":"object","description":"The file of a media reply: WhatsApp's media object without WhatsApp's media id, with `url` pointing at our copy of the file. Further keys WhatsApp adds to the object are passed on.\n","required":["url"],"additionalProperties":true,"properties":{"url":{"type":"string","format":"uri","nullable":true,"description":"Our copy of the file. It is available for 30 days after the reply's `received_at`, then deleted; copy the file if you need it longer. `null` when we have no copy of the file to give you, with the reason in `error`.\n"},"error":{"type":"string","enum":["media_unavailable"],"description":"Present only when `url` is `null`. `media_unavailable`: the file could not be made available to you, or WhatsApp did not pass it on to us (for example a file over 100 MB). The rest of the reply, the caption included, is still what the recipient sent.\n"},"mime_type":{"type":"string","description":"The file's media type as WhatsApp reports it, for example `image/jpeg` or `audio/ogg; codecs=opus`. Absent when WhatsApp did not pass the file on.\n"},"sha256":{"type":"string","description":"WhatsApp's SHA-256 checksum of the file, base64-encoded, as WhatsApp sends it. Absent when WhatsApp did not pass the file on.\n"}}}}}}
```

## The AcceptedBody object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"AcceptedBody":{"type":"object","properties":{"request_id":{"type":"string","format":"uuid","description":"Id for this message. One id covers every channel it is tried on, and it comes back as `message_id` in the delivery report. Store it - it is what we need for any support question about the message.\n"},"cost":{"type":"number","nullable":true,"description":"Indicative price for the first channel tried, in your account currency. `null` when no price could be resolved. This is only an estimate: a failover may deliver on a different, differently-priced channel, and the delivery report's `cost` is what was actually charged - the two may differ.\n"},"count":{"type":"integer","nullable":true,"description":"How many messages `cost` is the price of, for the first channel tried: on `sms` the number of SMS parts the text is split into, on every other channel `1`. Multiply the two for the estimated total. `null` when the count could not be determined.\n"}}}}}}
```

## The TooManyRequestsProblem object

```json
{"openapi":"3.0.3","info":{"title":"Channels API","version":"1.0"},"components":{"schemas":{"TooManyRequestsProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","required":["retry_after_ms"],"properties":{"retry_after_ms":{"type":"integer","description":"Milliseconds until your next request will be accepted. Exact, not an estimate.\n"}}}]},"Problem":{"type":"object","description":"Every error, in one shape - `application/problem+json` (RFC 9457). There is not a different body per kind of failure, so you only need one parser.\n","required":["title","status","code"],"properties":{"title":{"type":"string","description":"Short human-readable summary of what went wrong. Meant for your logs, not for branching on - the wording may change.\n"},"status":{"type":"integer","description":"The HTTP status, repeated here so the body stands on its own."},"code":{"type":"string","description":"Stable machine-readable code. **This is the one to branch on** - it never changes for a given condition, while the status and title may be refined.\n","enum":["VALIDATION_FAILED","UNAUTHORIZED","OUT_OF_BALANCE","CLIENT_PRICE_NOT_FOUND","IP_NOT_ALLOWED","DISABLED_CONNECTION","DISABLED_CLIENT","CLIENT_ARCHIVED","DISABLED_ACCOUNT","DISABLED_PRODUCT","DISABLED_CLIENT_PRODUCT","CHANNEL_DISABLED","INVALID_SENDER","DESTINATION_COUNTRY_FORBIDDEN","UNKNOWN_CHANNEL","CHANNEL_NOT_CONFIGURED","CLIENT_PRODUCT_DOES_NOT_EXIST","PROFILE_NOT_FOUND","PROFILE_NUMBER_NOT_FOUND","PROFILE_NUMBER_NOT_ACTIVE","TEMPLATE_NOT_FOUND","TEMPLATE_NOT_ACTIVE","TEMPLATE_CATEGORY_UNKNOWN","SESSION_WINDOW_CLOSED","REPLY_TO_NOT_FOUND","REPLY_TO_MISMATCH","REPLY_TO_UNAVAILABLE","UNKNOWN_BRAND","NO_DNS_CONFIGURED","NOT_FOUND","METHOD_NOT_ALLOWED","UNSUPPORTED_MEDIA_TYPE","PAYLOAD_TOO_LARGE","UNSUPPORTED_CONTENT","REJECTED","TOO_MANY_REQUESTS","NO_ROUTES","INTERNAL_ERROR"]},"detail":{"type":"string","description":"Present when one code covers several reasons, and names the one that applied - e.g. `Number is PAUSED` on `PROFILE_NUMBER_NOT_ACTIVE`, or `Template is PENDING` on `TEMPLATE_NOT_ACTIVE`. For a human, like `title`.\n"},"errors":{"type":"array","description":"Only on a `400`: one entry per offending field, so you can point at the exact problem rather than re-reading the whole request.\n","items":{"$ref":"#/components/schemas/ErrorEntry"}}}},"ErrorEntry":{"type":"object","properties":{"property":{"type":"string","description":"The request field that is wrong."},"error":{"type":"string","description":"What is wrong with it."}}}}}}
```
