Authentication

Sign in with OAuth from your assistant. For scripts or clients without OAuth, use an API key.

Both use Authorization: Bearer <credential>.

CredentialPrefixUse it forActs as
OAuth 2.1 access tokenpl_at_Claude, Cursor, VS Code and any client that follows the MCP specYou: the workspaces you authorized and your role
API keypl_key_Scripts, CI, and clients without OAuthThe key's workspace, with access to its modules

Tools use the same REST endpoints and follow their limits, validation and errors. If your client supports OAuth, you can sign in without copying an API key.

OAuth

  1. Add the URL without an Authorization header. See Install.

  2. Authorize in your browser. The client opens Platic's authorization window. The request is valid for 30 minutes; if it expires, reconnect from the client.

  3. Sign in or create your account, and pick workspaces. With I have an account, use your dashboard account. With I'm new, sign up with Google or email (with email you get a 6-digit code to type in the same window) and name your workspace. Then choose which workspaces this connection can reach. The client stores the tokens and refreshes them.

Scopes

ScopeWhat it allows
platica:readReads. The minimum.
platica:writeCreating, updating, sending and deleting. Without it, write tools return 403 with an insufficient_scope challenge so the client can ask again.
offline_accessA refresh token, so the client renews access without asking you again.

If the client sends no scope, Platic grants platica:read and platica:write.

Role permissions

Scopes allow reads or writes; your role determines which modules you can access. Connecting Claude does not expand your permissions. For example, if you cannot manage integrations, connect_mcp_server returns 403. Permissions are checked on every call: removing you from a workspace cuts the connection's access on the next one.

Workspaces

Choose workspaces when authorizing. If you created your account while connecting, your new workspace arrives preselected. Ask the assistant to call list_workspaces to get their ids.

CredentialHow the workspace is chosen
OAuth or key with one workspaceInferred. Do not pass workspace.
OAuth or key with severalSet workspace: "<id>" when the operation requires it, such as get_client and writes that need a specific workspace. If missing, you receive 400 with the available ids. Some reads combine workspaces; send_message and send_template_message can resolve it from the channel and other send data.

workspace is the same value as ?workspace= in the REST API.

Tokens

TokenPrefixLifetime
Accesspl_at_1 hour
Refreshpl_rt_60 days; each use extends it

The client refreshes and rotates tokens. Avoid pasting them into the configuration manually: once they expire, calls receive 401.

The first call without a credential returns 401 with a WWW-Authenticate header. The client uses it to discover Platic and register itself. You don't need to register an OAuth app; the client's client_id only gains access when a person authorizes the connection.

Discovery follows RFC 9728 and RFC 8414:

GET https://api.platic.ai/.well-known/oauth-protected-resource
GET https://api.platic.ai/.well-known/oauth-protected-resource/mcp
GET https://api.platic.ai/.well-known/oauth-authorization-server
GET https://api.platic.ai/.well-known/oauth-authorization-server/mcp
EndpointUse
GET /oauth/authorizeAuthorization Code with PKCE S256. Only response_type=code.
POST /oauth/tokenauthorization_code and refresh_token. Form or JSON body.
POST /oauth/registerDynamic Client Registration (RFC 7591).
POST /oauth/revokeRevocation (RFC 7009). Answers 200 even if the token is unknown.

The resource is https://api.platic.ai/mcp. Redirect URIs may be https, loopback (127.0.0.1, localhost, [::1]) or a private scheme such as cursor://. A public http URI or one with a fragment is rejected. The unauthenticated challenge looks like this:

WWW-Authenticate: Bearer resource_metadata="https://api.platic.ai/.well-known/oauth-protected-resource/mcp", scope="platica:read platica:write"

API key

Create the key in Settings → API Keys and give it a name, such as cursor-personal. Copy it when shown: you can only see its value once. Its format is pl_key_KEY_ID_SECRET.

Send it as Authorization: Bearer pl_key_…. See the Install examples.

A key covers the workspace it was created for, with access to every module. It does not inherit the role of the person who made it, and it does not rotate by itself.

Revoke access

  • OAuth: remove the server in your client. Clients that follow the spec call /oauth/revoke. Leaving a workspace in Platic cuts it on the next request.
  • API key: revoke it under Settings → API Keys. It stops working immediately.
  • Too much access: a read-only token cannot write. Re-authorize and decline platica:write.