Version 1 endpoints for managing message templates. Currently maintained for existing users. Version 2 is recommended.
A successful response.
An unexpected error response.
{- "templates": [
- {
- "channel": "UNSPECIFIED",
- "create_time": "2019-08-24T14:15:22Z",
- "default_translation": "string",
- "description": "string",
- "id": "string",
- "translations": [
- {
- "content": "string",
- "create_time": "2019-08-24T14:15:22Z",
- "language_code": "string",
- "update_time": "2019-08-24T14:15:22Z",
- "variables": [
- {
- "key": "string",
- "preview_value": "string"
}
], - "version": "string"
}
], - "update_time": "2019-08-24T14:15:22Z"
}
]
}
Required. The template to create.
default_translation required | string The default translation to use if not specified.
Specified as a BCP-47 |
required | Array of objects (typeTemplateTranslation) List of translations for the template. |
channel | string (typeChannel) Enum: "UNSPECIFIED" "CONVERSATION" "MESSENGER" "WHATSAPP" "RCS" "SMS" "VIBER" "VIBERBM" "TELEGRAM" "INSTAGRAM" "KAKAOTALK" "APPLEBC" |
create_time | string <date-time> Timestamp when the template was created. |
description | string The description of the template. |
id | string The id of the template. Specify this yourself during creation otherwise we will generate an ID for you. This has to be unique for a given project. |
update_time | string <date-time> Timestamp when the template was updated. |
A successful response.
channel | string (typeChannel) Enum: "UNSPECIFIED" "CONVERSATION" "MESSENGER" "WHATSAPP" "RCS" "SMS" "VIBER" "VIBERBM" "TELEGRAM" "INSTAGRAM" "KAKAOTALK" "APPLEBC" |
create_time | string <date-time> Timestamp when the template was created. |
default_translation | string The default translation to use if not specified.
Specified as a BCP-47 |
description | string The description of the template. |
id | string The id of the template. Specify this yourself during creation otherwise we will generate an ID for you. This has to be unique for a given project. |
Array of objects (typeTemplateTranslation) List of translations for the template. | |
update_time | string <date-time> Timestamp when the template was updated. |
An unexpected error response.
{- "description": "English text template with one parameter using Conversation API generic format.",
- "default_translation": "en",
- "channel": "CONVERSATION",
- "translations": [
- {
- "language_code": "en",
- "version": "20201130",
- "variables": [
- {
- "key": "name",
- "preview_value": "Mr Jones"
}
], - "content": "{ \"text_message\": { \"text\": \"Hi ${name}.\" }}"
}
]
}
{- "channel": "UNSPECIFIED",
- "create_time": "2019-08-24T14:15:22Z",
- "default_translation": "string",
- "description": "string",
- "id": "string",
- "translations": [
- {
- "content": "string",
- "create_time": "2019-08-24T14:15:22Z",
- "language_code": "string",
- "update_time": "2019-08-24T14:15:22Z",
- "variables": [
- {
- "key": "string",
- "preview_value": "string"
}
], - "version": "string"
}
], - "update_time": "2019-08-24T14:15:22Z"
}
Required. The updated template.
channel | string (typeChannel) Enum: "UNSPECIFIED" "CONVERSATION" "MESSENGER" "WHATSAPP" "RCS" "SMS" "VIBER" "VIBERBM" "TELEGRAM" "INSTAGRAM" "KAKAOTALK" "APPLEBC" |
create_time | string <date-time> Timestamp when the template was created. |
default_translation | string The default translation to use if not specified.
Specified as a BCP-47 |
description | string The description of the template. |
id | string The id of the template. Specify this yourself during creation otherwise we will generate an ID for you. This has to be unique for a given project. |
Array of objects (typeTemplateTranslation) List of translations for the template. | |
update_time | string <date-time> Timestamp when the template was updated. |
A successful response.
channel | string (typeChannel) Enum: "UNSPECIFIED" "CONVERSATION" "MESSENGER" "WHATSAPP" "RCS" "SMS" "VIBER" "VIBERBM" "TELEGRAM" "INSTAGRAM" "KAKAOTALK" "APPLEBC" |
create_time | string <date-time> Timestamp when the template was created. |
default_translation | string The default translation to use if not specified.
Specified as a BCP-47 |
description | string The description of the template. |
id | string The id of the template. Specify this yourself during creation otherwise we will generate an ID for you. This has to be unique for a given project. |
Array of objects (typeTemplateTranslation) List of translations for the template. | |
update_time | string <date-time> Timestamp when the template was updated. |
An unexpected error response.
{- "description": "English text template with one parameter using Conversation API generic format.",
- "default_translation": "en",
- "channel": "CONVERSATION",
- "translations": [
- {
- "language_code": "en",
- "version": "20201130",
- "variables": [
- {
- "key": "name",
- "preview_value": "Mr Jones"
}
], - "content": "{ \"text_message\": { \"text\": \"Hi ${name}.\" }}"
}
]
}
{- "channel": "UNSPECIFIED",
- "create_time": "2019-08-24T14:15:22Z",
- "default_translation": "string",
- "description": "string",
- "id": "string",
- "translations": [
- {
- "content": "string",
- "create_time": "2019-08-24T14:15:22Z",
- "language_code": "string",
- "update_time": "2019-08-24T14:15:22Z",
- "variables": [
- {
- "key": "string",
- "preview_value": "string"
}
], - "version": "string"
}
], - "update_time": "2019-08-24T14:15:22Z"
}
A successful response.
channel | string (typeChannel) Enum: "UNSPECIFIED" "CONVERSATION" "MESSENGER" "WHATSAPP" "RCS" "SMS" "VIBER" "VIBERBM" "TELEGRAM" "INSTAGRAM" "KAKAOTALK" "APPLEBC" |
create_time | string <date-time> Timestamp when the template was created. |
default_translation | string The default translation to use if not specified.
Specified as a BCP-47 |
description | string The description of the template. |
id | string The id of the template. Specify this yourself during creation otherwise we will generate an ID for you. This has to be unique for a given project. |
Array of objects (typeTemplateTranslation) List of translations for the template. | |
update_time | string <date-time> Timestamp when the template was updated. |
An unexpected error response.
{- "channel": "UNSPECIFIED",
- "create_time": "2019-08-24T14:15:22Z",
- "default_translation": "string",
- "description": "string",
- "id": "string",
- "translations": [
- {
- "content": "string",
- "create_time": "2019-08-24T14:15:22Z",
- "language_code": "string",
- "update_time": "2019-08-24T14:15:22Z",
- "variables": [
- {
- "key": "string",
- "preview_value": "string"
}
], - "version": "string"
}
], - "update_time": "2019-08-24T14:15:22Z"
}