Get Personalizations

REST reference for POST /experiments/personalization — read-only hydration of a visitor's active personalization assignments. Never records an impression.

Return the active personalization assignments for a visitor. Read-only — never records an impression and never enqueues an event. Personalizations are populated by Ours Privacy's event-driven rule engine; the endpoint hydrates each entry with the experiment and variant metadata before returning.

See the Server-Side Experimentation guide.

POST
/experiments/personalization
*object

Request Body

application/json

Token + visitor id.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.oursprivacy.com/api/v1/experiments/personalization" \  -H "Content-Type: application/json" \  -d '{    "token": "string",    "visitor_id": "string"  }'
{
  "success": true,
  "personalizations": [
    {
      "experiment_id": "string",
      "experiment_key": "string",
      "experiment_name": "string",
      "variant_id": "string",
      "variant_name": "string",
      "assigned_at": 0
    }
  ]
}
{
  "success": false
}
{
  "success": false
}
{
  "success": false
}
{
  "success": false
}

How is this guide?