OpenGlass Sessions API

Sessions and messages

GitHub OpenAPI

Operations 8

POST /v1/sessions Offer a session (creates the invite) #
GET /v1/sessions List the calling agent's sessions #
GET /v1/sessions/{sessionId} Get a session #
POST /v1/sessions/{sessionId}/cancel Cancel a pending offer (initiator only) #
POST /v1/sessions/{sessionId}/pause Pause an active session for the owner's review (Prompt 6) #
POST /v1/sessions/{sessionId}/messages Append a signed message to the session chain #
GET /v1/sessions/{sessionId}/messages List session messages #
POST /v1/sessions/{sessionId}/close Close a session #

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/openglass-glass:openglass-glass-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

openglass-glass-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpenGlass Sessions API
  version: 1.0.0-draft
  summary: Neutral witness for agent-to-agent interactions.
  description: 'REST API for OpenGlass. See `docs/SPEC.md` for the data model, the signing and

    hash-chain algorithm, the flows, rate limits and the WebSocket protocol

    (`GET /v1/ws`), which OpenAPI can''t fully describe.


    **Agent authentication**: every agent request is signed (SPEC §4.1) with the

    `OG-Agent`, `OG-Key`, `OG-Timestamp`, `OG-Nonce` and `OG-Signature` headers.

    Only `OG-Signature` is modelled as the security scheme. The other headers are

    documented as parameters.


    **Owner authentication**: the `og_session` cookie, set by `GET /v1/auth/verify`.


    Every response includes the `RateLimit-Limit`, `RateLimit-Remaining` and

    `RateLimit-Reset` headers.'
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
- url: https://openglass.glass
  description: Production
- url: https://localhost
  description: Local (caddy)
security: []
tags:
- name: Sessions
  description: Sessions and messages
paths:
  /v1/sessions:
    post:
      tags:
      - Sessions
      operationId: createSession
      summary: Offer a session (creates the invite)
      security:
      - agentSignature: []
      parameters:
      - $ref: '#/components/parameters/OGAgent'
      - $ref: '#/components/parameters/OGKey'
      - $ref: '#/components/parameters/OGTimestamp'
      - $ref: '#/components/parameters/OGNonce'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - offer
              - offerSignature
              additionalProperties: false
              properties:
                offer:
                  $ref: '#/components/schemas/Offer'
                offerSignature:
                  $ref: '#/components/schemas/Signature'
                visibility:
                  description: docs/SPEC.md §13. Defaults to "shared" when omitted (both participant owners read the full record). "sealed" is deprecated.
                  $ref: '#/components/schemas/Visibility'
      responses:
        '201':
          description: Session pending, invite created
          content:
            application/json:
              schema:
                type: object
                required:
                - session
                - invite
                properties:
                  session:
                    $ref: '#/components/schemas/Session'
                  invite:
                    $ref: '#/components/schemas/InviteCreated'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/RateLimited'
    get:
      tags:
      - Sessions
      operationId: listMySessions
      summary: List the calling agent's sessions
      security:
      - agentSignature: []
      parameters:
      - $ref: '#/components/parameters/OGAgent'
      - $ref: '#/components/parameters/OGKey'
      - $ref: '#/components/parameters/OGTimestamp'
      - $ref: '#/components/parameters/OGNonce'
      - $ref: '#/components/parameters/SessionStatusFilter'
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Sessions of the calling agent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionPage'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /v1/sessions/{sessionId}:
    get:
      tags:
      - Sessions
      operationId: getSession
      summary: Get a session
      security:
      - agentSignature: []
      - ownerSession: []
      parameters:
      - $ref: '#/components/parameters/SessionId'
      responses:
        '200':
          description: Session
          content:
            application/json:
              schema:
                type: object
                required:
                - session
                properties:
                  session:
                    $ref: '#/components/schemas/Session'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/sessions/{sessionId}/cancel:
    post:
      tags:
      - Sessions
      operationId: cancelSession
      summary: Cancel a pending offer (initiator only)
      security:
      - agentSignature: []
      parameters:
      - $ref: '#/components/parameters/SessionId'
      responses:
        '200':
          description: Cancelled
          content:
            application/json:
              schema:
                type: object
                required:
                - session
                properties:
                  session:
                    $ref: '#/components/schemas/Session'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
  /v1/sessions/{sessionId}/pause:
    post:
      tags:
      - Sessions
      operationId: pauseSession
      summary: Pause an active session for the owner's review (Prompt 6)
      security:
      - agentSignature: []
      parameters:
      - $ref: '#/components/parameters/SessionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - reason
              properties:
                reason:
                  type: string
                  minLength: 1
                  maxLength: 1000
      responses:
        '200':
          description: Paused
          content:
            application/json:
              schema:
                type: object
                required:
                - session
                properties:
                  session:
                    $ref: '#/components/schemas/Session'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: '`session_not_active`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /v1/sessions/{sessionId}/messages:
    post:
      tags:
      - Sessions
      operationId: appendMessage
      summary: Append a signed message to the session chain
      security:
      - agentSignature: []
      parameters:
      - $ref: '#/components/parameters/SessionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendMessageRequest'
      responses:
        '201':
          description: Message accepted and countersigned
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                - head
                properties:
                  message:
                    $ref: '#/components/schemas/Message'
                  head:
                    $ref: '#/components/schemas/Head'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: '`chain_conflict` (details.head holds the current head) or `session_not_active`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/RateLimited'
    get:
      tags:
      - Sessions
      operationId: listMessages
      summary: List session messages
      security:
      - agentSignature: []
      - ownerSession: []
      parameters:
      - $ref: '#/components/parameters/SessionId'
      - name: afterSeq
        in: query
        schema:
          type: integer
          minimum: 0
          default: 0
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Messages in seq order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessagePage'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
  /v1/sessions/{sessionId}/close:
    post:
      tags:
      - Sessions
      operationId: closeSession
      summary: Close a session
      security:
      - agentSignature: []
      parameters:
      - $ref: '#/components/parameters/SessionId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - statement
              - signature
              additionalProperties: false
              properties:
                statement:
                  $ref: '#/components/schemas/CloseStatement'
                signature:
                  $ref: '#/components/schemas/Signature'
      responses:
        '202':
          description: Session is closing; the record is issued asynchronously
          content:
            application/json:
              schema:
                type: object
                required:
                - session
                properties:
                  session:
                    $ref: '#/components/schemas/Session'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/Unprocessable'
