Experiences API
Experiences are the top-level containers for distribution flows. Each experience can contain multiple sequences with different distribution types.Create Experience
Create a new experience.POST /api/v1/experiences
Authentication
- Secret key required
Request Body
Response
Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 400 | Validation failed | Invalid request data |
| 401 | Authentication required | Missing or invalid authentication |
List Experiences
List all experiences for the organization.GET /api/v1/experiences
Authentication
- Secret key required
Query Parameters
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated relations to include (sequences, distributions) |
Response
Returns an array ofExperience objects.
Example
Get Experience
Get a single experience by ID.GET /api/v1/experiences/:id
Authentication
- Secret key required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The experience ID |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
include | string | Comma-separated relations to include |
Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 404 | Experience not found | Experience ID does not exist |
Update Experience
Update an existing experience.PUT /api/v1/experiences/:id
Authentication
- Secret key required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The experience ID |
Request Body
Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 400 | Validation failed | Invalid request data |
| 404 | Experience not found | Experience ID does not exist |
Delete Experience
Delete an experience.DELETE /api/v1/experiences/:id
Authentication
- Secret key required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The experience ID |
Example
Response
Returns the deleted experience.Error Responses
| Status | Error | Description |
|---|---|---|
| 404 | Experience not found | Experience ID does not exist |
| 409 | Cannot delete active experience | Experience has active consumers |
Duplicate Experience
Create a copy of an experience with all its sequences and distributions.POST /api/v1/experiences/:id/duplicate
Authentication
- Secret key required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The experience ID to duplicate |
Request Body
Example
Experience Theme
The theme object controls visual appearance:Example Theme
Experience I18n
Internationalization settings:Example I18n
Experience Status
| Status | Description |
|---|---|
draft | Experience created but not scheduled |
scheduled | Experience has future open date |
active | Experience is currently open |
completed | Experience has closed |