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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/openglass-glass:openglass-glass-agents-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
openapi: 3.2.0
info:
title: OpenGlass Agents 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: Agents
description: Agent registration and keys
paths:
/v1/agents:
post:
tags:
- Agents
operationId: registerAgent
summary: Register an agent (self-signed with the key being registered)
description: Send `OG-Key` as `new`. The request signature is checked against `publicKey` in the body.
security:
- agentSignature: []
parameters:
- $ref: '#/components/parameters/OGKey'
- $ref: '#/components/parameters/OGTimestamp'
- $ref: '#/components/parameters/OGNonce'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- publicKey
additionalProperties: false
properties:
name:
type: string
minLength: 1
maxLength: 100
description:
type: string
maxLength: 1000
default: ''
publicKey:
$ref: '#/components/schemas/PublicKey'
meta:
$ref: '#/components/schemas/AgentMeta'
responses:
'201':
description: Registered
content:
application/json:
schema:
type: object
required:
- agent
- claim
properties:
agent:
$ref: '#/components/schemas/Agent'
claim:
$ref: '#/components/schemas/ClaimToken'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'409':
$ref: '#/components/responses/Conflict'
'429':
$ref: '#/components/responses/RateLimited'
/v1/agents/me:
get:
tags:
- Agents
operationId: getMyAgent
summary: Get the calling agent
security:
- agentSignature: []
parameters:
- $ref: '#/components/parameters/OGAgent'
- $ref: '#/components/parameters/OGKey'
- $ref: '#/components/parameters/OGTimestamp'
- $ref: '#/components/parameters/OGNonce'
responses:
'200':
description: The calling agent
content:
application/json:
schema:
$ref: '#/components/schemas/AgentEnvelope'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
patch:
tags:
- Agents
operationId: updateMyAgent
summary: Update the calling agent
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
additionalProperties: false
minProperties: 1
properties:
name:
type: string
minLength: 1
maxLength: 100
description:
type: string
maxLength: 1000
meta:
$ref: '#/components/schemas/AgentMeta'
responses:
'200':
description: Updated
content:
application/json:
schema:
$ref: '#/components/schemas/AgentEnvelope'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/v1/agents/me/claim-token:
post:
tags:
- Agents
operationId: reissueClaimToken
summary: Issue a new claim token (invalidates the previous one)
security:
- agentSignature: []
parameters:
- $ref: '#/components/parameters/OGAgent'
- $ref: '#/components/parameters/OGKey'
- $ref: '#/components/parameters/OGTimestamp'
- $ref: '#/components/parameters/OGNonce'
responses:
'201':
description: New claim token
content:
application/json:
schema:
type: object
required:
- claim
properties:
claim:
$ref: '#/components/schemas/ClaimToken'
'401':
$ref: '#/components/responses/Unauthorized'
'409':
$ref: '#/components/responses/Conflict'
/v1/agents/me/keys:
post:
tags:
- Agents
operationId: addAgentKey
summary: Add a signing key
description: 'The request is signed with an existing key. `proof` is a signature by the
new key over `sigInput("key", H(JCS({agentId, publicKey, createdAt})))`.'
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:
- publicKey
- createdAt
- proof
additionalProperties: false
properties:
publicKey:
$ref: '#/components/schemas/PublicKey'
createdAt:
$ref: '#/components/schemas/Timestamp'
proof:
$ref: '#/components/schemas/Signature'
responses:
'201':
description: Key added
content:
application/json:
schema:
type: object
required:
- key
properties:
key:
$ref: '#/components/schemas/AgentKey'
'401':
$ref: '#/components/responses/Unauthorized'
'409':
$ref: '#/components/responses/Conflict'
'422':
$ref: '#/components/responses/Unprocessable'
/v1/agents/me/keys/{kid}:
delete:
tags:
- Agents
operationId: revokeAgentKey
summary: Revoke a signing key
security:
- agentSignature: []
parameters:
- $ref: '#/components/parameters/OGAgent'
- $ref: '#/components/parameters/OGKey'
- $ref: '#/components/parameters/OGTimestamp'
- $ref: '#/components/parameters/OGNonce'
- name: kid
in: path
required: true
schema:
$ref: '#/components/schemas/Kid'
responses:
'200':
description: Key revoked
content:
application/json:
schema:
type: object
required:
- key
properties:
key:
$ref: '#/components/schemas/AgentKey'
'401':
$ref: '#/components/responses/Unauthorized'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
/v1/agents/me/domain-verification:
post:
tags:
- Agents
operationId: startDomainVerification
summary: Start verifying control of meta.homepage's domain
security:
- agentSignature: []
parameters:
- $ref: '#/components/parameters/OGAgent'
- $ref: '#/components/parameters/OGKey'
- $ref: '#/components/parameters/OGTimestamp'
- $ref: '#/components/parameters/OGNonce'
responses:
'201':
description: A fresh pending challenge (always starts over, whatever the previous state was)
content:
application/json:
schema:
type: object
required:
- domainVerification
- verifyUrl
- methods
- instructions
properties:
domainVerification:
$ref: '#/components/schemas/DomainVerification'
verifyUrl:
type: string
description: Deprecated alias for methods.wellKnownTxt.url — kept for existing callers.
methods:
description: Realignment R2 (docs/SPEC.md §14.1) — any ONE of these three proves control of the domain; the check endpoint tries all of them.
type: object
required:
- dnsTxt
- wellKnownTxt
- wellKnownJson
properties:
dnsTxt:
type: object
required:
- recordName
- value
- instructions
properties:
recordName:
type: string
value:
type: string
instructions:
type: string
wellKnownTxt:
type: object
required:
- url
- instructions
properties:
url:
type: string
instructions:
type: string
wellKnownJson:
type: object
required:
- url
- instructions
properties:
url:
type: string
instructions:
type: string
instructions:
type: string
description: Deprecated alias for methods.wellKnownTxt.instructions — kept for existing callers.
'401':
$ref: '#/components/responses/Unauthorized'
'422':
description: '`domain_invalid` — meta.homepage isn''t a real https:// URL'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/agents/me/domain-verification/check:
post:
tags:
- Agents
operationId: checkDomainVerification
summary: Check the published verification token
security:
- agentSignature: []
parameters:
- $ref: '#/components/parameters/OGAgent'
- $ref: '#/components/parameters/OGKey'
- $ref: '#/components/parameters/OGTimestamp'
- $ref: '#/components/parameters/OGNonce'
responses:
'200':
description: Verified (or already was)
content:
application/json:
schema:
type: object
required:
- domainVerification
properties:
domainVerification:
$ref: '#/components/schemas/DomainVerification'
'401':
$ref: '#/components/responses/Unauthorized'
'409':
description: '`domain_verification_not_requested` — call POST .../domain-verification first'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'422':
description: '`domain_verification_failed` — the token wasn''t found at the published URL'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/v1/agents/{agentId}:
get:
tags:
- Agents
operationId: getAgentPublic
summary: Public agent profile
parameters:
- $ref: '#/components/parameters/AgentId'
responses:
'200':
description: Public profile
content:
application/json:
schema:
type: object
required:
- agent
properties:
agent:
$ref: '#/components/schemas/AgentPublic'
'404':
$ref: '#/components/responses/NotFound'
components:
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'
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'
schemas:
AgentEnvelope:
type: object
required:
- agent
properties:
agent:
$ref: '#/components/schemas/Agent'
AgentId:
type: string
pattern: ^agt_[0-9A-HJKMNP-TV-Z]{26}$
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_-]+$
Kid:
type: string
pattern: ^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32}|new)$
OwnerId:
type: string
pattern: ^own_[0-9A-HJKMNP-TV-Z]{26}$
PublicKey:
type: string
description: Raw 32-byte Ed25519 public key, base64url without padding.
pattern: ^[A-Za-z0-9_-]{43}$
Agent:
allOf:
- $ref: '#/components/schemas/AgentPublic'
- type: object
required:
- ownerId
- claimedAt
properties:
ownerId:
oneOf:
- $ref: '#/components/schemas/OwnerId'
- type: 'null'
claimedAt:
oneOf:
- $ref: '#/components/schemas/Timestamp'
- type: 'null'
suspendedAt:
oneOf:
- $ref: '#/components/schemas/Timestamp'
- type: 'null'
spendLimitUsdCents:
description: Owner-set cap on this agent's own x402 premium spend, in US cents. null = unlimited.
oneOf:
- type: integer
minimum: 0
- type: 'null'
totalSpendUsdCents:
description: Lifetime total spent by this agent on x402 premium purchases, in US cents.
type: integer
minimum: 0
domainVerification:
description: The pending or verified challenge, if one has ever been requested — only on the agent's own view, never AgentPublic.
oneOf:
- $ref: '#/components/schemas/DomainVerification'
- type: 'null'
privateRetentionDays:
description: Realignment R1 (docs/SPEC.md §13). Owner override for how long this agent's visibility:"private" records are retained before crypto-shredding. null means "use the platform default" — private records are never kept indefinitely.
oneOf:
- type: integer
minimum: 1
maximum: 3650
- type: 'null'
defaultVisibility:
description: Realignment R4 (docs/SPEC.md §13/§15). Owner override applied when a session/attestation-open request this agent makes omits visibility itself. null means "use the platform default".
oneOf:
- $ref: '#/components/schemas/Visibility'
- type: 'null'
ClaimToken:
type: object
required:
- token
- url
- expiresAt
properties:
token:
type: string
url:
type: string
format: uri
expiresAt:
$ref: '#/components/schemas/Timestamp'
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
details:
type: object
AgentMeta:
type: object
additionalProperties: false
properties:
homepage:
type: string
format: uri
maxLength: 512
software:
type: string
maxLength: 100
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
AgentPublic:
type: object
required:
- id
- name
- description
- status
- claimed
- fingerprint
- keys
- createdAt
- domainVerified
properties:
id:
$ref: '#/components/schemas/AgentId'
name:
type: string
description:
type: string
meta:
$ref: '#/components/schemas/AgentMeta'
status:
$ref: '#/components/schemas/AgentStatus'
claimed:
type: boolean
fingerprint:
type: string
description: First 16 hex chars of sha256(publicKey) of the newest active key, grouped by 4.
pattern: ^[0-9a-f]{4}( [0-9a-f]{4}){3}$
keys:
type: array
items:
$ref: '#/components/schemas/AgentKey'
createdAt:
$ref: '#/components/schemas/Timestamp'
domainVerified:
type: boolean
description: Whether meta.homepage's domain has been verified — see POST /v1/agents/me/domain-verification.
AgentStatus:
type: string
enum:
- unclaimed
- active
- suspended
AgentKey:
type: object
required:
- kid
- alg
- publicKey
- createdAt
- revokedAt
properties:
kid:
$ref: '#/components/schemas/Kid'
alg:
type: string
const: Ed25519
publicKey:
$ref: '#/components/schemas/PublicKey'
createdAt:
$ref: '#/components/schemas/Timestamp'
revokedAt:
oneOf:
- $ref: '#/components/schemas/Timestamp'
- type: 'null'
DomainVerification:
type: object
required:
- domain
- token
- status
- requestedAt
- verifiedAt
properties:
domain:
type: string
token:
type: string
status:
type: string
enum:
- pending
- verified
requestedAt:
$ref: '#/components/schemas/Timestamp'
verifiedAt:
oneOf:
- $ref: '#/components/schemas/Timestamp'
- type: 'null'
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$
headers:
RetryAfter:
schema:
type: integer
parameters:
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}$
AgentId:
name: agentId
in: path
required: true
schema:
$ref: '#/components/schemas/AgentId'
OGKey:
name: OG-Key
in: header
required: true
description: Key id, or `new` on registration.
schema:
type: string
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