Get personalizations
GET /api/v1/public/personalizations
Retrieve all personalizations (experiences) for a specific website, including their configuration, targeting rules, variants, and status information.
Use Cases
- Dashboard Overview: Retrieve all personalizations for management interface
- Performance Monitoring: Get current state and configuration of all experiences
- Bulk Operations: Fetch personalizations for batch updates or analysis
- Integration: Sync personalization data with external systems
- Reporting: Generate reports on personalization coverage and status
Notes
- All timestamp fields are in Unix timestamp format (milliseconds)
- Rules are stored as JSON strings and need to be parsed
- Priority (
prio) determines execution order when multiple personalizations could apply - Component-based personalizations have additional fields for component configuration
- The
variantsarray contains the different variations being tested
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Your API key from account settings.
Query Parameters
Section titled “Query Parameters ”Your account ID. See: https://unless.com/en/dashboard/account/settings
The website ID to retrieve personalizations for.
Responses
Section titled “ Responses ”Successful response with array of personalizations.
object
The account ID that owns this personalization.
User assigned to this personalization.
Whether the personalization has been modified.
Account ID for component-based personalizations.
Package name for component-based personalizations.
JSON string containing component configuration.
Type of component used.
Version of the component.
Timestamp when personalization was created.
Creation date timestamp.
Delay trigger option (e.g., “seconds”, “pageviews”).
Delay value for trigger timing.
URL for viewing changes diff.
Whether the personalization is disabled.
Timestamp when personalization should stop running.
Rules for excluding visitors.
Whether this personalization is exclusive.
Option for hiding the personalization.
Value for hide timing.
Whether this is a component-based personalization.
Whether this is a hidden AI component.
JavaScript trigger code.
Parsed JavaScript trigger.
Extended URL information.
Maximum value for certain triggers.
Array of tags associated with this personalization.
Priority level (higher numbers = higher priority).
Personalization recipe/template.
URL for redirect-type personalizations.
Targeting rules in JSON format.
Timestamp when personalization should start running.
Current state (e.g., “running”, “paused”, “draft”).
Target domain for template.
Target path for template.
Test mode configuration.
Timestamp of last update.
Array of personalization variants.
object
ID of the variation.
Name of the variation.
Web page path where personalization applies.
Website ID this personalization belongs to.
Example
[ { "accountId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "websiteId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "variationId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "variationName": "Homepage Hero Optimization", "state": "running", "disabled": false, "prio": 100, "rule": "{\"and\":[{\"field\":\"url\",\"operator\":\"equals\",\"value\":\"/\"}]}", "startDate": 1640995200000, "endDate": null, "createdAt": 1640995200000, "updatedDate": 1641081600000, "webPagePath": "/", "personalizationTags": [ "homepage", "hero", "conversion" ], "testMode": "live", "exclusive": false, "isComponent": false, "variants": [ { "id": "control", "name": "Control", "weight": 50 }, { "id": "variation-1", "name": "New Hero Design", "weight": 50 } ] }]Bad request - invalid parameters.
Unauthorized - invalid API key.
Forbidden - insufficient permissions.
Not found - invalid account or website ID.