Auth0 Sessions API

The sessions API from Auth0 — 2 operation(s) for sessions.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /sessions/{id} Get a login session · Get session #
Ask an LLM
“What device and timing details does an Auth0 session record?”
“Can I look up a user's session by its session ID?”
Tell an agent
Get session {id}.
Show the details of session {id}.
DELETE /sessions/{id} Delete a session · Delete session #
Ask an LLM
“Can I delete a single session by ID?”
“What's the call to remove a session record?”
Tell an agent destructive · confirm first
Delete session {id}.
Remove the session {id}.
PATCH /sessions/{id} Update a session's metadata · Update session #
Ask an LLM
“How do I attach custom metadata to a session?”
“Can I change the metadata stored on an existing session?”
Tell an agent
Set the metadata of session {id} to {session_metadata}.
Update session {id} with metadata {session_metadata}.
POST /sessions/{id}/revoke Revoke a session and its refresh tokens · Revokes a session #
Ask an LLM
“How do I sign a user out of one session and kill its refresh tokens too?”
“Does revoking a session also invalidate the associated refresh tokens?”
Tell an agent destructive · confirm first
Revoke session {id} and its refresh tokens.
Force-logout session {id}, revoking every refresh token tied to it.

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/auth0:auth0-sessions-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

auth0-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Auth0 Management Sessions API
  description: Auth0 Management API v2.
  termsOfService: https://auth0.com/web-terms/
  contact:
    name: Auth0 Support
    url: https://support.auth0.com
  version: '2.0'
servers:
- url: https://{tenantDomain}/api/v2
  variables:
    tenantDomain:
      default: '{TENANT}.auth0.com'
      description: Auth0 Tenant Domain
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (38 KB total) ---
# Full source: https://artifacts.apis.io/auth0/openapi/auth0-sessions-api-openapi.yml