Altimate AI SUPERTOKENS API
The SUPERTOKENS API from Altimate AI — 7 operation(s) for supertokens.
The SUPERTOKENS API from Altimate AI — 7 operation(s) for supertokens.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/altimate-ai:altimate-ai-supertokens-api"
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.
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: 3.2.0
info:
title: Fast SUPERTOKENS API
version: 0.1.0
tags:
- name: SUPERTOKENS
paths:
/supertokens/:
get:
tags:
- SUPERTOKENS
summary: List Tenants
description: 'Lists all tenants in SuperTokens
:return: List of tenants'
operationId: list_tenants_supertokens__get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'403':
description: Not supported for public user
content:
application/json:
schema:
additionalProperties: true
type: object
title: Response 403 List Tenants Supertokens Get
deprecated: true
security:
- HTTPBearer: []
- HTTPBearer: []
/supertokens/create-tenant:
post:
tags:
- SUPERTOKENS
summary: Create Supertokens Tenant
description: 'Creates a new tenant in SuperTokens
`new_tenant` must be the tenant the caller addressed (the SuperTokens
tenant id is the host as-is).
:return: ok status and optional message.'
operationId: create_supertokens_tenant_supertokens_create_tenant_post
security:
- HTTPBearer: []
- HTTPBearer: []
parameters:
- name: new_tenant
in: query
required: true
schema:
type: string
title: New Tenant
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Invalid request data
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 400 Create Supertokens Tenant Supertokens Create Tenant Post
'403':
description: '`new_tenant` is not the tenant the caller addressed'
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 403 Create Supertokens Tenant Supertokens Create Tenant Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/supertokens/update-tenant-thirdparty:
post:
tags:
- SUPERTOKENS
summary: Update Tenant Thirdparty
description: 'Updates the tenant with the third party config
This decides which identity provider is trusted to authenticate
`new_tenant`''s users, so `new_tenant` must be the tenant the caller addressed
(the SuperTokens tenant id is the host as-is).
:return: ok status and optional message.'
operationId: update_tenant_thirdparty_supertokens_update_tenant_thirdparty_post
security:
- HTTPBearer: []
- HTTPBearer: []
parameters:
- name: new_tenant
in: query
required: true
schema:
type: string
title: New Tenant
- name: client_id
in: query
required: true
schema:
type: string
title: Client Id
- name: client_secret
in: query
required: true
schema:
type: string
title: Client Secret
- name: oidc_discovery_endpoint
in: query
required: true
schema:
type: string
title: Oidc Discovery Endpoint
- name: third_party_id
in: query
required: true
schema:
$ref: '#/components/schemas/ThirdPartySSO'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Invalid request data
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 400 Update Tenant Thirdparty Supertokens Update Tenant Thirdparty Post
'403':
description: '`new_tenant` is not the tenant the caller addressed'
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 403 Update Tenant Thirdparty Supertokens Update Tenant Thirdparty Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/supertokens/update-tenant-thirdparty-custom:
post:
tags:
- SUPERTOKENS
summary: Update Tenant Thirdparty Custom
description: 'Updates the tenant with the custom third party config
Own tenant only — see `update_tenant_thirdparty`.
:return: ok status and optional message.'
operationId: update_tenant_thirdparty_custom_supertokens_update_tenant_thirdparty_custom_post
deprecated: true
security:
- HTTPBearer: []
- HTTPBearer: []
parameters:
- name: new_tenant
in: query
required: true
schema:
type: string
title: New Tenant
- name: client_id
in: query
required: true
schema:
type: string
title: Client Id
- name: client_secret
in: query
required: true
schema:
type: string
title: Client Secret
- name: oidc_discovery_endpoint
in: query
required: true
schema:
type: string
title: Oidc Discovery Endpoint
- name: third_party_id
in: query
required: true
schema:
type: string
title: Third Party Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Invalid request data
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 400 Update Tenant Thirdparty Custom Supertokens Update Tenant Thirdparty Custom Post
'403':
description: '`new_tenant` is not the tenant the caller addressed'
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 403 Update Tenant Thirdparty Custom Supertokens Update Tenant Thirdparty Custom Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/supertokens/update-tenant-saml:
post:
tags:
- SUPERTOKENS
summary: Update Tenant Saml
description: 'Updates the tenant with the SAML config
Own tenant only — see `update_tenant_thirdparty`.
:return: ok status and optional message.'
operationId: update_tenant_saml_supertokens_update_tenant_saml_post
deprecated: true
security:
- HTTPBearer: []
- HTTPBearer: []
parameters:
- name: new_tenant
in: query
required: true
schema:
type: string
title: New Tenant
- name: client_id
in: query
required: true
schema:
type: string
title: Client Id
- name: client_secret
in: query
required: true
schema:
type: string
title: Client Secret
- name: provider_name
in: query
required: false
schema:
type: string
default: SAML
title: Provider Name
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Invalid request data
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 400 Update Tenant Saml Supertokens Update Tenant Saml Post
'403':
description: '`new_tenant` is not the tenant the caller addressed'
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 403 Update Tenant Saml Supertokens Update Tenant Saml Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/supertokens/delete-tenant-thirdparty:
delete:
tags:
- SUPERTOKENS
summary: Delete Tenant Thirdparty
description: 'Deletes the tenant''s third party config
Deleting a provider locks every SSO user of `new_tenant` out of the product,
so `new_tenant` must be the tenant the caller addressed.
:return: ok status and optional message.'
operationId: delete_tenant_thirdparty_supertokens_delete_tenant_thirdparty_delete
deprecated: true
security:
- HTTPBearer: []
- HTTPBearer: []
parameters:
- name: new_tenant
in: query
required: true
schema:
type: string
title: New Tenant
- name: third_party_id
in: query
required: true
schema:
type: string
title: Third Party Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Invalid request data
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 400 Delete Tenant Thirdparty Supertokens Delete Tenant Thirdparty Delete
'403':
description: '`new_tenant` is not the tenant the caller addressed'
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 403 Delete Tenant Thirdparty Supertokens Delete Tenant Thirdparty Delete
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/supertokens/configure/{provider}:
post:
tags:
- SUPERTOKENS
summary: Configure Sso
description: 'Configures SSO by creating a tenant if needed and updating third-party config
Self-service: the target is the tenant the caller addressed, never a request
parameter, so this route was never the cross-tenant vector.
Uses `get_request_tenant`, not `get_tenant`: a SuperTokens tenant id is the
host as-is, so a caller on `pepsico.*` must configure the `pepsico`
SuperTokens tenant. Collapsing to the canonical `pepsiaws-us-east` wrote the
config to a tenant that login never reads, because the frontend SDK sets
`getTenantId: getTenant` (the subdomain) and SSO login calls
`/superauth/{subdomain}/authorisationurl`. Identical for the 38 tenants whose
host already is their canonical name.
:return: ok status and optional message.'
operationId: configure_sso_supertokens_configure__provider__post
security:
- HTTPBearer: []
- HTTPBearer: []
parameters:
- name: provider
in: path
required: true
schema:
$ref: '#/components/schemas/ConfigureProvider'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigureRequest'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'400':
description: Invalid request data
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 400 Configure Sso Supertokens Configure Provider Post
'403':
description: Not supported for public user
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response 403 Configure Sso Supertokens Configure Provider Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ThirdPartySSO:
type: string
enum:
- okta
- active-directory
title: ThirdPartySSO
ConfigureProvider:
type: string
enum:
- okta
- active-directory
title: ConfigureProvider
description: 'Providers customers may configure themselves via `/configure/{provider}`.
Deliberately narrower than `ThirdPartySSO`: this is the self-service
allowlist, so a provider reachable through the support-assisted routes is
not automatically exposed here.'
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
ConfigureRequest:
properties:
client_id:
type: string
title: Client Id
client_secret:
type: string
title: Client Secret
oidc_url:
type: string
title: Oidc Url
type: object
required:
- client_id
- client_secret
- oidc_url
title: ConfigureRequest
securitySchemes:
HTTPBearer:
type: http
scheme: bearer