Download OpenAPI specification:Download
A successful response.
An unexpected error response.
curl -i -X GET \ 'https://us.template.api.sinch.com/v1/projects/{project_id}/templates'
{- "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 language_code and the language_code must exist in the translations list. |
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 language_code and the language_code must exist in the translations list. |
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"
}
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 language_code and the language_code must exist in the translations list. |
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 language_code and the language_code must exist in the translations list. |
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"
}
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 language_code and the language_code must exist in the translations list. |
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.
curl -i -X GET \ 'https://us.template.api.sinch.com/v1/projects/{project_id}/templates/{template_id}'
{- "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.
An unexpected error response.
curl -i -X DELETE \ 'https://us.template.api.sinch.com/v1/projects/{project_id}/templates/{template_id}'
null