Get Preference Category
Retrieve the current preference category for a workspace
Authorizations
You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.
Path Parameters
Workspace slug (staging, production, etc.)
Query Parameters
Mode to retrieve categories. Use 'live' for active categories or 'draft' for current draft.
live, draft Response
Successfully retrieved preference category
JSON schema reference for preference category structure
"https://schema.suprsend.com/preference_category/v1/schema.json"
Array of root preference categories
Version number field as an identifier to track the version
1
Current status of the preference category
draft, active Result of validating the preference category