Add/Update Vendor Approval
Add or update a vendor approval entry for a WhatsApp or SMS variant. Use this to record approval status from the vendor portal, including the vendor template ID and name.
Authorizations
Pass as Authorization: ServiceToken <token>. You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.
Path Parameters
whatsapp, sms Query Parameters
Must be live. Approval actions apply to the live version only; if omitted the API defaults to draft and rejects the request.
live Body
Current approval status.
pending, sent_for_approval, approved, rejected "approved"
Slug of the vendor (e.g., twilio-whatsapp, gupshup-whatsapp, msg91-sms).
"twilio-whatsapp"
Unique vendor identifier (e.g., WABA ID for WhatsApp).
"waba_id-123221"
Template name as registered at the vendor portal. Lowercase letters, numbers and underscores only.
"tpl_v12"
(Required if approved) Template ID from the vendor portal.
"1232"
(Required for WhatsApp if approved) Locale code at the vendor end.
"en"
(Required for WhatsApp if approved) Template category at the vendor end.
UTILITY, MARKETING, AUTHENTICATION "UTILITY"
(Required for SMS when vendor_slug is msg91-sms) Provider-level template ID.
(Required if rejected) Reason for rejection.
Response
Vendor approval entry updated. Returns the updated variant.
Schema URL for variant validation.
"https://schema.suprsend.com/template/v2/variant_schema.json"
Channel this variant belongs to.
"email"
Variant identifier.
"default"
Tenant this variant is scoped to, or null for default.
Locale code.
"en"
Conditions for variant selection at send time.
Content hash for change detection.
Whether this variant requires vendor approval (SMS DLT, WhatsApp).
System-generated template name for vendor approval.
Current approval status of the variant.
auto_approved, pending, sent_for_approval, approved, rejected, discarded, upload_failed Reason provided when a variant is discarded.
Timestamp when the variant was approved.
Whether the variant has validation errors.
Ordering within the channel + tenant + locale combination.
Action taken in the latest commit (added, updated, unchanged, deleted, or null in draft).
added, updated, unchanged, deleted Timestamp when the variant was created.
Channel-specific content. Structure varies by channel. Returned by the variant detail endpoint, and by the variant list endpoints only when include_content=true is passed.
Vendor approval entries (WhatsApp/SMS only). Returned by the variant detail endpoint, and by the variant list endpoints only when include_content=true is passed.