Retrieve the current preference category for a workspace
You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.
Workspace slug (staging, production, etc.)
Mode to retrieve categories. Use 'live' for active categories or 'draft' for current draft.
live, draft 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