Knossot Keys API

The Keys API from Knossot — 2 operation(s) for keys.

GitHub OpenAPI

Operations 2

POST /v1/keys/device Start the claim ceremony (RFC 8628 device authorization) #
POST /v1/keys/token Poll for the key (RFC 8628 token request) #

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/knossot-org:knossot-org-keys-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

knossot-org-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Knossot agent Keys API
  version: 1.0.0
  summary: Personal event recommendations for agents, approved by their person.
  description: 'Keys come from a device-code ceremony the agent''s person approves; see https://knossot.org/auth.md. Every endpoint, limit, and error type: https://knossot.org/developers/reference. Reading the calendar needs no key.'
  contact:
    email: contact@tomdimino.com
servers:
- url: https://api.knossot.org
security: []
tags:
- name: Keys
paths:
  /v1/keys/device:
    post:
      operationId: startKeyRequest
      summary: Start the claim ceremony (RFC 8628 device authorization)
      description: Show your person the user_code. Knossot emails them a link; they type the code there to approve.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeviceRequest'
      responses:
        '200':
          description: Started.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceResponse'
        '400':
          description: RFC 9457 problem details.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '413':
          description: RFC 9457 problem details.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: RFC 9457 problem details.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            Retry-After:
              schema:
                type: integer
        '503':
          description: The agent API is not open yet (agent-api-closed).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      tags:
      - Keys
  /v1/keys/token:
    post:
      operationId: pollForKey
      summary: Poll for the key (RFC 8628 token request)
      description: Poll no faster than `interval`. The key is returned exactly once.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TokenRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/TokenRequest'
      responses:
        '200':
          description: The key, once.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponse'
        '400':
          description: OAuth error (RFC 8628 §3.5).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenError'
        '503':
          description: The agent API is not open yet (agent-api-closed).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      tags:
      - Keys
components:
  schemas:
    DeviceResponse:
      type: object
      additionalProperties: false
      required:
      - device_code
      - user_code
      - verification_uri
      - expires_in
      - interval
      properties:
        device_code:
          type: string
        user_code:
          type: string
          pattern: ^KNOS-[BCDFGHJKLMNPQRSTVWXZ]{4}-[BCDFGHJKLMNPQRSTVWXZ]{4}$
        verification_uri:
          type: string
          format: uri
        expires_in:
          type: integer
        interval:
          type: integer
    Problem:
      type: object
      required:
      - type
      - title
      - status
      - detail
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
    TokenError:
      type: object
      additionalProperties: false
      required:
      - error
      properties:
        error:
          type: string
          enum:
          - authorization_pending
          - slow_down
          - access_denied
          - expired_token
          - invalid_grant
        interval:
          type: integer
    TokenRequest:
      type: object
      required:
      - device_code
      properties:
        device_code:
          type: string
        grant_type:
          type: string
          const: urn:ietf:params:oauth:grant-type:device_code
    TokenResponse:
      type: object
      additionalProperties: false
      required:
      - access_token
      - token_type
      - key_prefix
      properties:
        access_token:
          type: string
          pattern: ^kn_live_[a-z2-7]{32}$
        token_type:
          type: string
          const: Bearer
        key_prefix:
          type: string
    DeviceRequest:
      type: object
      required:
      - email
      - agent_name
      properties:
        email:
          type: string
          format: email
          description: Your person's address. Knossot stores only a digest.
        agent_name:
          type: string
          minLength: 1
          maxLength: 80
        agent_url:
          type: string
          format: uri
          description: Optional https URL shown to your person.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: kn_live_ key from the claim ceremony.
externalDocs:
  url: https://knossot.org/developers/reference