List All Variants
Changed onRetrieve all variants across all channels for a template. Returns variant metadata and conditions; variant content is included only when include_content=true is passed.
Request
- Base URLhttps://management-api.suprsend.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Workspace slug.
Template slug.
Query parameters
Set to true to include each variant's content, errors and vendor_approvals in the response.
Response
Successfully retrieved variants
Example response
{
"results": [
{
"$schema": "https://schema.suprsend.com/template/v2/variant_schema.json",
"channel": "email",
"id": "default",
"locale": "en"
}
]
}Changes
- breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response401 - breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response404 - warning
added the new
addedenum value to the//response property for the response status - warning
added the new
deletedenum value to the//response property for the response status - warning
added the new
discardedenum value to the//response property for the response status - warning
added the new
unchangedenum value to the//response property for the response status - warning
added the new
updatedenum value to the//response property for the response status - warning
added the new
upload_failedenum value to the//response property for the response status - info
added the new optional
queryrequest parameterinclude_content
- breaking