Skip to main content
The MCP server accepts two kinds of credential. Both go in the Authorization header, the only place the server reads them:
Each has its own scopes and companies, which you can change later.
MCP credentials work only on the MCP server, and REST API keys never work on it. Both cases get 401.

MCP keys

A key belongs to the user who created it, with its own scopes, and optionally a company limit and an expiry date.

Create a key in the app

1

Open Settings > MCP

Go to Settings > MCP and select Create key.
2

Choose what it may do

Name it after where it runs, for example Cursor on my laptop. Pick the scopes, the companies and an expiry.
3

Copy the key

It’s shown only once. If you lose it, revoke it and create another.

Create a key with the API

Send POST /personalAccessTokens, authenticated like any REST API request.
string
required
Up to 255 characters.
boolean
required
true. Sending is_api_key: true as well is refused.
string[]
default:"[\"read\", \"write\"]"
Any of read, write, publish, inbox, reply, media, settings, admin. See Permissions.
integer[]
Up to 200 companies you belong to. Leave it out for all of them.
string
A future ISO 8601 date, for example 2027-06-01T00:00:00Z. Leave it out or send null for no expiry.
integer
Only if your own plan lacks assistant access: a company whose owner’s plan has it, where you are an owner or admin.
Response (abridged)
The key is in data.token, in this response only. The full object also says where the key was created (ip, user_agent, device and more).

Use and revoke keys

Send the whole key, number and bar included:
  • List: GET /personalAccessTokens?filter[is_mcp_key]=true. last_used_at updates at most once a minute.
  • Change: PUT /personalAccessTokens/{id}. See Permissions.
  • Revoke: Revoke key in the app, or the call below. It’s immediate and permanent: requests get 401. The key stays in the list with revoked_at.
  • Expiry: after expires_at, requests get 401.
Revoke a key
Anyone with a key can act on your companies within its scopes. Give each client its own key, limit it to the companies it needs, and revoke it when you stop using that client.

Connected apps (OAuth)

Claude, ChatGPT and Claude Code do all of this for you. Read on only if you build your own client.
The server is its own OAuth 2.1 authorization server for public clients (no client secrets). It supports PKCE (S256), dynamic client registration (RFC 7591), client ID metadata documents, resource indicators (RFC 8707), the issuer in the authorization response (RFC 9207) and token revocation (RFC 7009).

Endpoints

A call without a token gets 401, with a header that points to the metadata:
From there, the client uses these endpoints in order. All are on https://api.followr.ai and need no authentication.
scopes_supported is the authoritative list of scopes on offer.

Register a client

Send the client’s metadata as JSON. The answer is 201.
Response
  • redirect_uris (required): 1 to 10 URIs, each https, http on a loopback address (localhost, 127.0.0.1, [::1]), or the cursor, vscode or vscode-insiders scheme. They must match exactly, except a loopback port.
  • grant_types and response_types, if sent, must include authorization_code and code.
  • client_name (up to 100 characters), client_uri and logo_uri (https) are optional. The consent screen shows the name as unverified.
  • Registration is rate limited per address per hour. A client that never starts an authorization may be removed after 30 days.
A client can skip registration with a client ID metadata document: a client_id that is the https URL of a JSON document (public host, 16 KB max) with the same client_id, a client_name and redirect_uris. The consent screen shows its host.

Authorize

Send the user’s browser to GET /oauth/authorize with:
string
required
code.
string
required
The registered client_id, or the URL of the metadata document.
string
required
A registered redirect URI.
string
required
Base64url SHA-256 of the code verifier, without padding.
string
required
S256.
string
Returned unchanged. Up to 4,096 characters.
string
Space-separated, for example mcp:read mcp:write. Unknown values are ignored. With none of this server’s scopes, the app asks for all of them.
string
If sent, https://api.followr.ai/mcp.
The consent screen shows the app’s name, its host (or a warning that it can’t be confirmed) and the redirect. The access level starts at the highest one requested, and the requested extras start on. The request is valid for 15 minutes, once. The user approves with their own plan’s assistant access, or as an owner or admin of the company selected in the app, if that company’s owner has it.

Exchange the code

The code is valid for 120 seconds, once. Send form-encoded parameters (JSON works too):
Response
scope is what the user granted, which can be less than requested. redirect_uri and resource are optional here, and checked if sent.

Refresh

When the access token expires (after 1 hour), the MCP server answers 401 with error="invalid_token". Refresh it:
The answer has a new access token and a new refresh token:
  • Each refresh token works once. Always store the new one.
  • A refresh token lasts 90 days.
  • Reusing a refresh token more than 60 seconds after its first use ends the connection. The user connects again.

Revoke

Send POST /oauth/revoke with token (access or refresh) and, optionally, client_id. The answer is always 200, empty. Either token ends the whole connection, like Disconnect in the app.

OAuth errors

The token, registration and revocation endpoints return JSON errors:
Last modified on December 2, 2026