Auth and Account

These endpoints sign users in to Silicofeller Quantum Studio, manage the account profile and password, issue personal MCP tokens for Claude, and run the OAuth 2.1 authorization server that Claude connectors use. The token types, session rules and MCP allow-list are described on API Reference; this page lists the endpoints and their payloads.

Sign-in and registration

Method

Path

Purpose

Roles/plan

POST

/api/auth/register/send-otp

Email a registration code. Body: email, password.

No token

POST

/api/auth/register

Create an account: name, email, password, organization (default Independent), otp. Returns a token (status 201).

No token

POST

/api/auth/token

Sign in with email and password (form body). Returns a token.

No token

POST

/api/auth/google

Sign in with a Google ID token: {"token": "...", "terminate_other_sessions": false}.

No token

GET

/api/auth/github/authorize, /api/auth/github/callback

GitHub sign-in redirect flow.

No token

POST

/api/auth/logout

End the current session.

Signed in

POST

/api/auth/suspension-appeal

Appeal an account suspension: email, message.

No token

Codes sent by email (registration, email change, password change, password reset) expire after 15 minutes.

Sign-in response (TokenResponse):

{
  "access_token": "<jwt>",
  "token_type": "bearer",
  "user": {
    "id": "...",
    "name": "A. Engineer",
    "email": "engineer@example.com",
    "role": "engineer",
    "organization": "Independent",
    "initials": "AE",
    "plan": "pro",
    "has_password": true,
    "login_count": 12,
    "profile_settings": {},
    "profile_photo_url": "",
    "phone_number": "",
    "position": "",
    "needs_onboarding": false
  }
}

role is engineer, org_manager, admin or support_admin. plan is the account’s own plan (free, basic or pro).

Profile and password

Method

Path

Purpose

Roles/plan

GET

/api/auth/me

The signed-in user (same shape as user above).

Signed in; MCP tokens allowed

PATCH

/api/auth/me

Update name, organization, profile_settings, profile_photo_url or email. Changing email needs otp.

Signed in

POST

/api/auth/me/email/send-otp

Send a code to the new address: {"email": "..."}.

Signed in

POST

/api/auth/me/onboarding

Save the first sign-in form: name, organization, phone_number, position.

Signed in

POST

/api/auth/request-password-change

Email a code for a password change. Body: old_password.

Signed in

POST

/api/auth/change-password

Set a new password: otp, new_password.

Signed in

POST

/api/auth/forgot-password

Email a reset code: {"email": "..."}.

No token

POST

/api/auth/reset-password

Reset the password: email, otp, new_password.

No token

POST

/api/auth/template-access

Whether the user may open a design template (template_name). Returns allowed, allowed_template_name and reason.

Signed in; limits apply on Free

Changing or resetting the password revokes every MCP token, OAuth token and unused authorization code the user holds.

MCP tokens

Personal MCP tokens are managed with a session JWT only. An MCP token calling these paths (other than whoami) receives 403 MCP_TOKEN_NOT_ALLOWED.

Method

Path

Purpose

Roles/plan

GET

/api/mcp/status

Eligibility, server URL and limits.

Signed in

GET

/api/mcp/tokens

Your personal tokens (never the secret).

Signed in

POST

/api/mcp/tokens

Create a token (status 201). The secret is returned once.

Signed in; MCP-eligible

POST

/api/mcp/tokens/{token_id}/renew

Extend a token by the default validity from now. 409 MCP_TOKEN_REVOKED for a revoked token.

Signed in; MCP-eligible

DELETE

/api/mcp/tokens/{token_id}

Revoke a token (status 204).

Signed in

GET

/api/mcp/connections

Connected OAuth apps (Claude connectors): client_id, client_name, connected_at, last_used_at, scope.

Signed in

DELETE

/api/mcp/connections/{client_id}

Disconnect an app and revoke its tokens (status 204).

Signed in

GET

/api/mcp/whoami

Who a token belongs to. Accepts a session JWT or an MCP token.

Signed in; MCP tokens allowed

GET /api/mcp/status:

{
  "eligible": true,
  "plan": "pro",
  "reason": null,
  "server_url": "https://silicofeller.com/mcp",
  "limits": {"per_minute": 60, "per_day": 2000},
  "max_tokens": 10,
  "default_expiry_days": 90
}

Create a token. name is 1 to 80 characters; expires_in_days is 1 to 365 and defaults to 90:

{"name": "Claude Code on workstation", "expires_in_days": 90}
{
  "id": "...",
  "name": "Claude Code on workstation",
  "prefix": "sfmcp_...",
  "created_at": "2026-11-14T11:02:00.000000Z",
  "last_used_at": null,
  "expires_at": "2027-02-12T11:02:00.000000Z",
  "revoked_at": null,
  "status": "active",
  "token": "sfmcp_..."
}

Store token immediately; only prefix (the first 12 characters) is shown later. status is active, expired or revoked. A user may hold at most 10 active personal tokens; creating or reviving one past that returns 409 MCP_TOKEN_LIMIT. An ineligible user receives 403 MCP_PLAN_REQUIRED.

GET /api/mcp/whoami with an MCP token:

{
  "id": "...",
  "name": "A. Engineer",
  "email": "engineer@example.com",
  "plan": "pro",
  "auth": "mcp_token",
  "token_name": "Claude Code on workstation"
}

With an OAuth access token the response adds "token_kind": "oauth" and client_id. With a session JWT, auth is session.

OAuth 2.1 authorization server

Method

Path

Purpose

Roles/plan

GET

/.well-known/oauth-authorization-server (also /api/oauth/metadata)

RFC 8414 authorization server metadata.

No token

GET

/.well-known/openid-configuration

Answers that OpenID Connect discovery is not supported.

No token

POST

/api/oauth/register

RFC 7591 dynamic client registration (status 201).

No token; rate limited per IP

GET

/api/oauth/authorize/validate

Pre-flight check for the consent page.

No token

POST

/api/oauth/authorize/decision

Approve or deny on the consent page.

Session JWT

POST

/api/oauth/token

Exchange an authorization code, or refresh.

Client credentials

POST

/api/oauth/revoke

RFC 7009 token revocation.

Client credentials

POST

/api/oauth/introspect

RFC 7662 introspection, for the MCP server.

Shared secret

Client registration accepts the authorization_code and refresh_token grant types (authorization_code is required), the none and client_secret_post token endpoint authentication methods, and at most 10 redirect URIs. The authorization request must use PKCE with code_challenge_method=S256. The only scope is mcp. Token endpoint errors use the standard OAuth error and error_description fields.

A connector that discovers the MCP server needs no manual setup: point Claude at https://silicofeller.com/mcp and it registers, sends the user to the consent page and exchanges the code.

See also

Workspaces and Collaboration for organizations, teams and invitations, and Billing and Plans for plans.