Skip to main content
PATCH
/
v2
/
{workspace}
/
template
/
{template_slug}
/
channel
/
{channel}
/
variant
/
{variant_id}
/
vendor_approval
Approve Variant
curl -X PATCH "https://management-api.suprsend.com/v2/{workspace}/template/{template_slug}/channel/{channel}/variant/{variant_id}/vendor_approval/?mode=live" \
  --header 'Authorization: ServiceToken <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "approval_status": "approved",
    "vendor_slug": "twilio-whatsapp",
    "vendor_uid": "waba_id-123221",
    "vendor_template_name": "tpl_v12",
    "vendor_template_id": "1232",
    "vendor_locale_code": "en",
    "vendor_template_category": "UTILITY"
  }'
{}

Authorizations

ServiceToken <token>
string
header
required

You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.

Path Parameters

workspace
string
required
template_slug
string
required
channel
enum<string>
required
Available options:
whatsapp,
sms
variant_id
string
required

Query Parameters

mode
enum<string>
default:live
Available options:
live

Body

application/json
approval_status
enum<string>
required

Current approval status.

Available options:
pending,
sent_for_approval,
approved,
rejected
Example:

"approved"

vendor_slug
string
required

Slug of the vendor (e.g., twilio-whatsapp, gupshup-whatsapp, msg91-sms).

Example:

"twilio-whatsapp"

vendor_uid
string
required

Unique vendor identifier (e.g., WABA ID for WhatsApp).

Example:

"waba_id-123221"

vendor_template_name
string

(Required if approved) Template name as registered at the vendor portal.

Example:

"tpl_v12"

vendor_template_id
string

(Required if approved) Template ID from the vendor portal.

Example:

"1232"

vendor_locale_code
string

(Optional) Locale code at the vendor end.

Example:

"en"

vendor_template_category
enum<string>

(Optional) Template category at the vendor end.

Available options:
UTILITY,
MARKETING,
AUTHENTICATION
Example:

"UTILITY"

provider_template_id
string

(Optional, SMS only for msg91-sms) Provider-level template ID.

comment
string

(Required if rejected) Reason for rejection.

Response

Vendor approval entry updated

The response is of type object.