> For the complete documentation index, see [llms.txt](https://developer.ecall-messaging.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.ecall-messaging.com/api-references/rest-api/message.md). Agents can also search and read this documentation through its [MCP server](https://developer.ecall-messaging.com/~gitbook/mcp).

# Message

## POST /api/message

>

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"tags":[{"name":"Message"}],"security":[{"Basic":[]}],"components":{"securitySchemes":{"Basic":{"type":"http","scheme":"Basic"}},"schemas":{"MessageRequest":{"required":["channel","content","from"],"type":"object","properties":{"channel":{"minLength":1,"type":"string","description":"Channel"},"to":{"type":"string","description":"The recipient's address","nullable":true},"toList":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/ToAddressGroup"},{"$ref":"#/components/schemas/ToAddressNumber"},{"$ref":"#/components/schemas/ToAddressPerson"}]},"description":"List of recipient addresses","nullable":true},"sendDate":{"type":"string","nullable":true},"from":{"minLength":1,"type":"string","description":"The sender address"},"content":{"oneOf":[{"$ref":"#/components/schemas/AudioContent"},{"$ref":"#/components/schemas/ContactContent"},{"$ref":"#/components/schemas/DocumentContent"},{"$ref":"#/components/schemas/ImageContent"},{"$ref":"#/components/schemas/InteractiveContent"},{"$ref":"#/components/schemas/InteractiveReplyContent"},{"$ref":"#/components/schemas/LocationContent"},{"$ref":"#/components/schemas/MediaContent"},{"$ref":"#/components/schemas/StickerContent"},{"$ref":"#/components/schemas/TemplateContent"},{"$ref":"#/components/schemas/TextContent"},{"$ref":"#/components/schemas/VideoContent"}]},"notification":{"$ref":"#/components/schemas/Notification"},"customerId":{"type":"string","nullable":true}},"additionalProperties":false},"ToAddressGroup":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/ToAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"ToAddress":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/ToAddressType"}},"additionalProperties":false},"ToAddressType":{"enum":["Number","Person","Group"],"type":"string"},"ToAddressNumber":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/ToAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"ToAddressPerson":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/ToAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"AudioContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"additionalProperties":false},"MediaContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"mediaId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true}},"additionalProperties":false},"MessageContent":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/ContentType"},"options":{"oneOf":[{"$ref":"#/components/schemas/SmsContentOptions"},{"$ref":"#/components/schemas/VoiceContentOptions"}],"nullable":true}},"additionalProperties":false},"ContentType":{"enum":["Text","Template","Image","Video","Document","Location","Audio","Sticker","Contacts","Interactive","InteractiveReply"],"type":"string"},"SmsContentOptions":{"type":"object","allOf":[{"$ref":"#/components/schemas/Options"}],"properties":{"forceGsm":{"type":"boolean","nullable":true},"pageLimit":{"type":"integer","format":"int32","nullable":true},"smsType":{"$ref":"#/components/schemas/MessageType"}},"additionalProperties":false},"Options":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/OptionType"}},"additionalProperties":false},"OptionType":{"enum":["SmsContentOptions","VoiceContentOptions"],"type":"string"},"MessageType":{"enum":["Standard","Flash","PrioPlus"],"type":"string"},"VoiceContentOptions":{"type":"object","allOf":[{"$ref":"#/components/schemas/Options"}],"properties":{"language":{"type":"string","description":"The language in which the message is read.\r\nSupported values: DE (German), FR (French), IT (Italian), EN (English).\r\nIf omitted, the language is detected from the message text (fallback: DE).","nullable":true},"fromText":{"type":"string","description":"The sender name which is read to the recipient in the closing announcement.\r\nAs the closing announcement is omitted if inputRequired is true, the sender name is then not read out.\r\nMaximum length: 20 characters.","nullable":true},"maxRetries":{"type":"integer","description":"The maximum number of call retries (0 - 5).\r\nIf omitted, the default number of retries of eCall is used.","format":"int32","nullable":true},"inputRequired":{"type":"boolean","description":"True: The closing announcement is no longer read out. Instead, the message must ask the recipient to enter a PIN,\r\nwhich then has to be completed with the hash key (#).\r\nFalse (default behaviour): Pressing key 8 repeats the message, pressing the hash key (#) acknowledges it.","nullable":true},"inputTimeoutInSeconds":{"type":"integer","description":"The time in seconds the recipient has to make the input (0 - 59).\r\nIf omitted or 0, the default of 5 seconds is used.","format":"int32","nullable":true}},"additionalProperties":false},"ContactContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"contacts":{"type":"array","items":{"$ref":"#/components/schemas/ContactData"},"nullable":true}},"additionalProperties":false},"ContactData":{"required":["name"],"type":"object","properties":{"name":{"$ref":"#/components/schemas/NameData"},"birthDay":{"type":"string","description":"YYYY-MM-DD formatted string for the birthday","nullable":true},"organization":{"$ref":"#/components/schemas/OrganizationData"},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/AddressData"},"description":"Address data for the contact","nullable":true},"phones":{"type":"array","items":{"$ref":"#/components/schemas/PhoneData"},"description":"Phone data for the contact","nullable":true},"urls":{"type":"array","items":{"$ref":"#/components/schemas/UrlData"},"description":"Urls for the contact","nullable":true}},"additionalProperties":false},"NameData":{"required":["formattedName"],"type":"object","properties":{"formattedName":{"minLength":1,"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"middleName":{"type":"string","nullable":true},"suffix":{"type":"string","nullable":true},"prefix":{"type":"string","nullable":true}},"additionalProperties":false},"OrganizationData":{"type":"object","properties":{"company":{"type":"string","nullable":true},"department":{"type":"string","nullable":true},"title":{"type":"string","nullable":true}},"additionalProperties":false},"AddressData":{"type":"object","properties":{"street":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"zip":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"countryCode":{"type":"string","nullable":true},"type":{"type":"string","nullable":true}},"additionalProperties":false},"PhoneData":{"type":"object","properties":{"phone":{"type":"string","nullable":true},"type":{"type":"string","nullable":true}},"additionalProperties":false},"UrlData":{"type":"object","properties":{"url":{"type":"string","nullable":true},"type":{"type":"string","nullable":true}},"additionalProperties":false},"DocumentContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"properties":{"caption":{"type":"string","description":"Currently not supported.","nullable":true},"filename":{"type":"string","nullable":true}},"additionalProperties":false},"ImageContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"properties":{"caption":{"type":"string","nullable":true}},"additionalProperties":false},"InteractiveContent":{"required":["action"],"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"header":{"oneOf":[{"$ref":"#/components/schemas/InteractiveDocumentHeader"},{"$ref":"#/components/schemas/InteractiveImageHeader"},{"$ref":"#/components/schemas/InteractiveMediaHeader"},{"$ref":"#/components/schemas/InteractiveTextHeader"},{"$ref":"#/components/schemas/InteractiveVideoHeader"}],"nullable":true},"body":{"$ref":"#/components/schemas/InteractiveBody"},"footer":{"$ref":"#/components/schemas/InteractiveFooter"},"action":{"oneOf":[{"$ref":"#/components/schemas/InteractiveButtonAction"},{"$ref":"#/components/schemas/InteractiveListAction"}]}},"additionalProperties":false},"InteractiveDocumentHeader":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveMediaHeader"}],"additionalProperties":false},"InteractiveMediaHeader":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveHeader"}],"properties":{"mediaId":{"type":"string","description":"The id of the media.\r\nRequired when you are not using a url.","nullable":true},"url":{"type":"string","description":"The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs.\r\nRequired when you are not using an uploaded media.","nullable":true}},"additionalProperties":false},"InteractiveHeader":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveHeaderType"}},"additionalProperties":false},"InteractiveHeaderType":{"enum":["Text","Video","Image","Document"],"type":"string"},"InteractiveImageHeader":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveMediaHeader"}],"additionalProperties":false},"InteractiveTextHeader":{"required":["text"],"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveHeader"}],"properties":{"text":{"maxLength":60,"minLength":1,"type":"string","description":"Text for the header.\r\nFormatting allows emojis, but not markdown."}},"additionalProperties":false},"InteractiveVideoHeader":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveMediaHeader"}],"additionalProperties":false},"InteractiveBody":{"required":["text"],"type":"object","properties":{"text":{"maxLength":1024,"minLength":1,"type":"string","description":"The body content of the message.\r\nEmojis and markdown are supported. Links are supported."}},"additionalProperties":false},"InteractiveFooter":{"required":["text"],"type":"object","properties":{"text":{"maxLength":60,"minLength":1,"type":"string","description":"The footer content.\r\nEmojis and markdown are supported. Links are supported."}},"additionalProperties":false},"InteractiveButtonAction":{"required":["buttons"],"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveAction"}],"properties":{"buttons":{"maxItems":3,"minItems":1,"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/InteractiveButtonActionReplyButton"}]}}},"additionalProperties":false},"InteractiveAction":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveActionType"}},"additionalProperties":false},"InteractiveActionType":{"enum":["Button","List"],"type":"string"},"InteractiveButtonActionReplyButton":{"required":["id","title"],"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveButtonActionButton"}],"properties":{"id":{"maxLength":256,"minLength":1,"type":"string","description":"Button title.\r\nUnique identifier for your button. This ID is returned in the webhook when the button is clicked by the user."},"title":{"maxLength":20,"minLength":1,"type":"string","description":"Unique identifier for your button.\r\nMust be unique within the message. Does not allow emojis or markdown."}},"additionalProperties":false},"InteractiveButtonActionButton":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveButtonActionButtonType"}},"additionalProperties":false},"InteractiveButtonActionButtonType":{"enum":["Reply"],"type":"string"},"InteractiveListAction":{"required":["button","sections"],"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveAction"}],"properties":{"button":{"maxLength":20,"minLength":1,"type":"string","description":"Button content.\r\nMust be unique within the message. Does not allow emojis or markdown."},"sections":{"maxItems":10,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/InteractiveListActionSection"},"description":"A maximum of ten lines across all sections are allowed."}},"additionalProperties":false},"InteractiveListActionSection":{"required":["rows"],"type":"object","properties":{"title":{"maxLength":24,"minLength":1,"type":"string","description":"Required if the message has more than one section.","nullable":true},"rows":{"maxItems":10,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/InteractiveListActionRow"}}},"additionalProperties":false},"InteractiveListActionRow":{"required":["id","title"],"type":"object","properties":{"id":{"maxLength":200,"minLength":1,"type":"string"},"title":{"maxLength":24,"minLength":1,"type":"string"},"description":{"maxLength":72,"minLength":1,"type":"string","nullable":true}},"additionalProperties":false},"InteractiveReplyContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"reply":{"oneOf":[{"$ref":"#/components/schemas/InteractiveButtonReply"},{"$ref":"#/components/schemas/InteractiveListReply"}],"nullable":true}},"additionalProperties":false},"InteractiveButtonReply":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveReplyContentReply"}],"properties":{"id":{"type":"string","nullable":true},"title":{"type":"string","nullable":true}},"additionalProperties":false},"InteractiveReplyContentReply":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveReplyType"}},"additionalProperties":false},"InteractiveReplyType":{"enum":["Button","List"],"type":"string"},"InteractiveListReply":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveReplyContentReply"}],"properties":{"id":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"description":{"type":"string","nullable":true}},"additionalProperties":false},"LocationContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"longitude":{"type":"number","format":"double"},"latitude":{"type":"number","format":"double"},"name":{"type":"string","nullable":true},"address":{"type":"string","nullable":true}},"additionalProperties":false},"StickerContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"additionalProperties":false},"TemplateContent":{"required":["language","name","namespace"],"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"namespace":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"language":{"$ref":"#/components/schemas/TemplateLanguage"},"components":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/TemplateBodyComponent"},{"$ref":"#/components/schemas/TemplateButtonComponent"},{"$ref":"#/components/schemas/TemplateHeaderComponent"},{"$ref":"#/components/schemas/TemplateQuickReplyButtonComponent"},{"$ref":"#/components/schemas/TemplateUrlButtonComponent"}]},"nullable":true}},"additionalProperties":false},"TemplateLanguage":{"required":["code"],"type":"object","properties":{"policy":{"$ref":"#/components/schemas/TemplateLanguagePolicy"},"code":{"$ref":"#/components/schemas/TemplateLanguageCode"}},"additionalProperties":false},"TemplateLanguagePolicy":{"enum":["Deterministic"],"type":"string"},"TemplateLanguageCode":{"enum":["af","sq","ar","az","bn","bg","ca","zh_CN","zh_HK","zh_TW","hr","cs","da","nl","en","en_GB","en_US","et","fil","fi","fr","ka","de","el","gu","ha","he","hi","hu","id","ga","it","ja","kn","kk","rw_RW","ko","ky_KG","lo","lv","lt","mk","ms","ml","mr","nb","fa","pl","pt_BR","pt_PT","pa","ro","ru","sr","sk","sl","es","es_AR","es_ES","es_MX","sw","sv","ta","te","th","tr","uk","ur","uz","vi","zu"],"type":"string"},"TemplateBodyComponent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateComponent"}],"additionalProperties":false},"TemplateComponent":{"required":["parameters","type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/TemplateComponentType"},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/TemplateCurrencyParameter"},{"$ref":"#/components/schemas/TemplateDateTimeParameter"},{"$ref":"#/components/schemas/TemplateDocumentParameter"},{"$ref":"#/components/schemas/TemplateImageParameter"},{"$ref":"#/components/schemas/TemplateMediaParameter"},{"$ref":"#/components/schemas/TemplatePayloadParameter"},{"$ref":"#/components/schemas/TemplateTextParameter"},{"$ref":"#/components/schemas/TemplateVideoParameter"}]}}},"additionalProperties":false},"TemplateComponentType":{"enum":["Header","Body","QuickReplyButton","UrlButton"],"type":"string"},"TemplateCurrencyParameter":{"required":["amount","code","fallbackValue"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"code":{"maxLength":3,"minLength":3,"type":"string","description":"Currency code as defined in ISO 4217"},"amount":{"type":"integer","description":"Amount with cents multiplied by 1000. So $100.99 would be 100990.","format":"int32"},"fallbackValue":{"minLength":1,"type":"string","description":"Default text if localization fails."}},"additionalProperties":false},"TemplateParameter":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/TemplateParameterType"}},"additionalProperties":false},"TemplateParameterType":{"enum":["Text","Image","Video","Document","DateTime","Currency","Payload"],"type":"string"},"TemplateDateTimeParameter":{"required":["dateTime"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"dateTime":{"type":"string","description":"RFC3339 representation of the date and time.","format":"date-time"}},"additionalProperties":false},"TemplateDocumentParameter":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateMediaParameter"}],"properties":{"filename":{"type":"string","nullable":true}},"additionalProperties":false},"TemplateMediaParameter":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"mediaId":{"type":"string","description":"The id of the media.\r\nRequired when you are not using a url.","nullable":true},"url":{"type":"string","description":"The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs.\r\nRequired when you are not using an uploaded media.","nullable":true}},"additionalProperties":false},"TemplateImageParameter":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateMediaParameter"}],"additionalProperties":false},"TemplatePayloadParameter":{"required":["payload"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"payload":{"minLength":1,"type":"string"}},"additionalProperties":false},"TemplateTextParameter":{"required":["text"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"text":{"minLength":1,"type":"string"}},"additionalProperties":false},"TemplateVideoParameter":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateMediaParameter"}],"additionalProperties":false},"TemplateButtonComponent":{"required":["index"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateComponent"}],"properties":{"index":{"type":"integer","format":"int32"}},"additionalProperties":false},"TemplateHeaderComponent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateComponent"}],"additionalProperties":false},"TemplateQuickReplyButtonComponent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateButtonComponent"}],"additionalProperties":false},"TemplateUrlButtonComponent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateButtonComponent"}],"additionalProperties":false},"TextContent":{"required":["text"],"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"text":{"minLength":1,"type":"string","description":"Text content\r\n(Voice: maximum length 2000 characters)"}},"additionalProperties":false},"VideoContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"properties":{"caption":{"type":"string","nullable":true}},"additionalProperties":false},"Notification":{"required":["addresses"],"type":"object","properties":{"forEvent":{"type":"string","nullable":true},"addresses":{"minItems":1,"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/EmailNotificationAddress"},{"$ref":"#/components/schemas/SmsNotificationAddress"},{"$ref":"#/components/schemas/UrlNotificationAddress"}]}}},"additionalProperties":false},"EmailNotificationAddress":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/NotificationAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"NotificationAddress":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/NotificationAddressType"}},"additionalProperties":false},"NotificationAddressType":{"enum":["Sms","Email","Url","UrlPost"],"type":"string"},"SmsNotificationAddress":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/NotificationAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"UrlNotificationAddress":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/NotificationAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"MessageResult":{"type":"object","properties":{"messageId":{"type":"string","nullable":true},"messageIdList":{"type":"array","items":{"$ref":"#/components/schemas/MessageIdAddressPair"},"nullable":true},"timestamp":{"type":"string","format":"date-time"}},"additionalProperties":false},"MessageIdAddressPair":{"type":"object","properties":{"messageId":{"type":"string","nullable":true},"address":{"type":"string","nullable":true}},"additionalProperties":false},"Error":{"type":"object","properties":{"errorCode":{"$ref":"#/components/schemas/ErrorCode"},"errorMessage":{"type":"string","nullable":true},"errorDetails":{"oneOf":[{"$ref":"#/components/schemas/ParameterErrorDetails"}],"nullable":true}},"additionalProperties":false},"ErrorCode":{"enum":["Error1","Error2","RequestMissing","CannotConvertMediaBody","UnknownContentType","InvalidSenderAccount","InvalidContent","InsufficientPoints","PointSubstractionError","TooManyMessagesSameReceiver","TooManyMessagesSameReceiverAndContent","AdrCountryNotWhitelisted","AdrCountryWhitelistLimitExceeded","AdrCountryWhitelistLimitReachedButNotBlockedCountries"],"type":"string"},"ParameterErrorDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}],"properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ParameterErrorDetailsEntry"},"nullable":true}},"additionalProperties":false},"ErrorDetails":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ErrorDetailsType"}},"additionalProperties":false},"ErrorDetailsType":{"enum":["Parameter"],"type":"string"},"ParameterErrorDetailsEntry":{"type":"object","properties":{"parameter":{"type":"string","nullable":true},"messages":{"type":"array","items":{"type":"string"},"nullable":true}},"additionalProperties":false}}},"paths":{"/api/message":{"post":{"tags":["Message"],"parameters":[{"name":"X-API-Version","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResult"}},"text/json":{"schema":{"$ref":"#/components/schemas/MessageResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## POST /api/v2/message

>

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"tags":[{"name":"Message"}],"security":[{"Basic":[]}],"components":{"securitySchemes":{"Basic":{"type":"http","scheme":"Basic"}},"schemas":{"MessageRequest":{"required":["channel","content","from"],"type":"object","properties":{"channel":{"minLength":1,"type":"string","description":"Channel"},"to":{"type":"string","description":"The recipient's address","nullable":true},"toList":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/ToAddressGroup"},{"$ref":"#/components/schemas/ToAddressNumber"},{"$ref":"#/components/schemas/ToAddressPerson"}]},"description":"List of recipient addresses","nullable":true},"sendDate":{"type":"string","nullable":true},"from":{"minLength":1,"type":"string","description":"The sender address"},"content":{"oneOf":[{"$ref":"#/components/schemas/AudioContent"},{"$ref":"#/components/schemas/ContactContent"},{"$ref":"#/components/schemas/DocumentContent"},{"$ref":"#/components/schemas/ImageContent"},{"$ref":"#/components/schemas/InteractiveContent"},{"$ref":"#/components/schemas/InteractiveReplyContent"},{"$ref":"#/components/schemas/LocationContent"},{"$ref":"#/components/schemas/MediaContent"},{"$ref":"#/components/schemas/StickerContent"},{"$ref":"#/components/schemas/TemplateContent"},{"$ref":"#/components/schemas/TextContent"},{"$ref":"#/components/schemas/VideoContent"}]},"notification":{"$ref":"#/components/schemas/Notification"},"customerId":{"type":"string","nullable":true}},"additionalProperties":false},"ToAddressGroup":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/ToAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"ToAddress":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/ToAddressType"}},"additionalProperties":false},"ToAddressType":{"enum":["Number","Person","Group"],"type":"string"},"ToAddressNumber":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/ToAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"ToAddressPerson":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/ToAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"AudioContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"additionalProperties":false},"MediaContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"mediaId":{"type":"string","nullable":true},"url":{"type":"string","nullable":true}},"additionalProperties":false},"MessageContent":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/ContentType"},"options":{"oneOf":[{"$ref":"#/components/schemas/SmsContentOptions"},{"$ref":"#/components/schemas/VoiceContentOptions"}],"nullable":true}},"additionalProperties":false},"ContentType":{"enum":["Text","Template","Image","Video","Document","Location","Audio","Sticker","Contacts","Interactive","InteractiveReply"],"type":"string"},"SmsContentOptions":{"type":"object","allOf":[{"$ref":"#/components/schemas/Options"}],"properties":{"forceGsm":{"type":"boolean","nullable":true},"pageLimit":{"type":"integer","format":"int32","nullable":true},"smsType":{"$ref":"#/components/schemas/MessageType"}},"additionalProperties":false},"Options":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/OptionType"}},"additionalProperties":false},"OptionType":{"enum":["SmsContentOptions","VoiceContentOptions"],"type":"string"},"MessageType":{"enum":["Standard","Flash","PrioPlus"],"type":"string"},"VoiceContentOptions":{"type":"object","allOf":[{"$ref":"#/components/schemas/Options"}],"properties":{"language":{"type":"string","description":"The language in which the message is read.\r\nSupported values: DE (German), FR (French), IT (Italian), EN (English).\r\nIf omitted, the language is detected from the message text (fallback: DE).","nullable":true},"fromText":{"type":"string","description":"The sender name which is read to the recipient in the closing announcement.\r\nAs the closing announcement is omitted if inputRequired is true, the sender name is then not read out.\r\nMaximum length: 20 characters.","nullable":true},"maxRetries":{"type":"integer","description":"The maximum number of call retries (0 - 5).\r\nIf omitted, the default number of retries of eCall is used.","format":"int32","nullable":true},"inputRequired":{"type":"boolean","description":"True: The closing announcement is no longer read out. Instead, the message must ask the recipient to enter a PIN,\r\nwhich then has to be completed with the hash key (#).\r\nFalse (default behaviour): Pressing key 8 repeats the message, pressing the hash key (#) acknowledges it.","nullable":true},"inputTimeoutInSeconds":{"type":"integer","description":"The time in seconds the recipient has to make the input (0 - 59).\r\nIf omitted or 0, the default of 5 seconds is used.","format":"int32","nullable":true}},"additionalProperties":false},"ContactContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"contacts":{"type":"array","items":{"$ref":"#/components/schemas/ContactData"},"nullable":true}},"additionalProperties":false},"ContactData":{"required":["name"],"type":"object","properties":{"name":{"$ref":"#/components/schemas/NameData"},"birthDay":{"type":"string","description":"YYYY-MM-DD formatted string for the birthday","nullable":true},"organization":{"$ref":"#/components/schemas/OrganizationData"},"addresses":{"type":"array","items":{"$ref":"#/components/schemas/AddressData"},"description":"Address data for the contact","nullable":true},"phones":{"type":"array","items":{"$ref":"#/components/schemas/PhoneData"},"description":"Phone data for the contact","nullable":true},"urls":{"type":"array","items":{"$ref":"#/components/schemas/UrlData"},"description":"Urls for the contact","nullable":true}},"additionalProperties":false},"NameData":{"required":["formattedName"],"type":"object","properties":{"formattedName":{"minLength":1,"type":"string"},"firstName":{"type":"string","nullable":true},"lastName":{"type":"string","nullable":true},"middleName":{"type":"string","nullable":true},"suffix":{"type":"string","nullable":true},"prefix":{"type":"string","nullable":true}},"additionalProperties":false},"OrganizationData":{"type":"object","properties":{"company":{"type":"string","nullable":true},"department":{"type":"string","nullable":true},"title":{"type":"string","nullable":true}},"additionalProperties":false},"AddressData":{"type":"object","properties":{"street":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"zip":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"countryCode":{"type":"string","nullable":true},"type":{"type":"string","nullable":true}},"additionalProperties":false},"PhoneData":{"type":"object","properties":{"phone":{"type":"string","nullable":true},"type":{"type":"string","nullable":true}},"additionalProperties":false},"UrlData":{"type":"object","properties":{"url":{"type":"string","nullable":true},"type":{"type":"string","nullable":true}},"additionalProperties":false},"DocumentContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"properties":{"caption":{"type":"string","description":"Currently not supported.","nullable":true},"filename":{"type":"string","nullable":true}},"additionalProperties":false},"ImageContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"properties":{"caption":{"type":"string","nullable":true}},"additionalProperties":false},"InteractiveContent":{"required":["action"],"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"header":{"oneOf":[{"$ref":"#/components/schemas/InteractiveDocumentHeader"},{"$ref":"#/components/schemas/InteractiveImageHeader"},{"$ref":"#/components/schemas/InteractiveMediaHeader"},{"$ref":"#/components/schemas/InteractiveTextHeader"},{"$ref":"#/components/schemas/InteractiveVideoHeader"}],"nullable":true},"body":{"$ref":"#/components/schemas/InteractiveBody"},"footer":{"$ref":"#/components/schemas/InteractiveFooter"},"action":{"oneOf":[{"$ref":"#/components/schemas/InteractiveButtonAction"},{"$ref":"#/components/schemas/InteractiveListAction"}]}},"additionalProperties":false},"InteractiveDocumentHeader":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveMediaHeader"}],"additionalProperties":false},"InteractiveMediaHeader":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveHeader"}],"properties":{"mediaId":{"type":"string","description":"The id of the media.\r\nRequired when you are not using a url.","nullable":true},"url":{"type":"string","description":"The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs.\r\nRequired when you are not using an uploaded media.","nullable":true}},"additionalProperties":false},"InteractiveHeader":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveHeaderType"}},"additionalProperties":false},"InteractiveHeaderType":{"enum":["Text","Video","Image","Document"],"type":"string"},"InteractiveImageHeader":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveMediaHeader"}],"additionalProperties":false},"InteractiveTextHeader":{"required":["text"],"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveHeader"}],"properties":{"text":{"maxLength":60,"minLength":1,"type":"string","description":"Text for the header.\r\nFormatting allows emojis, but not markdown."}},"additionalProperties":false},"InteractiveVideoHeader":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveMediaHeader"}],"additionalProperties":false},"InteractiveBody":{"required":["text"],"type":"object","properties":{"text":{"maxLength":1024,"minLength":1,"type":"string","description":"The body content of the message.\r\nEmojis and markdown are supported. Links are supported."}},"additionalProperties":false},"InteractiveFooter":{"required":["text"],"type":"object","properties":{"text":{"maxLength":60,"minLength":1,"type":"string","description":"The footer content.\r\nEmojis and markdown are supported. Links are supported."}},"additionalProperties":false},"InteractiveButtonAction":{"required":["buttons"],"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveAction"}],"properties":{"buttons":{"maxItems":3,"minItems":1,"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/InteractiveButtonActionReplyButton"}]}}},"additionalProperties":false},"InteractiveAction":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveActionType"}},"additionalProperties":false},"InteractiveActionType":{"enum":["Button","List"],"type":"string"},"InteractiveButtonActionReplyButton":{"required":["id","title"],"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveButtonActionButton"}],"properties":{"id":{"maxLength":256,"minLength":1,"type":"string","description":"Button title.\r\nUnique identifier for your button. This ID is returned in the webhook when the button is clicked by the user."},"title":{"maxLength":20,"minLength":1,"type":"string","description":"Unique identifier for your button.\r\nMust be unique within the message. Does not allow emojis or markdown."}},"additionalProperties":false},"InteractiveButtonActionButton":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveButtonActionButtonType"}},"additionalProperties":false},"InteractiveButtonActionButtonType":{"enum":["Reply"],"type":"string"},"InteractiveListAction":{"required":["button","sections"],"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveAction"}],"properties":{"button":{"maxLength":20,"minLength":1,"type":"string","description":"Button content.\r\nMust be unique within the message. Does not allow emojis or markdown."},"sections":{"maxItems":10,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/InteractiveListActionSection"},"description":"A maximum of ten lines across all sections are allowed."}},"additionalProperties":false},"InteractiveListActionSection":{"required":["rows"],"type":"object","properties":{"title":{"maxLength":24,"minLength":1,"type":"string","description":"Required if the message has more than one section.","nullable":true},"rows":{"maxItems":10,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/InteractiveListActionRow"}}},"additionalProperties":false},"InteractiveListActionRow":{"required":["id","title"],"type":"object","properties":{"id":{"maxLength":200,"minLength":1,"type":"string"},"title":{"maxLength":24,"minLength":1,"type":"string"},"description":{"maxLength":72,"minLength":1,"type":"string","nullable":true}},"additionalProperties":false},"InteractiveReplyContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"reply":{"oneOf":[{"$ref":"#/components/schemas/InteractiveButtonReply"},{"$ref":"#/components/schemas/InteractiveListReply"}],"nullable":true}},"additionalProperties":false},"InteractiveButtonReply":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveReplyContentReply"}],"properties":{"id":{"type":"string","nullable":true},"title":{"type":"string","nullable":true}},"additionalProperties":false},"InteractiveReplyContentReply":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveReplyType"}},"additionalProperties":false},"InteractiveReplyType":{"enum":["Button","List"],"type":"string"},"InteractiveListReply":{"type":"object","allOf":[{"$ref":"#/components/schemas/InteractiveReplyContentReply"}],"properties":{"id":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"description":{"type":"string","nullable":true}},"additionalProperties":false},"LocationContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"longitude":{"type":"number","format":"double"},"latitude":{"type":"number","format":"double"},"name":{"type":"string","nullable":true},"address":{"type":"string","nullable":true}},"additionalProperties":false},"StickerContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"additionalProperties":false},"TemplateContent":{"required":["language","name","namespace"],"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"namespace":{"minLength":1,"type":"string"},"name":{"minLength":1,"type":"string"},"language":{"$ref":"#/components/schemas/TemplateLanguage"},"components":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/TemplateBodyComponent"},{"$ref":"#/components/schemas/TemplateButtonComponent"},{"$ref":"#/components/schemas/TemplateHeaderComponent"},{"$ref":"#/components/schemas/TemplateQuickReplyButtonComponent"},{"$ref":"#/components/schemas/TemplateUrlButtonComponent"}]},"nullable":true}},"additionalProperties":false},"TemplateLanguage":{"required":["code"],"type":"object","properties":{"policy":{"$ref":"#/components/schemas/TemplateLanguagePolicy"},"code":{"$ref":"#/components/schemas/TemplateLanguageCode"}},"additionalProperties":false},"TemplateLanguagePolicy":{"enum":["Deterministic"],"type":"string"},"TemplateLanguageCode":{"enum":["af","sq","ar","az","bn","bg","ca","zh_CN","zh_HK","zh_TW","hr","cs","da","nl","en","en_GB","en_US","et","fil","fi","fr","ka","de","el","gu","ha","he","hi","hu","id","ga","it","ja","kn","kk","rw_RW","ko","ky_KG","lo","lv","lt","mk","ms","ml","mr","nb","fa","pl","pt_BR","pt_PT","pa","ro","ru","sr","sk","sl","es","es_AR","es_ES","es_MX","sw","sv","ta","te","th","tr","uk","ur","uz","vi","zu"],"type":"string"},"TemplateBodyComponent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateComponent"}],"additionalProperties":false},"TemplateComponent":{"required":["parameters","type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/TemplateComponentType"},"parameters":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/TemplateCurrencyParameter"},{"$ref":"#/components/schemas/TemplateDateTimeParameter"},{"$ref":"#/components/schemas/TemplateDocumentParameter"},{"$ref":"#/components/schemas/TemplateImageParameter"},{"$ref":"#/components/schemas/TemplateMediaParameter"},{"$ref":"#/components/schemas/TemplatePayloadParameter"},{"$ref":"#/components/schemas/TemplateTextParameter"},{"$ref":"#/components/schemas/TemplateVideoParameter"}]}}},"additionalProperties":false},"TemplateComponentType":{"enum":["Header","Body","QuickReplyButton","UrlButton"],"type":"string"},"TemplateCurrencyParameter":{"required":["amount","code","fallbackValue"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"code":{"maxLength":3,"minLength":3,"type":"string","description":"Currency code as defined in ISO 4217"},"amount":{"type":"integer","description":"Amount with cents multiplied by 1000. So $100.99 would be 100990.","format":"int32"},"fallbackValue":{"minLength":1,"type":"string","description":"Default text if localization fails."}},"additionalProperties":false},"TemplateParameter":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/TemplateParameterType"}},"additionalProperties":false},"TemplateParameterType":{"enum":["Text","Image","Video","Document","DateTime","Currency","Payload"],"type":"string"},"TemplateDateTimeParameter":{"required":["dateTime"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"dateTime":{"type":"string","description":"RFC3339 representation of the date and time.","format":"date-time"}},"additionalProperties":false},"TemplateDocumentParameter":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateMediaParameter"}],"properties":{"filename":{"type":"string","nullable":true}},"additionalProperties":false},"TemplateMediaParameter":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"mediaId":{"type":"string","description":"The id of the media.\r\nRequired when you are not using a url.","nullable":true},"url":{"type":"string","description":"The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs.\r\nRequired when you are not using an uploaded media.","nullable":true}},"additionalProperties":false},"TemplateImageParameter":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateMediaParameter"}],"additionalProperties":false},"TemplatePayloadParameter":{"required":["payload"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"payload":{"minLength":1,"type":"string"}},"additionalProperties":false},"TemplateTextParameter":{"required":["text"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"text":{"minLength":1,"type":"string"}},"additionalProperties":false},"TemplateVideoParameter":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateMediaParameter"}],"additionalProperties":false},"TemplateButtonComponent":{"required":["index"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateComponent"}],"properties":{"index":{"type":"integer","format":"int32"}},"additionalProperties":false},"TemplateHeaderComponent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateComponent"}],"additionalProperties":false},"TemplateQuickReplyButtonComponent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateButtonComponent"}],"additionalProperties":false},"TemplateUrlButtonComponent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateButtonComponent"}],"additionalProperties":false},"TextContent":{"required":["text"],"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"text":{"minLength":1,"type":"string","description":"Text content\r\n(Voice: maximum length 2000 characters)"}},"additionalProperties":false},"VideoContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"properties":{"caption":{"type":"string","nullable":true}},"additionalProperties":false},"Notification":{"required":["addresses"],"type":"object","properties":{"forEvent":{"type":"string","nullable":true},"addresses":{"minItems":1,"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/EmailNotificationAddress"},{"$ref":"#/components/schemas/SmsNotificationAddress"},{"$ref":"#/components/schemas/UrlNotificationAddress"}]}}},"additionalProperties":false},"EmailNotificationAddress":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/NotificationAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"NotificationAddress":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/NotificationAddressType"}},"additionalProperties":false},"NotificationAddressType":{"enum":["Sms","Email","Url","UrlPost"],"type":"string"},"SmsNotificationAddress":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/NotificationAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"UrlNotificationAddress":{"required":["address"],"type":"object","allOf":[{"$ref":"#/components/schemas/NotificationAddress"}],"properties":{"address":{"minLength":1,"type":"string"}},"additionalProperties":false},"MessageResult":{"type":"object","properties":{"messageId":{"type":"string","nullable":true},"messageIdList":{"type":"array","items":{"$ref":"#/components/schemas/MessageIdAddressPair"},"nullable":true},"timestamp":{"type":"string","format":"date-time"}},"additionalProperties":false},"MessageIdAddressPair":{"type":"object","properties":{"messageId":{"type":"string","nullable":true},"address":{"type":"string","nullable":true}},"additionalProperties":false},"Error":{"type":"object","properties":{"errorCode":{"$ref":"#/components/schemas/ErrorCode"},"errorMessage":{"type":"string","nullable":true},"errorDetails":{"oneOf":[{"$ref":"#/components/schemas/ParameterErrorDetails"}],"nullable":true}},"additionalProperties":false},"ErrorCode":{"enum":["Error1","Error2","RequestMissing","CannotConvertMediaBody","UnknownContentType","InvalidSenderAccount","InvalidContent","InsufficientPoints","PointSubstractionError","TooManyMessagesSameReceiver","TooManyMessagesSameReceiverAndContent","AdrCountryNotWhitelisted","AdrCountryWhitelistLimitExceeded","AdrCountryWhitelistLimitReachedButNotBlockedCountries"],"type":"string"},"ParameterErrorDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}],"properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ParameterErrorDetailsEntry"},"nullable":true}},"additionalProperties":false},"ErrorDetails":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ErrorDetailsType"}},"additionalProperties":false},"ErrorDetailsType":{"enum":["Parameter"],"type":"string"},"ParameterErrorDetailsEntry":{"type":"object","properties":{"parameter":{"type":"string","nullable":true},"messages":{"type":"array","items":{"type":"string"},"nullable":true}},"additionalProperties":false}}},"paths":{"/api/v2/message":{"post":{"tags":["Message"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResult"}},"text/json":{"schema":{"$ref":"#/components/schemas/MessageResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## GET /api/message/{messageId}

>

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"tags":[{"name":"Message"}],"security":[{"Basic":[]}],"components":{"securitySchemes":{"Basic":{"type":"http","scheme":"Basic"}},"schemas":{"MessageStatusData":{"type":"object","properties":{"channel":{"type":"string","description":"Channel","nullable":true},"messageId":{"type":"string","description":"MessageId","nullable":true},"status":{"$ref":"#/components/schemas/MessageStatus"},"reasonCode":{"type":"integer","description":"ReasonCode","format":"int32"},"reason":{"type":"string","description":"Reason","nullable":true},"timestamp":{"type":"string","description":"Timestamp","format":"date-time"},"from":{"type":"string","description":"From","nullable":true},"to":{"type":"string","description":"To","nullable":true},"ackCode":{"type":"string","description":"Voice only: The code the recipient entered to acknowledge the message (see option inputRequired).\r\nOnly present if the message was played with receipt.","nullable":true},"pageTotal":{"type":"integer","description":"PageCount","format":"int32","nullable":true}},"additionalProperties":false},"MessageStatus":{"enum":["Pending","Sent","Delivered","Read","Failed","Deleted","Transmitted","DeliveryFailed","Played","Played_with_feedback","Played_with_receipt","Next_try_pending","Cancelled","Scheduled"],"type":"string"},"Error":{"type":"object","properties":{"errorCode":{"$ref":"#/components/schemas/ErrorCode"},"errorMessage":{"type":"string","nullable":true},"errorDetails":{"oneOf":[{"$ref":"#/components/schemas/ParameterErrorDetails"}],"nullable":true}},"additionalProperties":false},"ErrorCode":{"enum":["Error1","Error2","RequestMissing","CannotConvertMediaBody","UnknownContentType","InvalidSenderAccount","InvalidContent","InsufficientPoints","PointSubstractionError","TooManyMessagesSameReceiver","TooManyMessagesSameReceiverAndContent","AdrCountryNotWhitelisted","AdrCountryWhitelistLimitExceeded","AdrCountryWhitelistLimitReachedButNotBlockedCountries"],"type":"string"},"ParameterErrorDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}],"properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ParameterErrorDetailsEntry"},"nullable":true}},"additionalProperties":false},"ErrorDetails":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ErrorDetailsType"}},"additionalProperties":false},"ErrorDetailsType":{"enum":["Parameter"],"type":"string"},"ParameterErrorDetailsEntry":{"type":"object","properties":{"parameter":{"type":"string","nullable":true},"messages":{"type":"array","items":{"type":"string"},"nullable":true}},"additionalProperties":false}}},"paths":{"/api/message/{messageId}":{"get":{"tags":["Message"],"parameters":[{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-API-Version","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageStatusData"}},"text/json":{"schema":{"$ref":"#/components/schemas/MessageStatusData"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## PUT /api/message/{messageId}

>

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"tags":[{"name":"Message"}],"security":[{"Basic":[]}],"components":{"securitySchemes":{"Basic":{"type":"http","scheme":"Basic"}},"schemas":{"MessageStatusUpdateRequest":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/MessageStatus"}},"additionalProperties":false},"MessageStatus":{"enum":["Pending","Sent","Delivered","Read","Failed","Deleted","Transmitted","DeliveryFailed","Played","Played_with_feedback","Played_with_receipt","Next_try_pending","Cancelled","Scheduled"],"type":"string"},"Error":{"type":"object","properties":{"errorCode":{"$ref":"#/components/schemas/ErrorCode"},"errorMessage":{"type":"string","nullable":true},"errorDetails":{"oneOf":[{"$ref":"#/components/schemas/ParameterErrorDetails"}],"nullable":true}},"additionalProperties":false},"ErrorCode":{"enum":["Error1","Error2","RequestMissing","CannotConvertMediaBody","UnknownContentType","InvalidSenderAccount","InvalidContent","InsufficientPoints","PointSubstractionError","TooManyMessagesSameReceiver","TooManyMessagesSameReceiverAndContent","AdrCountryNotWhitelisted","AdrCountryWhitelistLimitExceeded","AdrCountryWhitelistLimitReachedButNotBlockedCountries"],"type":"string"},"ParameterErrorDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}],"properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ParameterErrorDetailsEntry"},"nullable":true}},"additionalProperties":false},"ErrorDetails":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ErrorDetailsType"}},"additionalProperties":false},"ErrorDetailsType":{"enum":["Parameter"],"type":"string"},"ParameterErrorDetailsEntry":{"type":"object","properties":{"parameter":{"type":"string","nullable":true},"messages":{"type":"array","items":{"type":"string"},"nullable":true}},"additionalProperties":false}}},"paths":{"/api/message/{messageId}":{"put":{"tags":["Message"],"parameters":[{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-API-Version","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageStatusUpdateRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"501":{"description":"Not Implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## GET /api/v2/message/{messageId}

>

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"tags":[{"name":"Message"}],"security":[{"Basic":[]}],"components":{"securitySchemes":{"Basic":{"type":"http","scheme":"Basic"}},"schemas":{"MessageStatusData":{"type":"object","properties":{"channel":{"type":"string","description":"Channel","nullable":true},"messageId":{"type":"string","description":"MessageId","nullable":true},"status":{"$ref":"#/components/schemas/MessageStatus"},"reasonCode":{"type":"integer","description":"ReasonCode","format":"int32"},"reason":{"type":"string","description":"Reason","nullable":true},"timestamp":{"type":"string","description":"Timestamp","format":"date-time"},"from":{"type":"string","description":"From","nullable":true},"to":{"type":"string","description":"To","nullable":true},"ackCode":{"type":"string","description":"Voice only: The code the recipient entered to acknowledge the message (see option inputRequired).\r\nOnly present if the message was played with receipt.","nullable":true},"pageTotal":{"type":"integer","description":"PageCount","format":"int32","nullable":true}},"additionalProperties":false},"MessageStatus":{"enum":["Pending","Sent","Delivered","Read","Failed","Deleted","Transmitted","DeliveryFailed","Played","Played_with_feedback","Played_with_receipt","Next_try_pending","Cancelled","Scheduled"],"type":"string"},"Error":{"type":"object","properties":{"errorCode":{"$ref":"#/components/schemas/ErrorCode"},"errorMessage":{"type":"string","nullable":true},"errorDetails":{"oneOf":[{"$ref":"#/components/schemas/ParameterErrorDetails"}],"nullable":true}},"additionalProperties":false},"ErrorCode":{"enum":["Error1","Error2","RequestMissing","CannotConvertMediaBody","UnknownContentType","InvalidSenderAccount","InvalidContent","InsufficientPoints","PointSubstractionError","TooManyMessagesSameReceiver","TooManyMessagesSameReceiverAndContent","AdrCountryNotWhitelisted","AdrCountryWhitelistLimitExceeded","AdrCountryWhitelistLimitReachedButNotBlockedCountries"],"type":"string"},"ParameterErrorDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}],"properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ParameterErrorDetailsEntry"},"nullable":true}},"additionalProperties":false},"ErrorDetails":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ErrorDetailsType"}},"additionalProperties":false},"ErrorDetailsType":{"enum":["Parameter"],"type":"string"},"ParameterErrorDetailsEntry":{"type":"object","properties":{"parameter":{"type":"string","nullable":true},"messages":{"type":"array","items":{"type":"string"},"nullable":true}},"additionalProperties":false}}},"paths":{"/api/v2/message/{messageId}":{"get":{"tags":["Message"],"parameters":[{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageStatusData"}},"text/json":{"schema":{"$ref":"#/components/schemas/MessageStatusData"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```

## PUT /api/v2/message/{messageId}

>

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"tags":[{"name":"Message"}],"security":[{"Basic":[]}],"components":{"securitySchemes":{"Basic":{"type":"http","scheme":"Basic"}},"schemas":{"MessageStatusUpdateRequest":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/MessageStatus"}},"additionalProperties":false},"MessageStatus":{"enum":["Pending","Sent","Delivered","Read","Failed","Deleted","Transmitted","DeliveryFailed","Played","Played_with_feedback","Played_with_receipt","Next_try_pending","Cancelled","Scheduled"],"type":"string"},"Error":{"type":"object","properties":{"errorCode":{"$ref":"#/components/schemas/ErrorCode"},"errorMessage":{"type":"string","nullable":true},"errorDetails":{"oneOf":[{"$ref":"#/components/schemas/ParameterErrorDetails"}],"nullable":true}},"additionalProperties":false},"ErrorCode":{"enum":["Error1","Error2","RequestMissing","CannotConvertMediaBody","UnknownContentType","InvalidSenderAccount","InvalidContent","InsufficientPoints","PointSubstractionError","TooManyMessagesSameReceiver","TooManyMessagesSameReceiverAndContent","AdrCountryNotWhitelisted","AdrCountryWhitelistLimitExceeded","AdrCountryWhitelistLimitReachedButNotBlockedCountries"],"type":"string"},"ParameterErrorDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ErrorDetails"}],"properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ParameterErrorDetailsEntry"},"nullable":true}},"additionalProperties":false},"ErrorDetails":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ErrorDetailsType"}},"additionalProperties":false},"ErrorDetailsType":{"enum":["Parameter"],"type":"string"},"ParameterErrorDetailsEntry":{"type":"object","properties":{"parameter":{"type":"string","nullable":true},"messages":{"type":"array","items":{"type":"string"},"nullable":true}},"additionalProperties":false}}},"paths":{"/api/v2/message/{messageId}":{"put":{"tags":["Message"],"parameters":[{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageStatusUpdateRequest"}}}},"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"501":{"description":"Not Implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}},"text/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```
