API Reference
Complete REST API documentation for the Fanbeam platform
The Fanbeam API provides a RESTful interface for managing posts, media, channels, and analytics. All API requests require authentication via API keys.
Base URL
Production: https://fanbeam.app/api
Development: https://development.fanbeam.app/api
Local: http://local.fanbeam.app:3000/apiAuthentication
All API requests require authentication using an API key in the X-API-Key header:
curl -H "X-API-Key: your-api-key" https://fanbeam.app/api/postsLearn more about authentication →
OpenAPI Specification
The complete API specification is available in OpenAPI 3.0 format:
- OpenAPI Spec:
/api/openapi.json - Interactive Docs: Use the OpenAPI spec with tools like Swagger UI or Postman
Endpoints
Posts
Manage your social media posts:
GET /posts- List postsGET /posts/:id- Get post detailsPOST /posts- Create a new postPUT /posts/:id- Update a postDELETE /posts/:id- Delete a post
Media
Upload and manage media files:
POST /media/upload/initialize- Initialize uploadPOST /media/upload/file- Upload file chunkPOST /media/upload/finalize- Finalize uploadGET /media/:id- Get media metadataDELETE /media/:id- Delete media
Channels
Manage connected social media channels:
GET /channels- List channelsGET /channels/:id- Get channel detailsDELETE /channels/:id- Disconnect channel
Rate Limits
API requests are rate-limited to ensure fair usage:
- Standard: 100 requests per minute per API key
- Burst: Up to 200 requests in a short burst
Learn more about rate limits →
Webhooks
Receive real-time notifications about events:
- Post published
- Post failed
- Channel disconnected
- Analytics updated
SDK
For TypeScript/JavaScript applications, use our official SDK:
npm install fanbeam