RunWhen Auth0 API
The auth0 API from RunWhen — 5 operation(s) for auth0.
The auth0 API from RunWhen — 5 operation(s) for auth0.
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/runwhen-auth0-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. 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: papi Auth0 API
description: RunWhen Platform API
version: 2.0.0
tags:
- name: Auth0
paths:
/accounts/auth0/login/:
get:
tags:
- Auth0
summary: Auth0 Login
description: 'Initiate Auth0 OAuth2 login flow with PKCE.
Builds the Auth0 authorize URL, stores state in Redis, and redirects
the browser to Auth0 for authentication.
Args:
request: The incoming request.
next: URL to redirect to after login (e.g. /rd/).
auth_params: Auth0 connection parameters (e.g. [connection]=runwhen).
oauth_session: OAuth 2.1 AS session ID — when present, the callback
issues an authorization code and redirects to the OAuth client
instead of setting a UI cookie.
Returns:
Redirect to Auth0 authorize URL.'
operationId: auth0_login_accounts_auth0_login__get
parameters:
- name: next
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Next
- name: auth_params
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Auth Params
- name: oauth_session
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Oauth Session
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
/accounts/auth0/login/callback/:
get:
tags:
- Auth0
summary: Auth0 Callback
description: 'Handle Auth0 OAuth2 callback.
Exchanges authorization code for tokens, fetches userinfo, creates or
links the user, issues a JWT cookie, and redirects to the next URL.
Args:
request: The incoming request.
code: Authorization code from Auth0.
state: State parameter for CSRF validation.
error: Error code from Auth0 (if any).
error_description: Error description from Auth0 (if any).
Returns:
Redirect to next URL with JWT cookie set.'
operationId: auth0_callback_accounts_auth0_login_callback__get
parameters:
- name: code
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Code
- name: state
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: State
- name: error
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Error
- name: error_description
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Error Description
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
/accounts/logout/:
get:
tags:
- Auth0
summary: Generic Logout
description: 'Log out — clears JWT cookie and delegates to Auth0 federated logout.
This is the path the UI redirects to (pages/logout.tsx).
Delegates to the Auth0 logout flow.'
operationId: generic_logout_accounts_logout__get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security: []
/accounts/auth0/logout/:
get:
tags:
- Auth0
summary: Auth0 Logout
description: 'Log out via Auth0 federated logout.
Redirects to Auth0''s /v2/logout endpoint which clears the Auth0 session
and the upstream SAML/OIDC provider session, then redirects back to
the user pages login page.
Returns:
Redirect to Auth0 logout URL or direct to login page.'
operationId: auth0_logout_accounts_auth0_logout__get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
security: []
/rd/{nxt_raw}:
get:
tags:
- Auth0
summary: Login Redirect
description: 'Redirect to a base64-encoded URL after login, with host whitelist validation.
This matches Django''s core/login.py:rd() view exactly. The URL is base64-encoded
to avoid issues with OAuth providers stripping query parameters.
Args:
nxt_raw: Base64-encoded absolute URL to redirect to.
Returns:
Redirect to the decoded URL if host is allowed, or to an error page.'
operationId: login_redirect_rd__nxt_raw__get
parameters:
- name: nxt_raw
in: path
required: true
schema:
type: string
title: Nxt Raw
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security: []
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
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: JWT access token from /api/v3/token/ or Auth0 login