API Overview
The Fanfare API provides programmatic access to the Fanfare platform, enabling you to build integrations for virtual waiting rooms, queues, auctions, draws, and appointment scheduling.Architecture
Fanfare exposes two primary APIs:| API | Purpose | Base URL |
|---|---|---|
| Consumer API | End-user facing operations (joining queues, placing bids, checking status) | https://consumer.fanfare.io/api/v1 |
| Admin API | Management operations (creating experiences, managing audiences, analytics) | https://admin.fanfare.io/api/v1 |
API Versioning
The current API version is v1. The version is included in the URL path:Version Lifecycle
- Current:
v1- Full support, actively maintained - Deprecated: Versions are deprecated with 12 months notice before removal
- Sunset: Deprecated versions are eventually removed
Request Format
Headers
All API requests should include:Request Body
Request bodies should be JSON-encoded:Response Format
Success Responses
Successful responses return the appropriate HTTP status code with a JSON body:List Responses
List endpoints return arrays, often with pagination metadata:Error Responses
Errors return appropriate HTTP status codes with error details:HTTP Status Codes
| Code | Description |
|---|---|
200 | Success - Request completed successfully |
201 | Created - Resource created successfully |
204 | No Content - Request completed, no response body |
400 | Bad Request - Invalid request parameters |
401 | Unauthorized - Missing or invalid authentication |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource does not exist |
409 | Conflict - Resource state conflict |
423 | Locked - Resource not yet available (e.g., queue not open) |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Server-side error |
Multi-Tenancy
Fanfare is a multi-tenant platform. All API requests are scoped to your organization based on your API credentials. You cannot access resources belonging to other organizations.Timestamps
All timestamps in the API are in ISO 8601 format with UTC timezone:IDs
Fanfare uses UUIDv7 identifiers for all resources. These IDs are:- Globally unique
- Time-ordered (lexicographically sortable)
- URL-safe
01HXYZ123456789ABCDEFGHIJ
SDKs
Official SDKs are available for common platforms:- JavaScript/TypeScript:
@fanfare/sdk-core,@fanfare/sdk-react - SolidJS:
@fanfare/sdk-solid
Next Steps
- Authentication - Learn about API authentication methods
- Error Handling - Understand error response formats
- Rate Limiting - Review rate limits and quotas
- Consumer API - Explore consumer-facing endpoints
- Admin API - Explore management endpoints