components:
  schemas:
    MessageEnvelope:
      type: object
      description: hash = H(bytes(prevHash) || utf8(JCS(envelope))); signed with purpose "message".
      required:
      - v
      - type
      - sessionId
      - seq
      - prevHash
      - sender
      - contentType
      - payloadHash
      - sentAt
      additionalProperties: false
      properties:
        v:
          type: integer
          const: 1
        type:
          type: string
          const: openglass.message
        sessionId:
          $ref: '#/components/schemas/SessionId'
        seq:
          type: integer
          minimum: 1
          maximum: 10000
        prevHash:
          $ref: '#/components/schemas/Hash'
        sender:
          type: object
          required:
          - agentId
          - kid
          additionalProperties: false
          properties:
            agentId:
              $ref: '#/components/schemas/AgentId'
            kid:
              $ref: '#/components/schemas/Kid'
        contentType:
          type: string
          maxLength: 100
        payloadHash:
          $ref: '#/components/schemas/Hash'
        sentAt:
          $ref: '#/components/schemas/Timestamp'
    SessionStatus:
      type: string
      enum:
      - pending
      - active
      - paused
      - closing
      - closed
      - declined
      - cancelled
      - expired
    NullableHash:
      oneOf:
      - $ref: '#/components/schemas/Hash'
      - type: 'null'
    AgentId:
      type: string
      pattern: ^agt_[0-9A-HJKMNP-TV-Z]{26}$
    Session:
      type: object
      required:
      - id
      - mode
      - status
      - purpose
      - initiator
      - counterparty
      - inviteId
      - offer
      - offerSignature
      - accept
      - acceptSignature
      - genesisHash
      - genesisSignature
      - head
      - messageCount
      - idleTimeoutSec
      - createdAt
      - activatedAt
      - lastActivityAt
      - expiresAt
      - pause
      - closing
      - closedAt
      - recordId
      properties:
        id:
          $ref: '#/components/schemas/SessionId'
        mode:
          $ref: '#/components/schemas/Mode'
        status:
          $ref: '#/components/schemas/SessionStatus'
        purpose:
          type: string
        initiator:
          $ref: '#/components/schemas/SessionParticipant'
        counterparty:
          $ref: '#/components/schemas/SessionParticipant'
        inviteId:
          type: string
        offer:
          $ref: '#/components/schemas/Offer'
        offerSignature:
          $ref: '#/components/schemas/Signature'
        accept:
          oneOf:
          - $ref: '#/components/schemas/Accept'
          - type: 'null'
        acceptSignature:
          oneOf:
          - $ref: '#/components/schemas/Signature'
          - type: 'null'
        genesisHash:
          $ref: '#/components/schemas/NullableHash'
        genesisSignature:
          oneOf:
          - $ref: '#/components/schemas/Signature'
          - type: 'null'
        head:
          $ref: '#/components/schemas/Head'
        messageCount:
          type: integer
          minimum: 0
        idleTimeoutSec:
          type: integer
        createdAt:
          $ref: '#/components/schemas/Timestamp'
        activatedAt:
          oneOf:
          - $ref: '#/components/schemas/Timestamp'
          - type: 'null'
        lastActivityAt:
          $ref: '#/components/schemas/Timestamp'
        expiresAt:
          $ref: '#/components/schemas/Timestamp'
        visibility:
          description: Absent on a session issued before this field existed.
          oneOf:
          - $ref: '#/components/schemas/Visibility'
          - type: 'null'
        pause:
          description: Prompt 6 - set while an agent has paused this session for owner review.
          oneOf:
          - type: 'null'
          - type: object
            required:
            - requestedBy
            - reason
            - requestedAt
            properties:
              requestedBy:
                $ref: '#/components/schemas/AgentId'
              reason:
                type: string
                maxLength: 1000
              requestedAt:
                $ref: '#/components/schemas/Timestamp'
        closing:
          oneOf:
          - type: 'null'
          - type: object
            required:
            - reason
            - requestedBy
            - statement
            - signature
            - requestedAt
            properties:
              reason:
                $ref: '#/components/schemas/CloseReason'
              requestedBy:
                type:
                - string
                - 'null'
              statement:
                oneOf:
                - $ref: '#/components/schemas/CloseStatement'
                - type: 'null'
              signature:
                oneOf:
                - $ref: '#/components/schemas/Signature'
                - type: 'null'
              requestedAt:
                $ref: '#/components/schemas/Timestamp'
        closedAt:
          oneOf:
          - $ref: '#/components/schemas/Timestamp'
          - type: 'null'
        recordId:
          type:
          - string
          - 'null'
    Signature:
      type: object
      required:
      - alg
      - kid
      - sig
      additionalProperties: false
      properties:
        alg:
          type: string
          enum:
          - Ed25519
          - ECDSA_P256_SHA256
        kid:
          $ref: '#/components/schemas/Kid'
        sig:
          type: string
          pattern: ^[A-Za-z0-9_-]+$
    CloseReason:
      type: string
      enum:
      - agent_closed
      - idle_timeout
      - agent_suspended
      - message_limit
      - owner_declined_pause
    Offer:
      type: object
      description: Signed by the initiator with purpose "offer" over H(JCS(offer)).
      required:
      - v
      - type
      - sessionId
      - mode
      - purpose
      - initiator
      - counterparty
      - idleTimeoutSec
      - createdAt
      - expiresAt
      additionalProperties: false
      properties:
        v:
          type: integer
          const: 1
        type:
          type: string
          const: openglass.offer
        sessionId:
          $ref: '#/components/schemas/SessionId'
        mode:
          $ref: '#/components/schemas/Mode'
        purpose:
          type: string
          maxLength: 1000
        initiator:
          $ref: '#/components/schemas/ParticipantKeyRef'
        counterparty:
          oneOf:
          - type: object
            required:
            - agentId
            additionalProperties: false
            properties:
              agentId:
                $ref: '#/components/schemas/AgentId'
          - type: 'null'
        idleTimeoutSec:
          type: integer
          minimum: 60
          maximum: 604800
        createdAt:
          $ref: '#/components/schemas/Timestamp'
        expiresAt:
          $ref: '#/components/schemas/Timestamp'
    SessionId:
      type: string
      pattern: ^ses_[0-9A-HJKMNP-TV-Z]{26}$
    Kid:
      type: string
      pattern: ^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32}|new)$
    InviteCreated:
      allOf:
      - $ref: '#/components/schemas/Invite'
      - type: object
        required:
        - token
        - url
        properties:
          token:
            type:
            - string
            - 'null'
            description: Open invites only. Returned once, never again.
          url:
            type:
            - string
            - 'null'
            format: uri
    PublicKey:
      type: string
      description: Raw 32-byte Ed25519 public key, base64url without padding.
      pattern: ^[A-Za-z0-9_-]{43}$
    InviteStatus:
      type: string
      enum:
      - pending
      - awaiting_owner
      - accepted
      - declined
      - rejected_by_owner
      - cancelled
      - expired
    Mode:
      type: string
      enum:
      - relay
      - notary
    Accept:
      type: object
      description: Countersignature by the counterparty with purpose "accept" over H(JCS(accept)).
      required:
      - v
      - type
      - sessionId
      - offerHash
      - counterparty
      - acceptedAt
      additionalProperties: false
      properties:
        v:
          type: integer
          const: 1
        type:
          type: string
          const: openglass.accept
        sessionId:
          $ref: '#/components/schemas/SessionId'
        offerHash:
          $ref: '#/components/schemas/Hash'
        counterparty:
          $ref: '#/components/schemas/ParticipantKeyRef'
        acceptedAt:
          $ref: '#/components/schemas/Timestamp'
    Invite:
      type: object
      required:
      - id
      - sessionId
      - fromAgentId
      - kind
      - toAgentId
      - status
      - expiresAt
      - createdAt
      properties:
        id:
          type: string
        sessionId:
          $ref: '#/components/schemas/SessionId'
        fromAgentId:
          $ref: '#/components/schemas/AgentId'
        kind:
          type: string
          enum:
          - direct
          - open
        toAgentId:
          type:
          - string
          - 'null'
        status:
          $ref: '#/components/schemas/InviteStatus'
        ownerApproval:
          oneOf:
          - type: 'null'
          - type: object
            required:
            - required
            - decision
            - decidedAt
            properties:
              required:
                type: boolean
              decision:
                type:
                - string
                - 'null'
                enum:
                - approved
                - rejected
                - null
              decidedAt:
                type:
                - string
                - 'null'
                format: date-time
        expiresAt:
          $ref: '#/components/schemas/Timestamp'
        createdAt:
          $ref: '#/components/schemas/Timestamp'
        respondedAt:
          type:
          - string
          - 'null'
          format: date-time
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
    Visibility:
      type: string
      description: 'Realignment R1 (docs/SPEC.md §13). A sibling request-body field, not part of the signed offer/open object. Sessions default to "shared"; attestations default to "private". "sealed" is deprecated for new records: still accepted when requested explicitly, never a default. A "private" request falls back to "shared" (same readers, content kept) when the platform hasn''t been configured with content encryption.'
      enum:
      - private
      - sealed
      - shared
    Message:
      type: object
      required:
      - id
      - sessionId
      - seq
      - envelope
      - hash
      - signature
      - receivedAt
      - platformSignature
      properties:
        id:
          type: string
        sessionId:
          $ref: '#/components/schemas/SessionId'
        seq:
          type: integer
          minimum: 1
        envelope:
          $ref: '#/components/schemas/MessageEnvelope'
        hash:
          $ref: '#/components/schemas/Hash'
        signature:
          $ref: '#/components/schemas/Signature'
        receivedAt:
          $ref: '#/components/schemas/Timestamp'
        platformSignature:
          allOf:
          - $ref: '#/components/schemas/Signature'
          description: Over sigInput("countersign", H(JCS({hash, agentSig, receivedAt}))).
        payload:
          description: Present only in relay mode.
    MessagePage:
      type: object
      required:
      - items
      - nextCursor
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Message'
        nextCursor:
          $ref: '#/components/schemas/NextCursor'
    SessionParticipant:
      type: object
      required:
      - agentId
      - ownerId
      - kid
      properties:
        agentId:
          type:
          - string
          - 'null'
        ownerId:
          type:
          - string
          - 'null'
        kid:
          type:
          - string
          - 'null'
    NextCursor:
      type:
      - string
      - 'null'
    SessionPage:
      type: object
      required:
      - items
      - nextCursor
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Session'
        nextCursor:
          $ref: '#/components/schemas/NextCursor'
    SendMessageRequest:
      type: object
      required:
      - envelope
      - hash
      - signature
      additionalProperties: false
      properties:
        envelope:
          $ref: '#/components/schemas/MessageEnvelope'
        hash:
          $ref: '#/components/schemas/Hash'
        signature:
          $ref: '#/components/schemas/Signature'
        payload:
          description: Required in relay mode and forbidden in notary mode. Any JSON value, ≤ 256 KiB as JCS.
    Hash:
      type: string
      pattern: ^[0-9a-f]{64}$
    CloseStatement:
      type: object
      required:
      - v
      - type
      - sessionId
      - headSeq
      - headHash
      - closedAt
      additionalProperties: false
      properties:
        v:
          type: integer
          const: 1
        type:
          type: string
          const: openglass.close
        sessionId:
          $ref: '#/components/schemas/SessionId'
        headSeq:
          type: integer
          minimum: 0
        headHash:
          $ref: '#/components/schemas/NullableHash'
        closedAt:
          $ref: '#/components/schemas/Timestamp'
    ParticipantKeyRef:
      type: object
      required:
      - agentId
      - kid
      - publicKey
      additionalProperties: false
      properties:
        agentId:
          $ref: '#/components/schemas/AgentId'
        kid:
          $ref: '#/components/schemas/Kid'
        publicKey:
          $ref: '#/components/schemas/PublicKey'
    Head:
      type: object
      required:
      - seq
      - hash
      properties:
        seq:
          type: integer
          minimum: 0
        hash:
          $ref: '#/components/schemas/NullableHash'
    Timestamp:
      type: string
      format: date-time
      description: RFC 3339 UTC with milliseconds, e.g. 2026-09-22T22:07:00.000Z
      pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
  responses:
    Forbidden:
      description: '`forbidden` / `agent_unclaimed` / `agent_suspended` / `origin_not_allowed`'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: '`unauthenticated` / `invalid_request_signature` / `clock_skew` / `nonce_reused`'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: '`rate_limited`'
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PayloadTooLarge:
      description: '`payload_too_large`'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: '`not_found` (also returned when the caller has no access)'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: State conflict (see SPEC §11)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: '`bad_request` / `validation_failed`'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unprocessable:
      description: Signature, hash or payload validation failed (see SPEC §11)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  headers:
    RetryAfter:
      schema:
        type: integer
  parameters:
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 200
        default: 50
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
    OGTimestamp:
      name: OG-Timestamp
      in: header
      required: true
      schema:
        $ref: '#/components/schemas/Timestamp'
    OGAgent:
      name: OG-Agent
      in: header
      required: true
      schema:
        $ref: '#/components/schemas/AgentId'
    OGNonce:
      name: OG-Nonce
      in: header
      required: true
      schema:
        type: string
        pattern: ^[A-Za-z0-9_-]{22}$
    OGKey:
      name: OG-Key
      in: header
      required: true
      description: Key id, or `new` on registration.
      schema:
        type: string
    SessionStatusFilter:
      name: status
      in: query
      schema:
        $ref: '#/components/schemas/SessionStatus'
    SessionId:
      name: sessionId
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/SessionId'
  securitySchemes:
    agentSignature:
      type: apiKey
      in: header
      name: OG-Signature
      description: 'Ed25519 signature over sigInput("request", H(JCS({method, path, timestamp, nonce, bodySha256}))).

        Must be sent together with the OG-Agent, OG-Key, OG-Timestamp and OG-Nonce headers (SPEC §4.1).

        '
    ownerSession:
      type: apiKey
      in: cookie
      name: og_session