The Formbricks API allows you to programmatically manage surveys, responses, contacts, and webhooks. It’s organized around REST principles with predictable resource-oriented URLs and standard HTTP response codes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/formbricks/formbricks/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All API requests should be made to:API Versions
Formbricks provides two API versions:- v1 - Management API and Client API (
/api/v1/) - v2 - Enhanced Management API with improved features (
/api/v2/)
API Types
Management API
Use the Management API to manage your Formbricks resources:- Create, read, update, and delete surveys
- Retrieve and manage responses
- Manage contacts and contact attributes
- Configure webhooks
- Access action classes
/api/v1/management/ or /api/v2/management/
Client API
Use the Client API for client-side operations:- Submit survey responses
- Track survey displays
- Manage user identification
- Store client-side data
/api/v1/client/{environmentId}/ or /api/v2/client/{environmentId}/
Request Format
All POST, PUT, and PATCH requests should use JSON in the request body:Content-Type header to application/json.
Response Format
All API responses are returned in JSON format:HTTP Status Codes
The API uses standard HTTP status codes:| Status Code | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Feature not available |
404 | Not Found - Resource doesn’t exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |
Error Responses
Error responses include a message and optional details:CORS Support
The Client API supports CORS for browser-based applications. PreflightOPTIONS requests are cached for 1 hour.
Next Steps
Authentication
Learn how to authenticate API requests
Rate Limits
Understand API rate limiting
Surveys
Manage your surveys
Responses
Retrieve survey responses