Authentication
Klaro has no general-purpose API keys and no public REST API. The one way a third-party tool can act for a Klaro user today is Klaro MCP, and it uses Sign in with Klaro: standard OAuth 2.1 with PKCE, as the MCP authorisation specification describes. Each person signs in with their own Klaro account and approves the tool.
Klaro MCP is in preview and not yet generally available. Klaro must enable it for your organisation. Until it is enabled, Klaro refuses outside AI tools for that organisation with access_denied.
All requests must be made over HTTPS. A call without a valid token fails with 401 Unauthorized and a WWW-Authenticate header that tells the client where to sign in.
Bearer tokens
Send the access token in the Authorization header as Bearer <token>. An access token is valid for 15 minutes and is bound to one Klaro MCP server: a token issued for Calendar does not work on Chat. A client that wants several Klaro apps needs one grant for each server.
Sign-in flow
The client calls a Klaro MCP server without a token and receives 401 with a resource_metadata pointer. It reads that protected-resource metadata document (/.well-known/oauth-protected-resource, RFC 9728), which names the authorisation server and the scope. It then reads the authorisation server metadata (/.well-known/oauth-authorization-server or /.well-known/openid-configuration).
The client registers itself, preferably with a Client ID Metadata Document, or with dynamic client registration (RFC 7591). Redirect addresses must use https or a loopback http address. It then sends the person to sign in with response_type=code, PKCE with S256 (plain is refused), the exact server address as resource, and the server’s scope. The person chooses a workspace, reviews the Klaro apps the tool can use, and selects Allow or Deny.
The client exchanges the code for an access token and a refresh token. Each refresh returns a new refresh token; reusing an old one revokes the whole grant, and a refresh token unused for 30 days stops working. Tokens can be revoked at the revocation endpoint named in the metadata, and the person can disconnect the tool from Connected AI tools in their Klaro settings.
Scopes
Each Klaro MCP server has one scope: klaro.calendar, klaro.chat, klaro.email, klaro.drive, klaro.calls and klaro.people. The system server, which only reports who a connection acts for, accepts any of them. openid, email and profile are also available. A refresh cannot add scopes the person did not approve. Tools that change something still ask the person to confirm a preview, whatever the scope.
Errors
Sign-in and token errors use the standard OAuth fields error and error_description, with codes such as invalid_request, invalid_client, invalid_grant, invalid_scope and invalid_target. A Klaro MCP server refuses a token in its WWW-Authenticate header with 401 invalid_token, or 403 insufficient_scope or access_denied. See the Errors page for what each one means.