Skip to main content
GET
Get Variant

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:
email,
sms,
whatsapp,
inbox,
androidpush,
iospush,
webpush,
slack,
ms_teams
variant_id
string
required

Variant identifier.

Response

Variant details retrieved. Includes full content and vendor_approvals objects.

$schema
string

Schema URL for variant validation.

Example:

"https://schema.suprsend.com/template/v2/variant_schema.json"

channel
string

Channel this variant belongs to.

Example:

"email"

id
string

Variant identifier.

Example:

"default"

tenant_id
string | null

Tenant this variant is scoped to, or null for default.

locale
string

Locale code.

Example:

"en"

conditions
object[]

Conditions for variant selection at send time.

hash
string

Content hash for change detection.

needs_vendor_approval
boolean

Whether this variant requires vendor approval (SMS DLT, WhatsApp).

sysgen_template_name
string | null

System-generated template name for vendor approval.

approval_status
enum<string>

Current approval status of the variant.

Available options:
auto_approved,
pending,
sent_for_approval,
approved,
rejected
discard_comment
string | null

Reason provided when a variant is discarded.

approval_at
string<date-time> | null

Timestamp when the variant was approved.

has_error
boolean

Whether the variant has validation errors.

seq_no
integer

Ordering within the channel + tenant + locale combination.

action
string | null

Action taken in the latest commit (Updated, Added, Unchanged, or null).

created_at
string<date-time>

Timestamp when the variant was created.

content
object

Channel-specific content. Structure varies by channel. Only returned in variant detail endpoint.

vendor_approvals
object[]

Vendor approval entries (WhatsApp/SMS only). Only returned in variant detail endpoint.