Architecture
Fanfare exposes two primary APIs:
Both APIs follow REST conventions and return JSON responses.
API Versioning
The current public API surface is v1. Public endpoints are served under the/api base 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
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-io/fanfare-sdk-core,@fanfare-io/fanfare-sdk-react - SolidJS:
@fanfare-io/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