OAuth and OIDC endpoints
The endpoints your app signs people in with, from authorize and token exchange to refresh, revocation, introspection and userinfo, with every parameter and response.
On this page
These are the endpoints your app uses to sign someone in and keep them signed in: start the sign-in, exchange the code for tokens, refresh, check a token and revoke it. They are standard OAuth 2.0 and OpenID Connect, so any OIDC library can read the discovery document and find the endpoints and supported options on its own.
For a walkthrough, start with Add sign-in to your app and Tokens. Tokens and sessions explains how long each token lives and how it behaves.
Here your server exchanges the code that came back to your redirect URI:
curl -s -X POST "$ACCOUNTS_URL/v1/oauth/token" -u "$APP_ID:$APP_SECRET" \
-d grant_type=authorization_code \
-d code="$CODE" \
--data-urlencode redirect_uri="http://127.0.0.1:8593/briefcase/callback" \
-d code_verifier="$CODE_VERIFIER"{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRldi0xIn0.eyJpc3Mi…",
"token_type": "Bearer",
"expires_in": 1800,
"refresh_token": "sar_6L-L2WsKOKHtl0b3Fb56ogKHTklLnY7bRDm0s_2ZSS4",
"refresh_token_expires_at": "2029-03-25T02:33:02.302Z",
"scope": "profile email timezone openid",
"id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRldi0xIn0.eyJpc3Mi…",
"membership_id": "briefcase:4143123f-b494-481c-adbf-c14b14cfccc0",
"account": {
"uuid": "4143123f-b494-481c-adbf-c14b14cfccc0",
"membership_id": "briefcase:4143123f-b494-481c-adbf-c14b14cfccc0",
"kind": "carbon",
"id": "c:ada",
"display_name": "Ada Lovelace",
"pfp_url": "https://iris.teamofsilicons.com/pfp/carbon?id=4143123f-b494-481c-adbf-c14b14cfccc0",
"email": "ada@example.test",
"email_verified": true,
"timezone": "Asia/Kolkata",
"updated_at": "2026-10-07T02:32:51.018Z",
"version": 1
}
}Store account.uuid (or membership_id) as the account's key in your app. The id (c:ada)
is for showing, and it can change.
GET /authorize
Our hosted sign-in page, on the account site. Send the browser here and it comes back to your
redirect_uri. This is a page, not a JSON endpoint: the page checks your request with
POST /v1/flows (Hosted sign-in).
| Parameter | Required | Meaning |
|---|---|---|
app_id | yes | your app id (client_id is accepted as an alias; if both are sent they must agree) |
redirect_uri | yes | must equal one of the app's redirect_uris exactly, after trimming. http://localhost and http://127.0.0.1 URIs match on any port when registered with that host |
state | recommended | returned unchanged, byte for byte; check it on return to stop CSRF |
code_challenge | recommended | PKCE challenge (RFC 7636) |
code_challenge_method | no | S256 (default when a challenge is sent) or plain |
scope | no | space-separated: profile (always granted), email, phone, dob, timezone, openid (adds an id_token), offline_access (accepted and ignored: refresh tokens are always issued) |
nonce | with openid | echoed in the id_token unchanged |
prompt | no | login (ignore the browser's session), consent (always show what is shared), select_account (show the chooser), none (never show a page: complete silently or fail) |
intent | no | signin (default) or signup: which version of the pages opens ("Sign in to Briefcase" or "Create your Briefcase account"). The account logic is the same: a first visit is a sign-up either way |
method | no | the app's own direct button: google or apple first show the Opening page ("Opening Google to sign you in to {app}…") and move on to the provider by themselves; email or phone open on that empty field. Must be enabled for the app |
response_type | no | only code is supported |
login_hint is accepted without an error and ignored. We don't prefill it, store it, echo it or
forward it to Google or Apple. An app can never hand us a Carbon's email or phone: the Carbon
always types it on the hosted pages.
What comes back to your redirect_uri:
- Success:
?code=sac_…&state=…. Exchange the code within 2 minutes. - Refusal:
?error=…&error_description=…&state=…witherror=access_denied(the Carbon cancelled on a details or review page),login_required,consent_requiredorinteraction_required(prompt=nonecouldn't finish silently),invalid_scope,invalid_requestorunsupported_response_type.
An unknown app, a disabled app or an unregistered redirect_uri gets an error page, never a
redirect, so nobody can use the page to send codes to someone else's URL.
| Scope | What the app gets in account |
|---|---|
profile | always: uuid, membership_id, kind, id, display_name, pfp_url, updated_at, version; Silicons also custodian {uuid, id} |
email | email, email_verified (the primary email; Carbons only) |
phone | phone, phone_verified (the primary phone; Carbons only) |
dob | dob (YYYY-MM-DD) |
timezone | timezone (IANA, like Asia/Kolkata) |
openid | an id_token in the token response |
Besides scope, your app's sign-in setup decides what is shared:
required_fieldsare always shared, and must exist on the account before we issue the code. A missing email or phone is added on the page, with a code.optional_fieldsare checkboxes on the details pages, unticked until the Carbon ticks them.- Details that
scopeasks for but your app doesn't configure become optional checkboxes on the last page.
Silicons never have an email or a phone. Those scopes are simply left out for them and never block a Silicon. What apps see explains the rules.
GET /.well-known/openid-configuration
The discovery document your OIDC library reads. Public, with Access-Control-Allow-Origin: * and
Cache-Control: public, max-age=300.
curl -s "$ACCOUNTS_URL/.well-known/openid-configuration"{
"issuer": "https://accounts.teamofsilicons.com",
"authorization_endpoint": "https://accounts.teamofsilicons.com/authorize",
"token_endpoint": "https://accounts.teamofsilicons.com/v1/oauth/token",
"userinfo_endpoint": "https://accounts.teamofsilicons.com/v1/userinfo",
"jwks_uri": "https://accounts.teamofsilicons.com/.well-known/jwks.json",
"revocation_endpoint": "https://accounts.teamofsilicons.com/v1/oauth/revoke",
"introspection_endpoint": "https://accounts.teamofsilicons.com/v1/oauth/introspect",
"device_authorization_endpoint": "https://accounts.teamofsilicons.com/v1/device/authorize",
"service_documentation": "https://developers.teamofsilicons.com/docs/accounts",
"response_types_supported": ["code"],
"response_modes_supported": ["query"],
"grant_types_supported": [
"authorization_code",
"refresh_token",
"urn:ietf:params:oauth:grant-type:device_code",
"urn:silicon:params:oauth:grant-type:slt",
"urn:ietf:params:oauth:grant-type:jwt-bearer",
"urn:ietf:params:oauth:grant-type:token-exchange"
],
"subject_types_supported": ["public"],
"id_token_signing_alg_values_supported": ["EdDSA", "RS256"],
"scopes_supported": ["profile", "email", "phone", "dob", "timezone", "openid", "offline_access"],
"claims_supported": [
"iss", "sub", "aud", "exp", "iat", "auth_time", "nonce", "name", "picture",
"preferred_username", "email", "email_verified", "phone_number",
"phone_number_verified", "zoneinfo", "birthdate"
],
"token_endpoint_auth_methods_supported": ["client_secret_basic", "client_secret_post", "none"],
"revocation_endpoint_auth_methods_supported": ["client_secret_basic", "client_secret_post", "none"],
"introspection_endpoint_auth_methods_supported": ["client_secret_basic", "client_secret_post"],
"code_challenge_methods_supported": ["S256", "plain"],
"prompt_values_supported": ["none", "login", "consent", "select_account"],
"claims_parameter_supported": false,
"request_parameter_supported": false,
"request_uri_parameter_supported": false
}GET /.well-known/jwks.json
The public keys that sign our tokens. Public, CORS *, cacheable for 5 minutes. Cache it, and
fetch it again when a token names a kid you don't have.
There are two keys, and each token names its own by kid. The Ed25519 key (alg: EdDSA) signs
access tokens and the id_tokens apps get. The RSA key (alg: RS256) signs only
identity tokens, the tokens a Silicon hands to AWS, Google Cloud or
Microsoft Entra, because those services don't accept EdDSA. id_token_signing_alg_values_supported
lists both for the same reason. We make the RSA key ourselves the first time the service starts
and keep it encrypted, so every server signs with the same one.
{
"keys": [
{ "kty": "OKP", "crv": "Ed25519", "x": "YJpQ5011mgRRBUr1o9VT1FjZaKeccFlUhDxZNxWWSyg", "kid": "dev-1", "use": "sig", "alg": "EdDSA" },
{ "kty": "RSA", "n": "2BhLHTcCMc2C8jj8Dfu2CuLgo3rw7XOooUkUXuNeB_5a…", "e": "AQAB", "kid": "jtyg9CxxwfY7YxYO9Gj68RfBX-6ouKX882NNGHAvMck", "use": "sig", "alg": "RS256" }
]
}POST /v1/oauth/token
One endpoint for every grant. Send the body as application/x-www-form-urlencoded (or a JSON
object of strings). Responses are Cache-Control: no-store, and errors come as RFC 6749 bodies.
Client authentication. Send your app's credentials with HTTP Basic
(-u app_id:app_secret) or as client_id + client_secret in the body, never both
(invalid_request). A client_id in the body must match the Basic credentials
(invalid_client).
Two first-party clients send no secret:
client_id=silicon-accountsis the first-party public client (thesilicon-accountsCLI). It may only userefresh_token, the device-code grant,jwt-bearerandtoken-exchange(unauthorized_clientotherwise). A token exchange may leave the client out altogether.client_id=developeris the developer platform (developers.teamofsilicons.com, whose server holds the tokens). It may only useauthorization_codewith PKCES256(a missing challenge orplainisinvalid_grant, and the code is burnt),refresh_tokenfor its own tokens, and/v1/oauth/revoke. Other grants areunauthorized_client, and introspection isinvalid_client. Its tokens haveaud: "developer"and act for their Carbon only onGET /v1/me,GET /v1/session,GET /v1/me/owned-appsand the author routes under/v1/apps/{app_id}/…. Anywhere else they get 401token_wrong_audience.
grant_type=authorization_code
| Parameter | |
|---|---|
code | the sac_… code from your redirect URI |
redirect_uri | exactly the redirect_uri sent to /authorize |
code_verifier | the PKCE verifier (43 to 128 characters of A-Z a-z 0-9 - . _ ~); required when a challenge was sent, refused when none was |
A code works once and lives 120 seconds. Any refused redemption burns it. If a code that was
already exchanged is presented again, we also revoke the tokens issued from it, and your app gets
membership.signed_out with reason authorization_code_reuse. A code seen twice means someone
else may have it.
grant_type=refresh_token
| Parameter | |
|---|---|
refresh_token | the newest sar_… refresh token you received |
scope | optional; may only repeat or narrow the granted scopes (invalid_scope if it adds one) |
Every new refresh operation returns a new refresh token and spends the old one. If a used token is
presented without the original operation's Idempotency-Key, we revoke the whole sign-in (the token family): every access and refresh token in it
stops working, and your app gets membership.signed_out with reason refresh_token_reuse. So
always store the new token before you use it. refresh_token_expires_at doesn't move: a sign-in
lasts at most 900 days from when it started, and one that has an earlier end (a Silicon's sign-in
from CI, or an app sign-in made from a short-lived token it minted) keeps that end. After it, a
refresh answers invalid_grant with The refresh token expired at … (refresh tokens last 900 days from sign-in at most, and a sign-in that started from a CI job's outside token ends with that job's sign-in); sign in again.
curl -s -X POST "$ACCOUNTS_URL/v1/oauth/token" -u "$APP_ID:$APP_SECRET" \
-H "Idempotency-Key: $SAVED_REFRESH_OPERATION_KEY" \
-d grant_type=refresh_token -d refresh_token="$REFRESH_TOKEN"Present the same refresh token again without its original operation key and you get:
{
"error": "invalid_grant",
"error_description": "This refresh token was already used once. Presenting a used refresh token revokes the whole sign-in to protect the account, so this sign-in is now revoked; sign in again."
}First-party tokens refresh the same way, with -d client_id=silicon-accounts and no secret.
Recovering a refresh after a timeout or restart
For grant_type=refresh_token, send an optional Idempotency-Key (1–200 visible ASCII
characters). Generate a cryptographically random key, such as a UUID v4, and persist it with
the current refresh token before sending. All tabs, workers and server instances acting on
that session must use that saved operation. Do not derive the key from the refresh token.
The key is bound to the authenticated app, the exact refresh token and the requested scope (scope order is normalized; omitted scope and explicit scope are different requests). Accounts commits rotation and an encrypted recovery result in one PostgreSQL transaction. Retrying the same operation returns the same token values for up to 24 hours, while the returned successor refresh token remains unused and the sign-in, account and membership remain authorized. The encryption keyring protects stored responses; tokens and operation keys must not appear in logs.
access_token_expires_at is the original JWT expiry. On recovery, expires_in is the remaining
lifetime, possibly zero; it never restarts at 1800. Persist the recovered successor first.
If its access token has expired, refresh the successor using a new saved operation key. Save
with a version check so a late reply cannot overwrite a newer session or undo logout.
HTTP / error | Action |
|---|---|
409 refresh_in_progress | Another request is processing the same operation. Wait Retry-After (1 second), then retry the same token and key. |
409 idempotency_key_reused | The key belongs to a different token or scope. Re-read the saved operation; do not change the key and retry a spent token. |
409 refresh_superseded | The successor was already refreshed. Re-read the latest shared session; do not overwrite it with an older reply. |
409 refresh_result_unavailable | The 24-hour recovery window ended or the encrypted reply cannot be recovered. Re-read shared state; if no successor was saved, start sign-in again. |
400 invalid_grant | The sign-in is revoked, expired, unauthorized, or the token was reused outside its original operation. |
| Network failure / 5xx | Keep the saved operation and session; retry with the same token and key. |
The 409 responses do not revoke the family. Expired and superseded ciphertext is retired; request bindings remain so a late recognized retry cannot accidentally rotate again. Logout and removed access always take precedence over recovery. Reusing a spent token with a different key (or no key) still triggers reuse detection. Clients without a key retain their previous behavior. Deploy server support before enabling keyed retries in clients.
The Rust SDK exposes AppClient::refresh_with_key,
AccountsClient::refresh_first_party_with_key, refresh_public_client_with_key (Accounts/developer),
and refresh_app_public_client_with_key (apps with public sign-in enabled).
grant_type=urn:silicon:params:oauth:grant-type:slt
This is how a Silicon signs into your app. It asks us for a short-lived token for your app
(POST /v1/me/short-lived-tokens, or silicon-accounts login --app <app_id>), hands it to you,
and you exchange it here. The alias grant_type=slt works too.
| Parameter | |
|---|---|
slt | the slt_… token (single use, 120 seconds, only for the app it was issued for) |
Your server sends the app's secret. An app that turned on public_client may also exchange the
token from its own command-line or desktop tool with client_id alone and no secret
(public clients). Every other app needs the secret (unauthorized_client).
curl -s -X POST "$ACCOUNTS_URL/v1/oauth/token" -u "$APP_ID:$APP_SECRET" \
-d grant_type=urn:silicon:params:oauth:grant-type:slt -d slt="$SLT"{
"access_token": "eyJ…",
"token_type": "Bearer",
"expires_in": 1800,
"refresh_token": "sar_…",
"refresh_token_expires_at": "2029-03-25T02:33:57.696Z",
"scope": "profile timezone",
"membership_id": "briefcase:8559a06f-4c3b-4480-ade8-fde4f7428bba",
"account": {
"uuid": "8559a06f-4c3b-4480-ade8-fde4f7428bba",
"membership_id": "briefcase:8559a06f-4c3b-4480-ade8-fde4f7428bba",
"kind": "silicon",
"id": "si:scout",
"display_name": "Scout",
"pfp_url": "https://iris.teamofsilicons.com/pfp/silicon?id=8559a06f-4c3b-4480-ade8-fde4f7428bba",
"timezone": "Asia/Kolkata",
"custodian": { "uuid": "6667d4b4-7c57-45de-b2c3-94185db3e175", "id": "c:saket" },
"updated_at": "2026-10-07T02:33:40.817Z",
"version": 1
}
}We refuse an SLT if, after it was issued, the Silicon's STK was rotated or the account removed
your app's access. We record the sign-in in the account's sign-in history with the method slt,
or slt_public_client when your tool exchanged it without a secret.
An SLT minted by a Silicon's sign-in from CI (the token exchange
below) starts a sign-in that ends when that CI sign-in ends: refresh_token_expires_at is that
moment, refreshing never moves it, and near it expires_in (and the access token's exp) stop
there too. Such an SLT is refused once the trust it came from was removed or the end the CI
sign-in was given has passed. Signing the CI sign-in out or revoking it doesn't refuse an SLT it
already minted, which still expires within 2 minutes. Removing the trust later ends your sign-in
(membership.signed_out, reason session_revoked).
grant_type=urn:ietf:params:oauth:grant-type:device_code
The device sign-in (RFC 8628), used by the silicon-accounts CLI and by apps' own tools (apps
that turn on device_flow). The alias grant_type=device_code works too.
| Parameter | |
|---|---|
device_code | the sad_… code from POST /v1/device/authorize |
client_id | silicon-accounts, or your app_id (your secret is optional: HTTP Basic works too) |
Poll every interval seconds (5). What you get back:
authorization_pendinguntil the Carbon decides;slow_downif you poll faster than every 5 seconds (add 5 seconds to your interval);access_deniedif they deny it;expired_tokenafter 600 seconds;- the tokens on the first poll after they approve, and
invalid_grant("already exchanged") on every poll after that.
Your app's tool gets tokens for your app, with the scopes the Carbon approved, and the sign-in
counts like any other: the account becomes an active member and we record the sign-in (method
device). A code started by another app is invalid_grant for you, and stays usable by its own
app. A code whose Carbon removed your app's access after approving is invalid_grant. An app
that hasn't turned on device_flow gets unauthorized_client.
curl -s -X POST "$ACCOUNTS_URL/v1/oauth/token" \
-d grant_type=urn:ietf:params:oauth:grant-type:device_code \
-d device_code="$DEVICE_CODE" -d client_id=silicon-accounts{
"error": "authorization_pending",
"error_description": "The Carbon hasn't approved this device code yet; keep polling every 5 seconds."
}grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
A Silicon signing in with a key (RFC 7523). assertion is a JWT signed with one of its
registered keys, and client_id is silicon-accounts. The answer is
the same first-party token response as POST /v1/silicons/login. Any other client gets
unauthorized_client, and a bad assertion is invalid_grant with the reason. It shares
POST /v1/silicons/login's limit: 60 Silicon sign-in attempts per minute from one address across
both. Every attempt counts, before the client or the assertion is checked, so moving between the
two endpoints buys no extra attempts. Over the limit:
curl -s -X POST "$ACCOUNTS_URL/v1/oauth/token" \
-d grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer \
-d assertion="$ASSERTION" -d client_id=silicon-accountsHTTP/1.1 429 Too Many Requests
Retry-After: 41
{"error": "rate_limited", "error_description": "Too many Silicon sign-in attempts from this network: the limit is 60 per minute. Wait 41 seconds before trying again."}grant_type=urn:ietf:params:oauth:grant-type:token-exchange
A Silicon signing in from CI with the OIDC token its CI gives the job, through a trust relationship its custodian (or the Silicon) set up. This is RFC 8693 token exchange, the way cloud providers take a CI job's token too.
| Parameter | |
|---|---|
subject_token | the outside OIDC token (a JWT) |
subject_token_type | urn:ietf:params:oauth:token-type:jwt (or urn:ietf:params:oauth:token-type:id_token) |
silicon | the si:id or uuid of the Silicon to sign in |
requested_token_type | optional; only urn:ietf:params:oauth:token-type:access_token |
client_id | silicon-accounts, or leave it out |
curl -s -X POST "$ACCOUNTS_URL/v1/oauth/token" \
-d grant_type=urn:ietf:params:oauth:grant-type:token-exchange \
-d subject_token="$CI_TOKEN" \
-d subject_token_type=urn:ietf:params:oauth:token-type:jwt \
-d silicon=si:scoutThe answer is the usual token response, plus issued_token_type. A
30-minute sign-in may answer expires_in: 1799, because its access token can't outlive it:
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSIsImtpZCI6ImRldi0xIn0...",
"token_type": "Bearer",
"expires_in": 1800,
"refresh_token": "sar_Wm1kO3n2...",
"refresh_token_expires_at": "2026-10-09T05:41:27.204Z",
"scope": "profile",
"membership_id": "silicon-accounts:7700120d-a627-4ac8-abb2-ea7620bfa16e",
"account": { "uuid": "7700120d-a627-4ac8-abb2-ea7620bfa16e", "kind": "silicon", "id": "si:scout", "...": "..." },
"issued_token_type": "urn:ietf:params:oauth:token-type:access_token"
}What we check, in this order:
- The token is a JWT signed with
RS256,RS384,RS512,PS256,PS384,PS512,ES256,ES384orEdDSA(nevernoneor a shared secret), and itsissis an issuer the Silicon trusts. Nothing is fetched for an issuer no trust names. - Its signature verifies with a key from the issuer's JWKS. We find the JWKS through the
issuer's discovery document, keep it for 10 minutes, and fetch it again when a token names a
kidwe don't have (at most every 30 seconds per issuer). exphasn't passed andnbfhas, with 30 seconds of clock skew;iatis there and not in the future.- One trust accepts it: its
audincludes the trust's audience and every condition equals the claim exactly. - A
jti, when the token has one, was never exchanged before: a token signs in once.
The sign-in ends when the outside token expires, but never sooner than one access token (30
minutes) and never later than 12 hours after the exchange. refresh_token_expires_at says when.
Within that window the refresh token rotates as usual; after it, every token of the sign-in stops,
and the job exchanges a fresh token from its CI (the CLI does that on its own). A GitHub Actions
token lives minutes, so its sign-in is one access token long. A GitLab job's token lives as long
as the job, so a long job keeps its sign-in by refreshing, and never past its own end. That is the
point: a copied session can't outlive the job that earned it. The sign-in is a first-party session
with origin federated, recorded in the Silicon's sign-in history with method federated, and
removing the trust ends it. So does an app sign-in made from a short-lived token minted in that
session: it ends no later than the CI sign-in, and removing the trust ends it too
(what an app sign-in from CI lasts).
Every refusal is invalid_grant, with the reason and its code in brackets:
invalid_federated_token (malformed, an unsafe algorithm, a bad signature, an unknown key,
expired, not yet valid, or replayed), no_matching_trust (the Silicon trusts no such issuer, or
no trust accepts the audience and claims, named in the description), issuer_unavailable (the
issuer's keys couldn't be read). A refusal for a token that provably came from the trusted issuer
is recorded in the Silicon's sign-in history; a forged one is not. An app's own credentials get
unauthorized_client, since this grant signs a Silicon into Silicon Accounts itself. 60 exchanges
per minute from one address, then 429 rate_limited with Retry-After.
The token response
| Field | |
|---|---|
access_token | an EdDSA (Ed25519) JWT, valid expires_in seconds (1800 at most) |
token_type | Bearer |
expires_in | 1800, or less when the sign-in ends sooner (an access token never outlives its sign-in) |
refresh_token | sar_…, rotates on every refresh |
refresh_token_expires_at | when the sign-in ends at the latest (900 days after it started; sooner for a Silicon's sign-in from CI, and for an app sign-in made from a short-lived token that CI sign-in minted) |
scope | the granted scopes, space-separated |
id_token | only when openid was granted |
membership_id | {app_id}:{uuid} |
account | the account as your app may see it (the fields of the scopes above) |
The access token's claims (first-party tokens have aud: "silicon-accounts"):
{
"iss": "https://accounts.teamofsilicons.com",
"sub": "4143123f-b494-481c-adbf-c14b14cfccc0",
"aud": "briefcase",
"exp": 1791342182,
"iat": 1791340382,
"nbf": 1791340382,
"jti": "01a11435-086d-7380-97bc-50f5ff0c33b3",
"kind": "carbon",
"id": "c:ada",
"mid": "briefcase:4143123f-b494-481c-adbf-c14b14cfccc0",
"fid": "01a11435-0864-723d-86b3-c15a7345c088",
"scope": "profile email timezone openid"
}sub is the account uuid, id the c:id or si:id at the time the token was issued, mid the
membership id and fid the token family (the sign-in). To check a token yourself, verify the
signature against the JWKS, check exp and nbf, and check that aud equals your app id. A
local check can't see a revocation, so call introspection when you
need to know about a sign-out at once.
The id_token's claims (header {"alg":"EdDSA","kid":"…"}):
{
"iss": "https://accounts.teamofsilicons.com",
"sub": "4143123f-b494-481c-adbf-c14b14cfccc0",
"aud": "briefcase",
"exp": 1791342182,
"iat": 1791340382,
"auth_time": 1791340371,
"nonce": "n-456",
"name": "Ada Lovelace",
"picture": "https://iris.teamofsilicons.com/pfp/carbon?id=4143123f-b494-481c-adbf-c14b14cfccc0",
"preferred_username": "c:ada",
"email": "ada@example.test",
"email_verified": true,
"zoneinfo": "Asia/Kolkata"
}auth_time is when the Carbon last proved who they are (a code, Google, Apple or a finished
sign-up), not when the token was made. phone_number, phone_number_verified and birthdate
appear with the phone and dob scopes. A refresh returns a fresh id_token too.
Token endpoint errors
| Status | error | When |
|---|---|---|
| 400 | invalid_request | a parameter is missing, repeated or malformed; the client authenticated twice |
| 401 | invalid_client | unknown app, wrong secret, disabled app, no credentials (with WWW-Authenticate: Basic) |
| 400 | invalid_grant | the code, refresh token, SLT or device code is unknown, expired, already used, revoked, issued to another app, or its account was deleted or removed the app's access; an SLT minted by a Silicon's CI sign-in past the end it was given, or whose trust was removed; a redirect_uri or PKCE mismatch |
| 400 | unauthorized_client | a public client (client_id with no secret) asked for a grant that needs the secret (the description lists what it may use: authorization_code with PKCE and the SLT grant need public_client on, the device-code grant needs device_flow), or an app without device_flow asked for the device-code grant |
| 400 | unsupported_grant_type | any other grant_type (the description says what to use instead: App verification proofs for client_credentials, the hosted pages for password) |
| 400 | invalid_scope | a refresh asked for a scope that wasn't granted, or an unknown scope |
| 400 | authorization_pending, slow_down, access_denied, expired_token | device-code polling (above) |
| 413 | invalid_request | the body is over 64 KB |
| 429 | rate_limited | grant_type=urn:ietf:params:oauth:grant-type:token-exchange: more than 60 of them per minute from one address; grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer: more than 60 Silicon sign-in attempts per minute from one address, counted together with POST /v1/silicons/login (Retry-After either way). Code, SLT, refresh and device-code exchanges have no per-address limit here. |
| 500 | server_error | a fault on our side (the description carries the request id) |
| 503 | temporarily_unavailable | the request ran past its 30-second budget |
error_description always says exactly which of the reasons applied. Errors
lists them all.
POST /v1/oauth/revoke
Ends the sign-in behind a refresh token or an access token (RFC 7009): we revoke the whole token
family. Authenticate the same way as at the token endpoint; the first-party public client can
revoke first-party tokens only. An access token is accepted even after it expired.
token_type_hint is accepted and ignored, because the token's own form says what it is.
curl -s -X POST "$ACCOUNTS_URL/v1/oauth/revoke" -u "$APP_ID:$APP_SECRET" -d token="$REFRESH_TOKEN"{ "revoked": true }Once your client is authenticated, the answer is always 200. A token that isn't yours (unknown, malformed or another app's) gets a 200 too, so nobody can use the endpoint to probe tokens:
{
"revoked": false,
"message": "Nothing was revoked: this is not a refresh or access token issued to 'dm' (it is unknown, malformed, or belongs to another app). RFC 7009 answers 200 either way."
}Revoking an app's sign-in sends that app membership.signed_out with reason app_revoked.
POST /v1/oauth/introspect
Is this token of yours live right now (RFC 7662)? This needs your app's own credentials; the
public client gets 401 invalid_client. We only ever report the calling app's own tokens as
active.
curl -s -X POST "$ACCOUNTS_URL/v1/oauth/introspect" -u "$APP_ID:$APP_SECRET" -d token="$ACCESS_TOKEN"{
"active": true,
"iss": "https://accounts.teamofsilicons.com",
"sub": "4143123f-b494-481c-adbf-c14b14cfccc0",
"aud": "briefcase",
"client_id": "briefcase",
"exp": 1791342204,
"iat": 1791340404,
"nbf": 1791340404,
"jti": "01a11435-60b5-7167-abb0-ff4c0b338368",
"kind": "carbon",
"id": "c:ada",
"username": "c:ada",
"membership_id": "briefcase:4143123f-b494-481c-adbf-c14b14cfccc0",
"scope": "profile email timezone openid",
"token_type": "access_token"
}An active refresh token reports token_type: "refresh_token", with the session's end as exp. A
token that is expired, revoked, unknown or another app's returns exactly {"active": false}.
GET / POST /v1/userinfo
The account behind an access token, as the token's app may see it, plus the OIDC claim names.
Send Authorization: Bearer <access token>. With POST you can send a form field access_token
instead, never both. Any audience works, first-party tokens included.
curl -s "$ACCOUNTS_URL/v1/userinfo" -H "Authorization: Bearer $ACCESS_TOKEN"{
"uuid": "4143123f-b494-481c-adbf-c14b14cfccc0",
"membership_id": "briefcase:4143123f-b494-481c-adbf-c14b14cfccc0",
"kind": "carbon",
"id": "c:ada",
"display_name": "Ada Lovelace",
"pfp_url": "https://iris.teamofsilicons.com/pfp/carbon?id=4143123f-b494-481c-adbf-c14b14cfccc0",
"email": "ada@example.test",
"email_verified": true,
"timezone": "Asia/Kolkata",
"updated_at": "2026-10-07T02:32:51.018Z",
"version": 1,
"sub": "4143123f-b494-481c-adbf-c14b14cfccc0",
"name": "Ada Lovelace",
"picture": "https://iris.teamofsilicons.com/pfp/carbon?id=4143123f-b494-481c-adbf-c14b14cfccc0",
"zoneinfo": "Asia/Kolkata"
}With the phone and dob scopes it adds phone_number, phone_number_verified and
birthdate. A Silicon's answer carries custodian.
Errors use the API error shape, plus
WWW-Authenticate: Bearer realm="Silicon Accounts", error="invalid_token", … so OIDC libraries
understand them. All of them are 401: unauthenticated (no token), invalid_authorization,
invalid_token (malformed, or expired at its exact exp time), token_revoked (signed out, STK
rotated, account deleted…), account_deleted, access_removed (the account removed your app's
access), membership_inactive, app_disabled.
{
"error": {
"code": "token_revoked",
"message": "The sign-in behind this access token was revoked at 2026-10-07T02:38:05.252Z (app_revoked).",
"hint": "Sign in again."
}
}POST /v1/device/authorize
Starts a device sign-in (RFC 8628) for the silicon-accounts CLI, or for your app's own tool.
Public. The body (JSON or form) is optional:
client_label: shown on the approval page and in the sessions list, cut at 100 characters;client_id:silicon-accountswhen left out;scope.
At most 60 per IP per 10 minutes. Errors use the API error shape.
curl -s -X POST "$ACCOUNTS_URL/v1/device/authorize" \
-H 'Content-Type: application/json' -d '{"client_label":"silicon-accounts CLI on build box"}'{
"device_code": "sad_bXmMc5C9tF_K7UZl8cLE5Ff2R1Q0_hbtXv87TIkbngU",
"user_code": "MVHB-KQAW",
"verification_uri": "https://accounts.teamofsilicons.com/device",
"verification_uri_complete": "https://accounts.teamofsilicons.com/device?code=MVHB-KQAW",
"expires_in": 600,
"interval": 5,
"expires_at": "2026-10-07T02:46:05.176Z"
}Show the Carbon user_code and verification_uri. They approve on the account site
(/v1/device/{user_code}/approve, see Hosted sign-in) while you
poll the token endpoint with the device-code grant. User codes use A-Z without I, L and
O, plus 2-9, and we match typed codes ignoring spaces, dashes and case.
For an app's tool
Send client_id=<your app_id> (or HTTP Basic with your secret, which we then check) to start a
device sign-in for your app. It works once your app has turned on device_flow in its sign-in
setup; until then you get 400 unauthorized_client.
scope (space-separated) asks for details your app requests (email, phone, dob,
timezone). Your required details and profile are always included, and a detail your app
doesn't ask for is 400 invalid_scope. At most 600 per app per 10 minutes. Other errors: 400
invalid_client (no such app), 401 invalid_app_credentials (a wrong secret), 403
app_disabled. For the steps, see Sign people into your CLI.
Public clients
Your app's command-line and desktop tools can't keep a secret, because a secret shipped inside a
tool isn't secret. Turn on public_client (or device_flow) in your sign-in setup, and the token
endpoint accepts your app's client_id alone (token_endpoint_auth_method none) for:
| Grant | With |
|---|---|
authorization_code | public_client; the sign-in must have used PKCE with code_challenge_method=S256, and the exchange sends the code_verifier (a code without PKCE is invalid_grant) |
urn:ietf:params:oauth:grant-type:device_code | device_flow |
urn:silicon:params:oauth:grant-type:slt | public_client; recorded with the sign-in method slt_public_client. The SLT is the proof: single use, 120 seconds, only for your app, and only the account that minted it can hand it over |
refresh_token | either; only the app's own sign-ins |
Any other grant, or one of these without the setting it needs, is unauthorized_client, and the
description lists what your public client may use: refresh_token, the device-code grant with
device_flow on, and authorization_code with PKCE S256 and the SLT grant with public_client on.
In Rust, AccountsClient::exchange_slt_public_client(app_id, slt) exchanges an SLT this way.
POST /v1/oauth/revoke accepts it too, for the app's own tokens. Introspection always needs the
secret (invalid_client). Loopback redirect
URIs (http://127.0.0.1/…, http://[::1]/…, http://localhost/…) match on any port, as RFC 8252
asks.