Skip to content

List WhatsApp templates

GET
/api/v1/messaging/whatsapp/templates
curl --request GET \
--url https://digize.com/api/v1/messaging/whatsapp/templates \
--header 'x-api-key: <x-api-key>'

The templates WhatsApp has approved on the connected Twilio account (Content Template Builder), which messages outside the 24-hour window must use.

Needs the crm:read permission.

Done

Media typeapplication/json
Array<object>
object
sid
required

The template’s Content SID (HX…).

string
name
required
string
language
required
string
category
required
string | null
body
required

Its text, with {{1}} for each variable.

string
variables
required

Each variable’s key and its example value.

object
key
additional properties
string

Example generated

[
{
"sid": "example",
"name": "example",
"language": "example",
"category": "example",
"body": "example",
"variables": {
"additionalProperty": "example"
}
}
]

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}