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
  1. Authenticate
  2. Scopes
  3. Resources
  4. Versioning

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

ScopeAllows
forms:readList and read forms, their questions and the block types.
forms:writeCreate, edit, publish, unpublish, duplicate and delete forms and questions.
responses:readList and read responses.
responses:writeDelete responses.
webhooks:readList webhooks and their deliveries.
webhooks:writeCreate, edit, test, rotate and delete webhooks.

Resources

ResourceEndpoints
AccountGET /me, GET /block-types
FormsGET/POST /forms, GET/PATCH/DELETE /forms/{formId}, POST /forms/{formId}/publish, /unpublish, /duplicate
QuestionsPOST /forms/{formId}/questions, PATCH/DELETE /forms/{formId}/questions/{questionId}
ResponsesGET /forms/{formId}/responses, GET/DELETE /forms/{formId}/responses/{responseId}
WebhooksGET/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.

Ready?

Build your first AI form in minutes.

No credit card. Generate from a prompt, enable follow-ups, and publish a link or embed the same day.