Experiences API
Experiences are the top-level containers for all distribution types (queues, draws, auctions, etc.). Consumers interact with experiences to access products or services.Get Experience
Retrieve experience details including all associated sequences and distributions.GET /api/v1/experiences/:experienceId
Authentication
- Publishable key required
- Consumer authentication optional (for public experience details)
Path Parameters
| Parameter | Type | Description |
|---|---|---|
experienceId | string | The experience ID |
Response
Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 404 | Experience not found | The experience ID does not exist |
Enter Experience
Enter an experience and receive the experience details with current state.POST /api/v1/experiences/:experienceId/enter
Authentication
- Publishable key required
- Consumer authentication required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
experienceId | string | The experience ID |
Response
Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 401 | Authentication required | No valid consumer session |
| 404 | Experience not found | The experience ID does not exist |
Leave Experience
Leave an experience. This is typically used for cleanup or tracking purposes.DELETE /api/v1/experiences/:experienceId/leave
Authentication
- Publishable key required
- Consumer authentication required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
experienceId | string | The experience ID |
Response
Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 401 | Authentication required | No valid consumer session |