Browse and search developers
REST API
REST API overview
Base URL, authentication with scoped API keys, versioning and the resources you can manage with the FormitAI REST API.
On this page
The FormitAI REST API lets your own code manage forms, questions, responses and webhooks in one workspace. Every request goes to https://api.formitai.com/v1, sends and receives JSON, and is authenticated with a workspace API key. The API is separate from the endpoints the FormitAI web app uses internally, so it stays stable while the app changes.
Authenticate
Create a key in the app under Dashboard, Settings, API keys & MCP, choose its scopes, and send it in the Authorization header on every request. Keys are secrets: keep them on your server, never in browser or mobile code.
curl https://api.formitai.com/v1/me \
-H "Authorization: Bearer fmt_live_YOUR_KEY"GET /v1/me returns the workspace and organization the key belongs to, the key’s environment and its scopes. Use it to check a new key works.
Scopes
| Scope | Allows |
|---|---|
forms:read | List and read forms, their questions and the block types. |
forms:write | Create, edit, publish, unpublish, duplicate and delete forms and questions. |
responses:read | List and read responses. |
responses:write | Delete responses. |
webhooks:read | List webhooks and their deliveries. |
webhooks:write | Create, edit, test, rotate and delete webhooks. |
Resources
| Resource | Endpoints |
|---|---|
| Account | GET /me, GET /block-types |
| Forms | GET/POST /forms, GET/PATCH/DELETE /forms/{formId}, POST /forms/{formId}/publish, /unpublish, /duplicate |
| Questions | POST /forms/{formId}/questions, PATCH/DELETE /forms/{formId}/questions/{questionId} |
| Responses | GET /forms/{formId}/responses, GET/DELETE /forms/{formId}/responses/{responseId} |
| Webhooks | GET/POST /webhooks, GET/PATCH/DELETE /webhooks/{webhookId}, /rotate-secret, /test, /deliveries |
The full reference, with every parameter and response field, is generated from the server’s own endpoint definitions. The machine-readable OpenAPI document is at https://api.formitai.com/v1/openapi.json if you want to generate a client.
Versioning
The version is in the path (/v1). Within v1, FormitAI only makes additive changes: new endpoints, new optional parameters and new response fields. Build your client to ignore fields it does not know. Removing or renaming a field would only happen in a new version.
Related
Can't find what you need?