Browse and search developers

Get started

Workspace API keys

Create, store, rotate and revoke FormitAI workspace API keys. Keys authenticate the MCP endpoint and act with their creator’s workspace role.

On this page
  1. Key format
  2. Create a key
  3. What a key can do
  4. Where to put a key
  5. Rotate a key
  6. Revoke a key

A workspace API key is a long-lived secret that lets a program act in one FormitAI workspace without a browser sign-in. Keys authenticate the REST API and the MCP endpoint. On the REST API they are the only credential; for MCP they are the fallback for clients that cannot do OAuth and for headless agents and scripts.

Key format

Keys start with fmt_live_ or fmt_test_, followed by a 12-character public identifier, an underscore and a random secret, for example fmt_live_YOUR_KEY. FormitAI stores the identifier in clear text so it can find the key, plus an Argon2 hash of the full token. It never stores the plaintext, so a lost key cannot be recovered. Create a new one instead.

Create a key

  1. Open Dashboard, Settings, API keys & MCP in the workspace the key should act in.
  2. Under Workspace keys, type a name that says where the key will be used (for example "Cursor laptop" or "CI agent"), up to 80 characters, then select Create key.
  3. Copy the secret right away. It is shown once and cannot be shown again. Select I’ve copied it when you are done.
  4. Paste the key into your MCP client config or your secret store. The Connect an MCP client card fills the new key into the Cursor and Claude snippets for you.

Only workspace Owners and Admins can create keys, because creating a key requires the workspace.settings.write permission. A workspace can have up to 20 active keys. Revoke unused keys to make room.

What a key can do

A key is tied to the workspace it was created in and to the person who created it. On the REST API a key also carries scopes (forms:read, forms:write, responses:read, responses:write, webhooks:read, webhooks:write), chosen when it is created; keys created before scopes existed have all of them. Every REST call and MCP tool call is also checked against the creator’s current role in that workspace, so a key can never do more than its creator. If the creator leaves the workspace or their account is deleted, the key stops working. IDs from other workspaces resolve to "not found".

Creator’s workspace roleRead formsCreate and edit formsPublish and unpublish
OwnerYesYesYes
AdminYesYesYes
MemberYesYesNo
ViewerYesNoNo

Plan limits still apply. Paid blocks can be added to a draft, but publish_form fails if the organization’s plan does not cover every paid feature on the form. Call check_workspace_permission or validate_publish to find out before you try.

Where to put a key

  • In an MCP client config on your own machine, as an Authorization: Bearer header. Keep that file out of version control. For a shared project config, prefer the OAuth snippet, which contains no secret.
  • In an environment variable or secret manager for server-side agents and CI jobs, read at runtime.
  • Never in browser JavaScript, mobile app bundles, public repositories, form embed code or URLs. Anyone who has the key can act as its creator in that workspace.
export FORMIT_API_KEY="fmt_live_YOUR_KEY"

curl -sS https://api.formitai.com/api/v1/mcp \
  -H "Authorization: Bearer $FORMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_org_plan_summary","arguments":{}}}'

Rotate a key

There is no in-place rotate action. To rotate, create a new key, update every client that uses the old one, check that they work, then revoke the old key. Rotate when a teammate who had access to the secret leaves, when a key may have been exposed, and on whatever schedule your security policy sets.

Revoke a key

In the Workspace keys list, select the trash icon next to the key and confirm Revoke. The key stops working on the next request: the endpoint answers 401 and MCP clients using it stop working until you give them a new key. Revoked keys cannot be restored.

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.