Stytch · JSON Structure

Stytch Session Structure

Stytch session object returned after successful authentication.

Type: object Properties: 8
AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper Tools

Session is a JSON Structure definition published by Stytch, describing 8 properties.

Properties

session_id user_id started_at last_accessed_at expires_at attributes authentication_factors custom_claims

Meta-schema:

JSON Structure

Raw ↑
{
  "name": "Session",
  "description": "Stytch session object returned after successful authentication.",
  "type": "object",
  "properties": {
    "session_id": {
      "type": "string",
      "description": "Unique session identifier (prefix: session-)"
    },
    "user_id": {
      "type": "string",
      "description": "The authenticated user's ID"
    },
    "started_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the session was created"
    },
    "last_accessed_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the session was last validated"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the session expires"
    },
    "attributes": {
      "type": "object",
      "description": "Session attributes including IP and user agent",
      "properties": {
        "ip_address": { "type": "string" },
        "user_agent": { "type": "string" }
      }
    },
    "authentication_factors": {
      "type": "array",
      "description": "List of authentication factors that created or extended this session",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": ["magic_link", "otp", "oauth", "password", "totp", "webauthn_registration", "sso"]
          },
          "delivery_method": { "type": "string" },
          "last_authenticated_at": { "type": "string", "format": "date-time" }
        }
      }
    },
    "custom_claims": {
      "type": "object",
      "description": "Custom JWT claims added to the session JWT"
    }
  }
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • 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 JSON Structure
curl "https://apis.io/api/v1/json-structures/stytch-session-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.