Authentication
Sign in with OAuth from your assistant. For scripts or clients without OAuth, use an API key.
Both use Authorization: Bearer <credential>.
| Credential | Prefix | Use it for | Acts as |
|---|---|---|---|
| OAuth 2.1 access token | pl_at_ | Claude, Cursor, VS Code and any client that follows the MCP spec | You: the workspaces you authorized and your role |
| API key | pl_key_ | Scripts, CI, and clients without OAuth | The 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
Add the URL without an
Authorizationheader. See Install.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.
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
| Scope | What it allows |
|---|---|
platica:read | Reads. The minimum. |
platica:write | Creating, updating, sending and deleting. Without it, write tools return 403 with an insufficient_scope challenge so the client can ask again. |
offline_access | A 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.
| Credential | How the workspace is chosen |
|---|---|
| OAuth or key with one workspace | Inferred. Do not pass workspace. |
| OAuth or key with several | Set 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
| Token | Prefix | Lifetime |
|---|---|---|
| Access | pl_at_ | 1 hour |
| Refresh | pl_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 | Endpoint | Use |
|---|---|
GET /oauth/authorize | Authorization Code with PKCE S256. Only response_type=code. |
POST /oauth/token | authorization_code and refresh_token. Form or JSON body. |
POST /oauth/register | Dynamic Client Registration (RFC 7591). |
POST /oauth/revoke | Revocation (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.
Creating and revoking keys is not an MCP tool, so an assistant cannot turn an OAuth session into a permanent key.
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.