Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/session-exchange-com:session-exchange-com-auth-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: Session Exchange Com Auth API
version: 0.1.0
description: 'Operations tagged Auth across 2 of this provider''s published API definitions: openapi.json, session-exchange-com-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Auth
paths:
/auth/whoami:
get:
summary: Whoami
description: 'Confirm the bearer token is valid and say who it belongs to.
200 with the caller''s identity, or 401. Accepts read OR emit tokens (same gate as the data
routes a caller is proving access for), and rejects admin/registration — so nothing is tempted
to use an admin credential for a routine liveness check.
Resolution is tenant-local first (by Host). On a 401 miss, a UNIFIED `ge_tok_` is resolved
ACROSS tenants (see `_resolve_cross_tenant_unified`) so the fleet router — which probes the
default collector base first — learns the token''s owning tenant from that one probe, with no
per-tenant routes.json entry. The `x-polaris-tenant` response header (set by the tenant
middleware from `request.state.tenant_id`, which the fallback overrides) names that owner.'
operationId: whoami_auth_whoami_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response Whoami Auth Whoami Get
tags:
- Auth
/auth/providers:
get:
summary: Providers
description: 'Which sign-in providers this host offers. `configured: false` is an explicit answer
("no provider is set up here"); a failure to READ the configuration is a 503, never a
200 with an empty list — the landing must be able to tell "no sign-in" from "can''t reach
the server". Reachable during the startup warm-up (pure env read, see app.py).'
operationId: providers_auth_providers_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/login/{provider}:
get:
summary: Login
operationId: login_auth_login__provider__get
parameters:
- name: provider
in: path
required: true
schema:
type: string
title: Provider
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Auth
/auth/callback/{provider}:
get:
summary: Callback
operationId: callback_auth_callback__provider__get
parameters:
- name: provider
in: path
required: true
schema:
type: string
title: Provider
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Auth
/auth/cli/approve:
post:
summary: Cli Approve
description: 'The human confirms the code shown matches their terminal — marks the login approved so the
poller can collect (mint) the session.'
operationId: cli_approve_auth_cli_approve_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/cli/start:
post:
summary: Cli Start
description: 'Begin a CLI device-login. Body: {provider?}. Returns a one-time {code} and the {login_url}
to open in a browser. With NO provider (the default), login_url points at a provider CHOOSER so
the user signs in with whatever method their account uses (Google/GitHub/…) — the CLI must not
guess. A specific `provider` skips the chooser. The CLI then polls /auth/cli/poll?code=.'
operationId: cli_start_auth_cli_start_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/cli/choose:
get:
summary: Cli Choose
description: 'Provider chooser for a pending CLI device-login — the user picks Google/GitHub/… so the CLI
never has to guess which method their account uses.'
operationId: cli_choose_auth_cli_choose_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/cli/d/{user_code}:
get:
summary: Cli Short
description: 'The short sign-in link printed for a headless host (and encoded in its QR code): resolves the
pairing by the code shown in the terminal and shows the provider chooser. Follows restarts.'
operationId: cli_short_auth_cli_d__user_code__get
parameters:
- name: user_code
in: path
required: true
schema:
type: string
title: User Code
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Auth
/auth/cli/device:
get:
summary: Cli Device
description: 'Type-the-code page (RFC 8628 verification_uri): for signing in from ANOTHER device when the
terminal''s host has no browser. `?c=` jumps straight to the short link.'
operationId: cli_device_auth_cli_device_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/cli/login/{provider}:
get:
summary: Cli Login
description: 'Redirect into OAuth for a pending CLI pairing code; the callback binds the
resulting session to the code (return_to = `cli:`).'
operationId: cli_login_auth_cli_login__provider__get
parameters:
- name: provider
in: path
required: true
schema:
type: string
title: Provider
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Auth
/auth/cli/poll:
get:
summary: Cli Poll
description: 'Poll for a completed CLI login. Returns {session} exactly once (then forgets it),
else {status:"pending"}; 404 if the code is unknown/expired.'
operationId: cli_poll_auth_cli_poll_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/logout:
post:
summary: Logout
operationId: logout_auth_logout_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/me:
get:
summary: Me
operationId: me_auth_me_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/me/preferences:
put:
summary: Put Preferences
description: 'Set the signed-in human''s own account preferences. Body `{summary_opt_in: bool}` and/or
`{sales_report: "off" | "daily" | "weekly" | "monthly", sales_report_scope: "own" | "workspace"}`
(the seller sales report, #594) and/or `{signup_source: str | null}` — the optional "How did you
hear about us?" answer (collector/signup_source.py, #775): at most 200 characters, scrubbed
before it is stored; "" skips the question, null removes an earlier answer. While
AGENT_MDX_SIGNUP_SOURCE is off every value is refused with 403 `signup_source_off` (nothing is
recorded) — except null for an account that still holds an answer, which removes it.
Session-only, like GET /auth/me: a `ge_sess_` bearer from a sign-in. Machine tokens (admin /
emit / read / unified) and library tokens are refused with 401 `not_logged_in` — consent to
sending your session text to an LLM is a human''s decision, never a token''s. There is no user
id in the path or body, so a caller can only ever change their OWN account.'
operationId: put_preferences_auth_me_preferences_put
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/sales-report/off:
get:
summary: Sales Report Off Page
operationId: sales_report_off_page_auth_sales_report_off_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
post:
summary: Sales Report Off
operationId: sales_report_off_auth_sales_report_off_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/email-verification:
get:
summary: Get Status
operationId: get_status_auth_email_verification_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/email-verification/start:
post:
summary: Start
operationId: start_auth_email_verification_start_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/email-verification/verify:
post:
summary: Verify
operationId: verify_auth_email_verification_verify_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/me/identities:
get:
summary: My Identities
description: 'The caller''s sign-in methods, the providers they can still link (configured on this host and not
yet on the account — Microsoft only appears once it is configured), whether a link may start now
(`recent`) or needs a fresh sign-in first, and whether THIS host is where changes happen
(`manage_here`; else `manage_url`).'
operationId: my_identities_auth_me_identities_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Auth
/auth/link/{provider}:
post:
summary: Start Link
description: 'Start linking `provider` to the signed-in account. Needs a sign-in within the last 10 minutes, on
the callback host (409 `wrong_host` elsewhere, with the URL to go to). Returns `{url}` — the SPA
navigates the browser there (a top-level navigation, so the provider redirect is not a form action),
and the cookie set here proves it is the same browser, at the hand-off and again at the callback.'
operationId: start_link_auth_link__provider__post
parameters:
- name: provider
in: path
required: true
schema:
type: string
title: Provider
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Auth
/auth/me/identities/{provider}/{ref}:
delete:
summary: Unlink
description: 'Remove one sign-in method from the caller''s account. Needs a sign-in within the last 10 minutes, on
the callback host; the last remaining method can''t be removed (409 `last_identity`). Every OTHER
session of the account is signed out (the one making the change stays), so a browser that got in with
the removed method does not keep access. Agent keys are NOT revoked (#1025 item 2): `active_keys` lists
the ones that still work (id, label, dates — never a token), each revocable on its own.'
operationId: unlink_auth_me_identities__provider___ref__delete
parameters:
- name: provider
in: path
required: true
schema:
type: string
title: Provider
- name: ref
in: path
required: true
schema:
type: string
title: Ref
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Auth
/auth/token:
post:
summary: Mint Token
description: Exchange the caller's a4sx credential (human session or machine token, presented as Bearer) for a short-lived JWT the World-Sim (and other consumers) can verify against this issuer's JWKS.
operationId: mint_token_auth_token_post
requestBody:
content:
application/json:
schema:
additionalProperties: true
type: object
title: Body
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Auth
/auth/gym-tokens/{jti}/revoke:
post:
summary: Revoke Gym Token
description: 'Revoke one World-Sim Gym token by its jti (idempotent): the person it was minted for, or a global
admin. The jti is then listed at GET /modules/world-sim/revoked until the token expires. 404 while
AGENT_MDX_GYM_SAMPLE is off, and for a jti that is not a gym token of the caller''s.'
operationId: revoke_gym_token_auth_gym_tokens__jti__revoke_post
parameters:
- name: jti
in: path
required: true
schema:
type: string
title: Jti
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Auth
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
x-refined-from:
- openapi.json
- session-exchange-com-openapi.json