> 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/models.md). Agents can also search and read this documentation through its [MCP server](https://developer.ecall-messaging.com/~gitbook/mcp).

# Models

## The AddressData object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The AudioContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The ContactContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ContactContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"contacts":{"type":"array","items":{"$ref":"#/components/schemas/ContactData"},"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},"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}}}}
```

## The ContactData object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The ContentType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ContentType":{"enum":["Text","Template","Image","Video","Document","Location","Audio","Sticker","Contacts","Interactive","InteractiveReply"],"type":"string"}}}}
```

## The DocumentContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"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}}}}
```

## The EmailNotificationAddress object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The Error object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The ErrorCode object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ErrorCode":{"enum":["Error1","Error2","RequestMissing","CannotConvertMediaBody","UnknownContentType","InvalidSenderAccount","InvalidContent","InsufficientPoints","PointSubstractionError","TooManyMessagesSameReceiver","TooManyMessagesSameReceiverAndContent","AdrCountryNotWhitelisted","AdrCountryWhitelistLimitExceeded","AdrCountryWhitelistLimitReachedButNotBlockedCountries"],"type":"string"}}}}
```

## The ErrorDetails object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ErrorDetails":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ErrorDetailsType"}},"additionalProperties":false},"ErrorDetailsType":{"enum":["Parameter"],"type":"string"}}}}
```

## The ErrorDetailsType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ErrorDetailsType":{"enum":["Parameter"],"type":"string"}}}}
```

## The ImageContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ImageContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"properties":{"caption":{"type":"string","nullable":true}},"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}}}}
```

## The InteractiveAction object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveAction":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveActionType"}},"additionalProperties":false},"InteractiveActionType":{"enum":["Button","List"],"type":"string"}}}}
```

## The InteractiveActionType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveActionType":{"enum":["Button","List"],"type":"string"}}}}
```

## The InteractiveBody object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The InteractiveButtonAction object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The InteractiveButtonActionButton object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveButtonActionButton":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveButtonActionButtonType"}},"additionalProperties":false},"InteractiveButtonActionButtonType":{"enum":["Reply"],"type":"string"}}}}
```

## The InteractiveButtonActionButtonType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveButtonActionButtonType":{"enum":["Reply"],"type":"string"}}}}
```

## The InteractiveButtonActionReplyButton object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The InteractiveButtonReply object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The InteractiveContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"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},"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}}}}
```

## The InteractiveDocumentHeader object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The InteractiveFooter object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The InteractiveHeader object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveHeader":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveHeaderType"}},"additionalProperties":false},"InteractiveHeaderType":{"enum":["Text","Video","Image","Document"],"type":"string"}}}}
```

## The InteractiveHeaderType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveHeaderType":{"enum":["Text","Video","Image","Document"],"type":"string"}}}}
```

## The InteractiveImageHeader object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveImageHeader":{"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"}}}}
```

## The InteractiveListAction object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"InteractiveAction":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveActionType"}},"additionalProperties":false},"InteractiveActionType":{"enum":["Button","List"],"type":"string"},"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}}}}
```

## The InteractiveListActionRow object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The InteractiveListActionSection object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The InteractiveListReply object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"InteractiveReplyContentReply":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveReplyType"}},"additionalProperties":false},"InteractiveReplyType":{"enum":["Button","List"],"type":"string"}}}}
```

## The InteractiveMediaHeader object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The InteractiveReplyContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveReplyContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MessageContent"}],"properties":{"reply":{"oneOf":[{"$ref":"#/components/schemas/InteractiveButtonReply"},{"$ref":"#/components/schemas/InteractiveListReply"}],"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},"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}}}}
```

## The InteractiveReplyContentReply object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveReplyContentReply":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveReplyType"}},"additionalProperties":false},"InteractiveReplyType":{"enum":["Button","List"],"type":"string"}}}}
```

## The InteractiveReplyType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveReplyType":{"enum":["Button","List"],"type":"string"}}}}
```

## The InteractiveTextHeader object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"InteractiveHeader":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/InteractiveHeaderType"}},"additionalProperties":false},"InteractiveHeaderType":{"enum":["Text","Video","Image","Document"],"type":"string"}}}}
```

## The InteractiveVideoHeader object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"InteractiveVideoHeader":{"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"}}}}
```

## The LocationContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"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}}}}
```

## The MediaContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The MediaUploadResult object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"MediaUploadResult":{"type":"object","properties":{"mediaId":{"type":"string","nullable":true}},"additionalProperties":false}}}}
```

## The Message object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"Message":{"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},"customerId":{"type":"string","description":"CustomerID fpr IMASYS","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"}]}},"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}}}}
```

## The MessageContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The MessageIdAddressPair object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"MessageIdAddressPair":{"type":"object","properties":{"messageId":{"type":"string","nullable":true},"address":{"type":"string","nullable":true}},"additionalProperties":false}}}}
```

## The MessageListRequest object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"MessageListRequest":{"required":["messages"],"type":"object","properties":{"messages":{"type":"array","items":{"$ref":"#/components/schemas/Message"}},"notification":{"$ref":"#/components/schemas/Notification"},"customerId":{"type":"string","nullable":true}},"additionalProperties":false},"Message":{"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},"customerId":{"type":"string","description":"CustomerID fpr IMASYS","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"}]}},"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}}}}
```

## The MessageListResult object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"MessageListResult":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/MessageListResultSingle"},"nullable":true},"messageListId":{"type":"string","nullable":true},"timestamp":{"type":"string","format":"date-time"}},"additionalProperties":false},"MessageListResultSingle":{"type":"object","properties":{"messageId":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"error":{"$ref":"#/components/schemas/Error"}},"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}}}}
```

## The MessageListResultSingle object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"MessageListResultSingle":{"type":"object","properties":{"messageId":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"error":{"$ref":"#/components/schemas/Error"}},"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}}}}
```

## The MessageListStatusData object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"MessageListStatusData":{"type":"object","properties":{"states":{"type":"array","items":{"$ref":"#/components/schemas/MessageStatusData"},"description":"List of status results","nullable":true},"messageListId":{"type":"string","description":"Message list Id","nullable":true},"timestamp":{"type":"string","description":"Timestamp","format":"date-time"}},"additionalProperties":false},"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"}}}}
```

## The MessageRequest object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"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}}}}
```

## The MessageResult object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The MessageStatus object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"MessageStatus":{"enum":["Pending","Sent","Delivered","Read","Failed","Deleted","Transmitted","DeliveryFailed","Played","Played_with_feedback","Played_with_receipt","Next_try_pending","Cancelled","Scheduled"],"type":"string"}}}}
```

## The MessageStatusData object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"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"}}}}
```

## The MessageStatusUpdateRequest object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"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"}}}}
```

## The MessageType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"MessageType":{"enum":["Standard","Flash","PrioPlus"],"type":"string"}}}}
```

## The NameData object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The Notification object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The NotificationAddress object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"NotificationAddress":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/NotificationAddressType"}},"additionalProperties":false},"NotificationAddressType":{"enum":["Sms","Email","Url","UrlPost"],"type":"string"}}}}
```

## The NotificationAddressType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"NotificationAddressType":{"enum":["Sms","Email","Url","UrlPost"],"type":"string"}}}}
```

## The OptionType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"OptionType":{"enum":["SmsContentOptions","VoiceContentOptions"],"type":"string"}}}}
```

## The Options object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"Options":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/OptionType"}},"additionalProperties":false},"OptionType":{"enum":["SmsContentOptions","VoiceContentOptions"],"type":"string"}}}}
```

## The OrganizationData object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"OrganizationData":{"type":"object","properties":{"company":{"type":"string","nullable":true},"department":{"type":"string","nullable":true},"title":{"type":"string","nullable":true}},"additionalProperties":false}}}}
```

## The ParameterErrorDetails object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The ParameterErrorDetailsEntry object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ParameterErrorDetailsEntry":{"type":"object","properties":{"parameter":{"type":"string","nullable":true},"messages":{"type":"array","items":{"type":"string"},"nullable":true}},"additionalProperties":false}}}}
```

## The PhoneData object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"PhoneData":{"type":"object","properties":{"phone":{"type":"string","nullable":true},"type":{"type":"string","nullable":true}},"additionalProperties":false}}}}
```

## The ReceivedMessage object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ReceivedMessage":{"type":"object","properties":{"messageId":{"type":"string","nullable":true},"channel":{"type":"string","nullable":true},"to":{"type":"string","nullable":true},"from":{"type":"string","nullable":true},"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"}],"nullable":true},"timestamp":{"type":"string","format":"date-time"}},"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}}}}
```

## The SmsContentOptions object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The SmsNotificationAddress object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"SmsNotificationAddress":{"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"}}}}
```

## The StickerContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"StickerContent":{"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}}}}
```

## The TemplateBodyComponent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The TemplateButtonComponent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateButtonComponent":{"required":["index"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateComponent"}],"properties":{"index":{"type":"integer","format":"int32"}},"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}}}}
```

## The TemplateComponent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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}}}}
```

## The TemplateComponentType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateComponentType":{"enum":["Header","Body","QuickReplyButton","UrlButton"],"type":"string"}}}}
```

## The TemplateContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"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},"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}}}}
```

## The TemplateCurrencyParameter object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The TemplateDateTimeParameter object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"TemplateParameter":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/TemplateParameterType"}},"additionalProperties":false},"TemplateParameterType":{"enum":["Text","Image","Video","Document","DateTime","Currency","Payload"],"type":"string"}}}}
```

## The TemplateDocumentParameter object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"TemplateParameter":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/TemplateParameterType"}},"additionalProperties":false},"TemplateParameterType":{"enum":["Text","Image","Video","Document","DateTime","Currency","Payload"],"type":"string"}}}}
```

## The TemplateHeaderComponent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateHeaderComponent":{"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}}}}
```

## The TemplateImageParameter object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateImageParameter":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateMediaParameter"}],"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},"TemplateParameter":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/TemplateParameterType"}},"additionalProperties":false},"TemplateParameterType":{"enum":["Text","Image","Video","Document","DateTime","Currency","Payload"],"type":"string"}}}}
```

## The TemplateLanguage object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The TemplateLanguageCode object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The TemplateLanguagePolicy object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateLanguagePolicy":{"enum":["Deterministic"],"type":"string"}}}}
```

## The TemplateMediaParameter object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"TemplateParameter":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/TemplateParameterType"}},"additionalProperties":false},"TemplateParameterType":{"enum":["Text","Image","Video","Document","DateTime","Currency","Payload"],"type":"string"}}}}
```

## The TemplateParameter object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateParameter":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/TemplateParameterType"}},"additionalProperties":false},"TemplateParameterType":{"enum":["Text","Image","Video","Document","DateTime","Currency","Payload"],"type":"string"}}}}
```

## The TemplateParameterType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateParameterType":{"enum":["Text","Image","Video","Document","DateTime","Currency","Payload"],"type":"string"}}}}
```

## The TemplatePayloadParameter object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplatePayloadParameter":{"required":["payload"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"payload":{"minLength":1,"type":"string"}},"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"}}}}
```

## The TemplateQuickReplyButtonComponent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateQuickReplyButtonComponent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateButtonComponent"}],"additionalProperties":false},"TemplateButtonComponent":{"required":["index"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateComponent"}],"properties":{"index":{"type":"integer","format":"int32"}},"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}}}}
```

## The TemplateTextParameter object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateTextParameter":{"required":["text"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateParameter"}],"properties":{"text":{"minLength":1,"type":"string"}},"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"}}}}
```

## The TemplateUrlButtonComponent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateUrlButtonComponent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateButtonComponent"}],"additionalProperties":false},"TemplateButtonComponent":{"required":["index"],"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateComponent"}],"properties":{"index":{"type":"integer","format":"int32"}},"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}}}}
```

## The TemplateVideoParameter object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"TemplateVideoParameter":{"type":"object","allOf":[{"$ref":"#/components/schemas/TemplateMediaParameter"}],"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},"TemplateParameter":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/TemplateParameterType"}},"additionalProperties":false},"TemplateParameterType":{"enum":["Text","Image","Video","Document","DateTime","Currency","Payload"],"type":"string"}}}}
```

## The TextContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"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}}}}
```

## The ToAddress object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ToAddress":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/ToAddressType"}},"additionalProperties":false},"ToAddressType":{"enum":["Number","Person","Group"],"type":"string"}}}}
```

## The ToAddressGroup object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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"}}}}
```

## The ToAddressNumber object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ToAddressNumber":{"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"}}}}
```

## The ToAddressPerson object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ToAddressPerson":{"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"}}}}
```

## The ToAddressType object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"ToAddressType":{"enum":["Number","Person","Group"],"type":"string"}}}}
```

## The UrlData object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"UrlData":{"type":"object","properties":{"url":{"type":"string","nullable":true},"type":{"type":"string","nullable":true}},"additionalProperties":false}}}}
```

## The UrlNotificationAddress object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"UrlNotificationAddress":{"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"}}}}
```

## The VideoContent object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"VideoContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/MediaContent"}],"properties":{"caption":{"type":"string","nullable":true}},"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}}}}
```

## The VoiceContentOptions object

```json
{"openapi":"3.0.1","info":{"title":"RestApi","version":"v2"},"components":{"schemas":{"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},"Options":{"required":["type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/OptionType"}},"additionalProperties":false},"OptionType":{"enum":["SmsContentOptions","VoiceContentOptions"],"type":"string"}}}}
```
