Organizations API
Organizations represent multi-tenant accounts in the Fanfare platform. These endpoints allow you to manage organization settings and configuration.Get Current Organization
Get the current organization details.GET /api/v1/organizations/current
Authentication
- Secret key required
Response
Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 404 | Organization not found | Organization does not exist |
Update Organization
Update organization details.PUT /api/v1/organizations
Authentication
- Secret key required
Request Body
Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 400 | Slug already taken | Slug is used by another org |
| 400 | Invalid slug format | Slug contains invalid chars |
| 400 | Validation failed | Invalid request data |
Check Slug Availability
Check if an organization slug is available.GET /api/v1/organizations/slug/availability
Authentication
- Optional (if authenticated, excludes current org from check)
Query Parameters
| Parameter | Type | Description |
|---|---|---|
slug | string | The slug to check |
Response
Example
Slug Requirements
Organization slugs must follow these rules:| Rule | Description |
|---|---|
| Length | 3-50 characters |
| Characters | Lowercase letters, numbers, hyphens |
| Start/End | Must start and end with letter or number |
| No consecutive hyphens | Cannot contain -- |
| Reserved words | Cannot use reserved system slugs |
Reserved Slugs
The following slugs are reserved and cannot be used:admin,api,app,authdashboard,settings,accountfanfare,waitify,supportwww,mail,ftp,cdn
Organization Settings
Organization settings are managed through a separate Settings API. Common settings include:Notification Settings
Configure email and SMS notifications:Integration Settings
Configure third-party integrations:Time Zone Support
Fanfare supports all IANA time zones. Common examples:| Time Zone | Description |
|---|---|
America/New_York | Eastern Time (US) |
America/Los_Angeles | Pacific Time (US) |
America/Chicago | Central Time (US) |
Europe/London | British Time |
Europe/Paris | Central European |
Asia/Tokyo | Japan Standard Time |
Australia/Sydney | Australian Eastern |
UTC | Coordinated UTC |
- Scheduled experience open/close times
- Analytics reporting periods
- Notification scheduling
- Dashboard displays
Currency Support
Fanfare supports all ISO 4217 currency codes:| Code | Currency |
|---|---|
USD | US Dollar |
EUR | Euro |
GBP | British Pound |
CAD | Canadian Dollar |
AUD | Australian Dollar |
JPY | Japanese Yen |
CHF | Swiss Franc |
- Product pricing display
- Order totals and revenue reporting
- Analytics currency conversions
SDK Usage
Multi-Tenancy
Fanfare is a multi-tenant platform where each organization has completely isolated data:| Resource | Isolation Level |
|---|---|
| Consumers | Per organization |
| Experiences | Per organization |
| Products | Per organization |
| Orders | Per organization |
| Audiences | Per organization |
| API Keys | Per organization |
| Settings | Per organization |
| Analytics | Per organization |
Organization IDs
All API responses includeorganizationId to identify the owning organization. This ID is automatically scoped based on your API key.