Get templates
Use this method to get a list of templates with pagination and filtering options. Using the filter is optional. The result can be filtered by one or many optional filters described in the parameters. Results are ordered by creation in descending order by default, meaning the newest template will be returned first. <a href="https://www.infobip.com/docs/conversations-api/templates" target="_blank">More info</a>
Request
- Base URLhttps://api.infobip.com (the document declares no server; this is the origin it was published from)
- Auth
- OAuth 2Client credentialsToken URL: https://api.infobip.com/auth/1/oauth2/token
- or API key in header Authorization
- or API key in header Authorization
- or HTTP basic
Query parameters
Optional. Template channel.
Optional. Template language.
Optional. Filter results created after specific date and time. Format: yyyy-MM-dd'T'HH:mm:ss.SSS+0000
Optional. Filter results created before specific date and time. Format: yyyy-MM-dd'T'HH:mm:ss.SSS+0000
Optional. Filter results updated after specific date and time. Format: yyyy-MM-dd'T'HH:mm:ss.SSS+0000
Optional. Filter results updated before specific date and time. Format: yyyy-MM-dd'T'HH:mm:ss.SSS+0000
Content type
Response
OK
Example response
{
"templates": [
{
"id": "c4391685-b21a-4c21-a470-5453e9382752",
"name": "First template name",
"language": "English",
"languageCode": "en",
"channel": "SMS",
"external": false,
"content": "Simple English text content",
"createdAt": "2024-01-01T00:00:00.000+00:00",
"updatedAt": "2024-01-01T00:00:00.000+00:00",
"tags": [
{
"name": "First template tag",
"createdAt": "2024-01-01T00:00:00.000+00:00",
"updatedAt": "2024-01-01T00:00:00.000+00:00"
}
],
"attachments": []
},
{
"id": "e2fafe40-ea15-49c8-ae9b-aa07131a0096",
"name": "Second template name",
"language": "Spanish",
"languageCode": "es",
"channel": "SMS",
"external": false,
"content": "Simple Spanish text content",
"createdAt": "2024-01-01T00:00:00.000+00:00",
"updatedAt": "2024-01-01T00:00:00.000+00:00",
"tags": [
{
"name": "Second template tag",
"createdAt": "2024-01-01T00:00:00.000+00:00",
"updatedAt": "2024-01-01T00:00:00.000+00:00"
}
],
"attachments": [
{
"id": "e2fafe40-ea15-49c8-ae9b-aa07131a0096",
"fileName": "Second template file",
"fileExtension": "txt",
"fileSize": 1024,
"contentType": "text/plain",
"publicLink": "https://example.com/second-template-file.txt",
"thumbLink": "https://example.com/second-template-file-thumb.png",
"uploadedAt": "2024-01-01T00:00:00.000+00:00"
},
{
"id": "e2fafe40-ea15-49c8-ae9b-aa07131a0096",
"fileName": "Second template image",
"fileExtension": "png",
"fileSize": 2048,
"contentType": "image/png",
"publicLink": "https://example.com/second-template-image.png",
"thumbLink": "https://example.com/second-template-image-thumb.png",
"uploadedAt": "2024-01-01T00:00:00.000+00:00"
}
]
}
],
"pagination": {
"totalItems": 2,
"page": 0,
"limit": 10,
"orderBy": "createdAt:DESC"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.