v2

latestOpenAPI 3.1.12026-07-2613060964.2 KB

Add or 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.

patch/v2/{workspace}/template/{template_slug}/channel/{channel}/variant/{variant_id}/vendor_approval/

Path parameters

workspacestring required
template_slugstring required
channel'whatsapp' | 'sms' required
variant_idstring required

Query parameters

mode'live'

Request body

approval_status'pending' | 'sent_for_approval' | 'approved' | 'rejected' required

Current approval status.

vendor_slugstring required

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

vendor_uidstring required

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

vendor_template_namestring

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

vendor_template_idstring

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

vendor_locale_codestring

(Optional) Locale code at the vendor end.

vendor_template_category'UTILITY' | 'MARKETING' | 'AUTHENTICATION'

(Optional) Template category at the vendor end.

provider_template_idstring

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

commentstring

(Required if rejected) Reason for rejection.

Example request

{
  "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"
}

Response

Vendor approval entry updated

object required