Contents
OAuth & OpenID Connect API
Authorization server for apps and AI assistants that act on behalf of a Nucleo user.
Nucleo Core is the identity provider of the platform: every person signs in once at
auth.nucleoplatform.com and every module (Brain, Catalog, Commerce, Intelligence) trusts the
access tokens it issues.
External clients — MCP connectors in Claude or ChatGPT, partner tools, local scripts — use the
standard OAuth 2.0 authorization code flow with PKCE (S256). They can discover the endpoints
from the metadata documents (RFC 8414 / OpenID Connect Discovery) and register themselves with
Dynamic Client Registration (RFC 7591), without asking Nucleo for credentials. With the scope
openid the code exchange also returns a signed ID token (OpenID Connect Core).
Every token belongs to a person: there is no server-to-server (client_credentials) grant. A
partner integration acts on behalf of the user who connected it.
Tokens issued to self-registered clients always carry the scope nucleo.ai_tools: they are valid
for the Nucleo AI tools (the MCP connector and the modules' /api/v1/ai-tools), for userinfo,
for the AI company context (GET /api/mcp/context, PUT /api/mcp/company) and for revoking
themselves. Elsewhere they are refused: the other endpoints of auth.nucleoplatform.com answer
403 insufficient_scope, the modules' other APIs answer 401.
Self-registered clients see the consent screen the first time, and again whenever the person has no valid token of that client covering the requested scopes; send prompt=consent to always show it.
Authentication
nucleoOAuthOAuth 2.0 · authorizationCodeAuthorization code with PKCE (S256). Register your client at
/oauth/register(or ask Nucleo for a pre-registered one). Self-registered clients' tokens always carrynucleo.ai_tools.authorize: https://auth.nucleoplatform.com/oauth/authorizetoken: https://auth.nucleoplatform.com/oauth/tokenscopes: openid, profile, email, offline_access, nucleo.ai_toolsbearerTokenHTTP bearer (JWT)Authorization: Bearer <access_token>obtained from/oauth/token.
- Base URL
- https://auth.nucleoplatform.comProduction issuer (`iss`). All endpoints below are relative to it.
- Who calls it
- AI assistants, Partners
- Endpoints
- 10
- OpenAPI 3.1 specification
- oauth.yaml
Resources
Each resource has its own page with every endpoint, parameter and example.
Machine-readable metadata. Start here: a compliant client needs nothing else than the issuer URL
https://auth.nucleoplatform.com.
Dynamic Client Registration (RFC 7591). Anonymous by design (as required by the MCP
authorization spec): the guard rails are on the metadata — https (or loopback) redirect URIs,
authorization code grant only, a fixed set of scopes. Self-registered clients are always
treated as third-party: the user approves them on a consent screen. Self-registered clients see the consent screen the first time, and again whenever the person has no valid token of that client covering the requested scopes; send prompt=consent to always show it.
Browser-facing part of the authorization code flow: sign-in, consent, redirect back with a code.
Token endpoint and token revocation. Access tokens and ID tokens are RS256 JWTs signed with the key
published in the JWKS; access tokens last 8 hours, ID tokens 1 hour. Refresh tokens last
30 days. Access token claims: aud (your client_id), jti, iat, nbf, exp, sub,
scopes, org_public_id (the public id of the company passed to /oauth/authorize, or null)
and org_id (the same company as a numeric id, deprecated); userinfo returns the same values.
The signed-in person, their companies and module access (OpenID Connect UserInfo).
Public, unauthenticated branding of a company (name, logos, favicons), used by Nucleo's public pages (for example booking pages) that have no signed-in user but must carry the company's brand.