Get content templates list

Receive content templates belonging to the company

GEThttps://web.otpcod.ru/api/v1/wa_templates
Loading code example
Loading code example

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <credentials>, where <credentials> is the Base64 encoding of username and password joined by a colon.

Query Parameters

status"draft" | "submitted" | "approved" | "in_appeal" | "rejected" | "deleted"default: any

status of WhatsApp templates to get

Allowed values: "draft" | "submitted" | "approved" | "in_appeal" | "rejected" | "deleted"
Default: "any"
limitintegerdefault: 100

sql returning rows limit

Required range: x <= 1000
Default: 100
offsetintegerdefault: 0

sql returning rows offset

Default: 0

Response

application/json

OK

dataarray<object>
data.categorystring
data.contentstring
data.created_atstring
data.descriptionstring
data.idinteger
data.languagestring
data.language_name_enstring
data.last_synced_atstring
data.rejection_reasonstring
data.sender_display_namestring
data.sender_idstring
data.status"DRAFT" | "SUBMITTED" | "APPROVED" | "REJECTED" | "DELETED"
Allowed values: "DRAFT" | "SUBMITTED" | "APPROVED" | "REJECTED" | "DELETED"
data.status_updated_atstring
data.template_namestring
data.updated_atstring
errorboolean
sizeinteger