looot Session Context API

The Session Context API from looot — 1 operation(s) for session context.

Operations 1

GET /v1/session-context Get bounded authenticated local session context #

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/looot:looot-session-context-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

looot-session-context-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: looot Session Context API
  version: 0.1.0
  description: Discover, inspect, run, and pay for real (or fixture) provider operations through one bearer token.
servers:
- url: https://api.looot.ai
  description: Public API (default)
- url: https://coset-gateway.onrender.com
  description: Legacy host -- still live, for tokens issued before the public domain existed
- url: http://127.0.0.1:8787
  description: Local development
security:
- bearerAuth: []
tags:
- name: Session Context
paths:
  /v1/session-context:
    get:
      summary: Get bounded authenticated local session context
      parameters:
      - name: include
        in: query
        required: false
        description: expiresAt adds the token's own expiry to the response; organizationName adds the organization's display name. Comma-separated or repeated.
        schema:
          type: string
          examples:
          - expiresAt
          - expiresAt,organizationName
      description: Returns only the server-derived local organization, authentication class, canonical granted scopes, and local mode. It never returns tokens, token hashes, principal identifiers, vault references, or session identifiers.
      responses:
        '200':
          description: Authenticated local session context
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionContext'
        '401':
          description: Authentication required
        '403':
          description: local-product:read scope required
        '405':
          description: Method not allowed
        '503':
          description: Session context unavailable
      tags:
      - Session Context
      operationId: getV1SessionContext
      x-operation-id-source: derived
components:
  schemas:
    SessionContext:
      type: object
      additionalProperties: false
      required:
      - mode
      - authenticationClass
      - organizationId
      - scopes
      - deploymentMode
      - role
      properties:
        mode:
          const: local_alpha
        authenticationClass:
          enum:
          - local_static_token
          - machine_session
        organizationId:
          oneOf:
          - type: string
            pattern: ^[a-z][a-z0-9_-]{2,127}$
          - type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
        scopes:
          type: array
          maxItems: 100
          uniqueItems: true
          items:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^(?:\*|[a-z][a-z0-9-]{0,62}(?::(?:\*|[a-z][a-z0-9-]{0,62}))?)$
        deploymentMode:
          description: 'Operator-facing deployment mode: fixture_demo/authenticated_sandbox in local_alpha, approved_production in production, degraded whenever live readiness fails regardless of mode.'
          enum:
          - fixture_demo
          - authenticated_sandbox
          - approved_production
          - degraded
        role:
          description: The resolved principal's organization role; null for a resolver that never set one.
          enum:
          - owner
          - admin
          - member
          - viewer
          - null
        expiresAt:
          description: 'Present only for ?include=expiresAt: the presenting token''s own expiry (ISO 8601 UTC), or null when it has none.'
          type:
          - string
          - 'null'
          format: date-time
        organizationName:
          description: 'Present only for ?include=organizationName: the organization''s display name, or null when the gateway could not read one.'
          type:
          - string
          - 'null'
          minLength: 1
          maxLength: 120
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer