Skip to main content
POST
/
api
/
v1
/
whatsapp-templates
/
{id}
/
publish
cURL
curl --request POST \
  --url https://backend.wassist.app/api/v1/whatsapp-templates/{id}/publish/ \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "accountIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "category": "UTILITY",
  "parameterFormat": "<string>",
  "accountLinks": [
    {
      "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "accountName": "<string>",
      "wabaId": "<string>",
      "metaTemplateId": "<string>",
      "qualityScore": "<string>",
      "rejectionReason": "<string>",
      "status": "DRAFT"
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "language": "<string>",
  "components": "<unknown>"
}
This endpoint lets you unpublish a WhatsApp Template from one or more WhatsApp Business Accounts.

Authorizations

X-API-Key
string
header
required

API key authentication. Pass your API key in the X-API-Key header.

Path Parameters

id
string
required

Body

application/json

Input for publishing a template to one or more accounts.

accountIds
string<uuid>[]
required

List of WhatsApp Business Account IDs to publish the template to

Minimum array length: 1

Response

200 - application/json

Serializer for local WhatsApp templates with account links.

id
string<uuid>
required
name
string
required
Maximum string length: 512
category
enum<string>
required
  • UTILITY - Utility
  • MARKETING - Marketing
  • AUTHENTICATION - Authentication
Available options:
UTILITY,
MARKETING,
AUTHENTICATION
parameterFormat
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
language
string
Maximum string length: 10
components
any