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
SendPOST /personalAccessTokens, authenticated like any REST API request.
Any of
read, write, publish, inbox, reply, media, settings, admin. See Permissions.A future ISO 8601 date, for example
2027-06-01T00:00:00Z. Leave it out or send null for no expiry.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)
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_atupdates 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 withrevoked_at. - Expiry: after
expires_at, requests get401.
Revoke a key
Connected apps (OAuth)
Claude, ChatGPT and Claude Code do all of this for you. Read on only if you build your own client.
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 gets401, with a header that points to the metadata:
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 is201.
Response
redirect_uris(required): 1 to 10 URIs, eachhttps,httpon a loopback address (localhost,127.0.0.1,[::1]), or thecursor,vscodeorvscode-insidersscheme. They must match exactly, except a loopback port.grant_typesandresponse_types, if sent, must includeauthorization_codeandcode.client_name(up to 100 characters),client_uriandlogo_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.
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 toGET /oauth/authorize with:
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.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 answers401 with error="invalid_token". Refresh it:
- 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
SendPOST /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.
