{
  "openapi": "3.1.0",
  "info": {
    "title": "Agentic Intelligence Systems API",
    "summary": "Read and search the AIS website, and send a message to the founders.",
    "description": "The HTTP API of agenticintelligencesystems.com, the public website of Agentic Intelligence Systems Inc. (AIS).\n\nIt does three things: reads the website as data, searches it, and sends a message to the founders. It does not reach the AIS products. Those are behind the AIS hub at https://app.agenticintelligencesystems.com/mcp, which signs agents in with OAuth.\n\n**Authentication.** None. Every operation is public. Send no API key, token or cookie.\n\n**Sandbox.** Every path here also works under `https://agenticintelligencesystems.com/sandbox`, the second server in this description. The sandbox validates and echoes, stores nothing and sends nothing, and its answers carry `AIS-Sandbox: true`. On production, `POST /api/subscribe?dry_run=1` tests one call the same way.\n\n**Idempotency.** `POST /api/subscribe` accepts an `Idempotency-Key` header. A retry with the same key within 24 hours gets the first answer and stores nothing new.\n\n**Rate limits.** Every answer carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`. A 429 also carries `Retry-After`. Messages: 10 an hour per caller. Dry runs: 60 an hour. Reads: 120 a minute. Limits are counted per server instance, so they are a floor on what you may send.\n\n**Errors.** Every error is JSON in the RFC 9457 problem format (`application/problem+json`) with a stable `code`.\n\n**Versioning.** The API version is a date, today `2026-11-10`, sent on every answer in the `AIS-API-Version` header. New fields, operations and optional parameters are added without a new version. A change that could break a caller gets a new version date. The old version then keeps working for at least 90 days and answers with `Deprecation` and `Sunset` headers that give the end date. A caller may pin a version by sending `AIS-API-Version`.",
    "version": "2026-11-10",
    "contact": {
      "name": "AIS founders",
      "url": "https://agenticintelligencesystems.com/#contact",
      "email": "info@agenticintelligencesystems.com"
    },
    "termsOfService": "https://agenticintelligencesystems.com/terms/"
  },
  "x-api-version": "2026-11-10",
  "x-api-version-policy": {
    "scheme": "date",
    "header": "AIS-API-Version",
    "current": "2026-11-10",
    "supported": [
      "2026-11-10"
    ],
    "additive_changes": "New fields, operations and optional parameters ship without a new version.",
    "breaking_changes": "A breaking change gets a new version date. The old version keeps working for at least 90 days.",
    "deprecation_signal": "Deprecation and Sunset response headers (RFC 9745 and RFC 8594) on every answer from a version that is ending.",
    "documentation": "https://agenticintelligencesystems.com/developers/#versioning"
  },
  "externalDocs": {
    "description": "Agentic Intelligence Systems API docs: examples, the sandbox, limits, errors and the versioning policy",
    "url": "https://agenticintelligencesystems.com/developers/"
  },
  "servers": [
    {
      "url": "https://agenticintelligencesystems.com",
      "description": "Production"
    },
    {
      "url": "https://agenticintelligencesystems.com/sandbox",
      "description": "Sandbox: validates and echoes, stores nothing, sends nothing"
    }
  ],
  "x-sandbox": {
    "url": "https://agenticintelligencesystems.com/sandbox",
    "documentation": "https://agenticintelligencesystems.com/sandbox/",
    "behaviour": "Every path in this description also works under /sandbox. Messages are validated and echoed, never stored and never emailed. Answers carry the header AIS-Sandbox: true."
  },
  "security": [],
  "tags": [
    {
      "name": "contact",
      "description": "Send a message to the founders."
    },
    {
      "name": "read",
      "description": "Read and search the website. Safe to call freely."
    },
    {
      "name": "agents",
      "description": "Agent protocol endpoints: MCP and A2A."
    },
    {
      "name": "discovery",
      "description": "Machine-readable descriptions of this API."
    }
  ],
  "paths": {
    "/api/subscribe": {
      "post": {
        "operationId": "request_early_access",
        "tags": [
          "contact"
        ],
        "summary": "Send a message to the AIS founders",
        "description": "Stores a message from a person and emails it to the founders, as the contact form on the website does. A founder replies to the email given. Use it to request early access, book a demo, talk about investing, propose a program or share research. An agent must show the person the message and get their yes before calling this. Add `dry_run=1` to test without sending. Send `Idempotency-Key` so a retry does not send twice.",
        "parameters": [
          {
            "$ref": "#/components/parameters/DryRun"
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          },
          {
            "$ref": "#/components/parameters/ApiVersion"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactMessage"
              },
              "examples": {
                "access": {
                  "summary": "A team asking for early access",
                  "value": {
                    "name": "Ada Test",
                    "email": "ada@example.com",
                    "door": "partner",
                    "message": "We would like early access to Software Factory for a team of six."
                  }
                },
                "investor": {
                  "summary": "An investor",
                  "value": {
                    "name": "Sam Example",
                    "email": "sam@example.com",
                    "door": "investor",
                    "message": "I would like to talk about your next round."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The message was stored. With dry_run, the message was checked and nothing was stored.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              },
              "Idempotency-Replayed": {
                "$ref": "#/components/headers/Idempotency-Replayed"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContactDryRun"
                    },
                    {
                      "$ref": "#/components/schemas/ContactAccepted"
                    }
                  ]
                },
                "examples": {
                  "sent": {
                    "summary": "Stored and emailed",
                    "value": {
                      "ok": true
                    }
                  },
                  "dry_run": {
                    "summary": "Answer to ?dry_run=1",
                    "value": {
                      "ok": true,
                      "dry_run": true,
                      "stored": false,
                      "emailed": false,
                      "would_send": {
                        "name": "Ada Test",
                        "email": "ada@example.com",
                        "door": "partner",
                        "writing_as": "A team that wants access",
                        "message": "We would like early access to Software Factory for a team of six."
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The message is not valid. `field` names the part to fix.",
            "headers": {
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "https://agenticintelligencesystems.com/developers/#error-invalid_email",
                  "title": "Bad request",
                  "status": 400,
                  "detail": "Please add a valid email address.",
                  "code": "invalid_email",
                  "ok": false,
                  "error": "Please add a valid email address.",
                  "fallback_email": "info@agenticintelligencesystems.com",
                  "field": "email"
                }
              }
            }
          },
          "405": {
            "description": "Only POST is allowed.",
            "headers": {
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "https://agenticintelligencesystems.com/developers/#error-method_not_allowed",
                  "title": "Method not allowed",
                  "status": 405,
                  "detail": "Method not allowed.",
                  "code": "method_not_allowed",
                  "ok": false,
                  "error": "Method not allowed.",
                  "fallback_email": "info@agenticintelligencesystems.com"
                }
              }
            }
          },
          "409": {
            "description": "The Idempotency-Key was already used with a different message.",
            "headers": {
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "https://agenticintelligencesystems.com/developers/#error-idempotency_key_reused",
                  "title": "Conflict",
                  "status": 409,
                  "detail": "This Idempotency-Key was already used with a different message. Use a new key for a new message.",
                  "code": "idempotency_key_reused",
                  "ok": false,
                  "error": "This Idempotency-Key was already used with a different message. Use a new key for a new message.",
                  "fallback_email": "info@agenticintelligencesystems.com"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "502": {
            "description": "The message could not be stored, so it was not sent. Try again, or use fallback_email.",
            "headers": {
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "https://agenticintelligencesystems.com/developers/#error-not_saved",
                  "title": "Could not save",
                  "status": 502,
                  "detail": "We couldn't save your message. Please try again, or email us.",
                  "code": "not_saved",
                  "ok": false,
                  "error": "We couldn't save your message. Please try again, or email us.",
                  "fallback_email": "info@agenticintelligencesystems.com"
                }
              }
            }
          },
          "503": {
            "description": "Messages are not being accepted right now. Nothing was recorded.",
            "headers": {
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "https://agenticintelligencesystems.com/developers/#error-not_accepting",
                  "title": "Not available",
                  "status": 503,
                  "detail": "Messages are not being accepted right now. Your message was not recorded.",
                  "code": "not_accepting",
                  "ok": false,
                  "error": "Messages are not being accepted right now. Your message was not recorded.",
                  "fallback_email": "info@agenticintelligencesystems.com"
                }
              }
            }
          }
        }
      }
    },
    "/ask": {
      "get": {
        "operationId": "ask_site_get",
        "tags": [
          "read"
        ],
        "summary": "Ask the website a question (GET)",
        "description": "Searches everything the website says and returns the matching passages with links, following NLWeb 0.55. It matches words and quotes the site. It does not write an answer. A question the site does not cover gets a NO_RESULTS failure with HTTP 200. Add `streaming=true` for server-sent events.",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "The question, 1 to 2000 characters. `q` is accepted as a short form.",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2000
            },
            "example": "can we use our own models"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many results, 1 to 20.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 5
            }
          },
          {
            "name": "streaming",
            "in": "query",
            "required": false,
            "description": "true to get server-sent events: start, one result per item, complete.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "query_id",
            "in": "query",
            "required": false,
            "description": "Your own id for this question. It is echoed back.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "$ref": "#/components/parameters/ApiVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "Matching items, or an NLWeb failure such as NO_RESULTS.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AskAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/AskFailure"
                    }
                  ]
                },
                "examples": {
                  "answer": {
                    "$ref": "#/components/examples/AskAnswer"
                  },
                  "none": {
                    "$ref": "#/components/examples/AskNoResults"
                  }
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "NLWeb events: start, result, error, complete. Each data line is JSON."
                },
                "example": "event: start\ndata: {\"_meta\":{\"response_type\":\"answer\",\"response_format\":\"conversational_search\",\"version\":\"0.55\",\"streaming\":true,\"request_id\":\"0b6f6c0e-6a55-4f0f-9d0a-2f3f0c6f1a11\"}}\n\nevent: result\ndata: {\"index\":0,\"item\":{\"@type\":\"Question\",\"url\":\"https://agenticintelligencesystems.com/#contact\",\"name\":\"Which agents and models can we use?\",\"site\":\"agenticintelligencesystems.com\",\"score\":0.386,\"description\":\"Your own. Bring the computers, models and tools your team already has.\"}}\n\nevent: complete\ndata: {\"_meta\":{\"response_type\":\"answer\",\"response_format\":\"conversational_search\",\"version\":\"0.55\",\"streaming\":true,\"result_count\":1}}\n\n"
              }
            }
          },
          "400": {
            "description": "The question is missing or too long.",
            "headers": {
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AskFailure"
                },
                "example": {
                  "_meta": {
                    "response_type": "failure",
                    "response_format": "conversational_search",
                    "version": "0.55"
                  },
                  "error": {
                    "code": "INVALID_QUERY",
                    "message": "Give a question of 1 to 2000 characters: POST {\"query\": {\"text\": \"...\"}} or GET /ask?query=...",
                    "status": 400
                  },
                  "type": "https://agenticintelligencesystems.com/developers/#error-invalid_query",
                  "title": "Bad request",
                  "status": 400,
                  "detail": "Give a question of 1 to 2000 characters: POST {\"query\": {\"text\": \"...\"}} or GET /ask?query=...",
                  "code": "invalid_query"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      },
      "post": {
        "operationId": "ask_site",
        "tags": [
          "read"
        ],
        "summary": "Ask the website a question (NLWeb)",
        "description": "The NLWeb 0.55 ask request. Put the question in `query.text`. Set `prefer.streaming` to true, or send `Accept: text/event-stream`, for server-sent events. Only the `list` mode and the `conversational_search` format are supported. Any other value gets an UNSUPPORTED_MODE or UNSUPPORTED_FORMAT failure with HTTP 200.",
        "parameters": [
          {
            "$ref": "#/components/parameters/ApiVersion"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AskRequest"
              },
              "example": {
                "query": {
                  "text": "What does Software Factory do?"
                },
                "prefer": {
                  "streaming": false,
                  "mode": "list",
                  "limit": 3
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Matching items, or an NLWeb failure such as NO_RESULTS.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AskAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/AskFailure"
                    }
                  ]
                },
                "examples": {
                  "answer": {
                    "$ref": "#/components/examples/AskAnswer"
                  },
                  "none": {
                    "$ref": "#/components/examples/AskNoResults"
                  }
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "NLWeb events: start, result, error, complete. Each data line is JSON."
                }
              }
            }
          },
          "400": {
            "description": "The body is not JSON, or the question is missing or too long.",
            "headers": {
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AskFailure"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/api/sections": {
      "get": {
        "operationId": "list_sections",
        "tags": [
          "read"
        ],
        "summary": "List the sections of the website",
        "description": "Lists the parts of the home page and the three products, a page at a time. Pass `next_cursor` from one answer as `cursor` to get the next page. When `has_more` is false you have them all.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Items per page, 1 to 50.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 5
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "The next_cursor value from the previous page. Leave it out for the first page.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/ApiVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "One page of sections.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SectionList"
                },
                "example": {
                  "items": [
                    {
                      "id": "overview",
                      "kind": "section",
                      "title": "AI agents your company can trust with its most important work",
                      "url": "https://agenticintelligencesystems.com/",
                      "api_url": "https://agenticintelligencesystems.com/api/sections/overview"
                    },
                    {
                      "id": "why",
                      "kind": "section",
                      "title": "Why we built AIS",
                      "url": "https://agenticintelligencesystems.com/#why",
                      "api_url": "https://agenticintelligencesystems.com/api/sections/why"
                    }
                  ],
                  "has_more": true,
                  "next_cursor": "bzoy",
                  "total": 13
                }
              }
            }
          },
          "400": {
            "description": "limit or cursor is not valid.",
            "headers": {
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "https://agenticintelligencesystems.com/developers/#error-invalid_cursor",
                  "title": "Bad request",
                  "status": 400,
                  "detail": "cursor is not one this API issued. Leave it out to start from the first page.",
                  "code": "invalid_cursor",
                  "ok": false,
                  "error": "cursor is not one this API issued. Leave it out to start from the first page.",
                  "fallback_email": "info@agenticintelligencesystems.com",
                  "field": "cursor"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/api/sections/{id}": {
      "get": {
        "operationId": "get_section",
        "tags": [
          "read"
        ],
        "summary": "Read one section of the website",
        "description": "Returns the full text of one section of the home page, or of one product, as markdown.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The section id, from list_sections.",
            "schema": {
              "type": "string",
              "enum": [
                "overview",
                "why",
                "products",
                "fit",
                "vision",
                "build",
                "roadmap",
                "team",
                "principles",
                "contact",
                "factory",
                "studio",
                "multiplayer"
              ]
            },
            "example": "roadmap"
          },
          {
            "$ref": "#/components/parameters/ApiVersion"
          }
        ],
        "responses": {
          "200": {
            "description": "The section.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Section"
                },
                "example": {
                  "id": "team",
                  "kind": "section",
                  "title": "Who's building AIS",
                  "url": "https://agenticintelligencesystems.com/#team",
                  "text": "### Barbara Timm-Brock\n\nCo-Founder, CEO\n\n### Athena Aktipis\n\nCo-Founder, Chief Scientist\n\n### Rayyan Zahid\n\nCo-Founder, Engineering\n\nThree founders build AIS with their own agents."
                }
              }
            }
          },
          "404": {
            "description": "There is no section with this id.",
            "headers": {
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "https://agenticintelligencesystems.com/developers/#error-section_not_found",
                  "title": "Not found",
                  "status": 404,
                  "detail": "There is no section called pricing. GET /api/sections lists them.",
                  "code": "section_not_found",
                  "ok": false,
                  "error": "There is no section called pricing. GET /api/sections lists them.",
                  "fallback_email": "info@agenticintelligencesystems.com",
                  "available": [
                    "overview",
                    "why",
                    "products",
                    "fit",
                    "vision",
                    "build",
                    "roadmap",
                    "team",
                    "principles",
                    "contact",
                    "factory",
                    "studio",
                    "multiplayer"
                  ]
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "mcp_message",
        "tags": [
          "agents"
        ],
        "summary": "MCP server (Streamable HTTP)",
        "description": "The Model Context Protocol endpoint. Send one JSON-RPC 2.0 message per request and read one JSON answer. The server is stateless: no session, no event stream. Protocol versions 2025-06-18 and 2025-03-26. Methods: initialize, ping, tools/list, tools/call, resources/list, resources/read. Tools: ais_list_products, ais_get_section, ais_search_site, ais_get_policy and ais_request_early_access. This is the product server. Two tools carry an MCP Apps view, read as ui:// resources. Questions about the site itself go to /docs-mcp. A notification gets 202 with no body. Most callers should use an MCP client and point it at this address.",
        "parameters": [
          {
            "name": "MCP-Protocol-Version",
            "in": "header",
            "required": false,
            "description": "The protocol version agreed at initialize.",
            "schema": {
              "type": "string",
              "enum": [
                "2025-06-18",
                "2025-03-26"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonRpcRequest"
              },
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "tools/call",
                "params": {
                  "name": "ais_search_site",
                  "arguments": {
                    "query": "who is AIS for",
                    "limit": 3
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A JSON-RPC result or error.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                },
                "example": {
                  "jsonrpc": "2.0",
                  "id": 1,
                  "result": {
                    "content": [
                      {
                        "type": "text",
                        "text": "{\"query\":\"who is AIS for\",\"count\":1,\"results\":[]}"
                      }
                    ],
                    "structuredContent": {
                      "query": "who is AIS for",
                      "count": 1,
                      "results": []
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "A JSON-RPC notification was received, as the MCP transport requires. This is an acknowledgement and no job was started, so there is nothing to poll. No body."
          },
          "400": {
            "description": "The body is not JSON (code -32700) or not a JSON-RPC message (code -32600).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                },
                "example": {
                  "jsonrpc": "2.0",
                  "id": null,
                  "error": {
                    "code": -32700,
                    "message": "Parse error: the body is not valid JSON."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Retry-After says how long to wait.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          }
        }
      }
    },
    "/docs-mcp": {
      "post": {
        "operationId": "docs_mcp_message",
        "tags": [
          "agents"
        ],
        "summary": "Documentation MCP server (Streamable HTTP)",
        "description": "The second Model Context Protocol endpoint, for the documentation. It works like /mcp and is read only. Tools: ais_docs_search finds the passage that answers a question about using this website, and ais_docs_read returns one whole document.",
        "parameters": [
          {
            "name": "MCP-Protocol-Version",
            "in": "header",
            "required": false,
            "description": "The protocol version agreed at initialize.",
            "schema": {
              "type": "string",
              "enum": [
                "2025-06-18",
                "2025-03-26"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonRpcRequest"
              },
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "tools/call",
                "params": {
                  "name": "ais_docs_search",
                  "arguments": {
                    "query": "rate limits"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A JSON-RPC result or error.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "202": {
            "description": "A JSON-RPC notification was received, as the MCP transport requires. This is an acknowledgement and no job was started, so there is nothing to poll. No body."
          },
          "400": {
            "description": "The body is not JSON (code -32700) or not a JSON-RPC message (code -32600).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Retry-After says how long to wait.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          }
        }
      }
    },
    "/a2a": {
      "post": {
        "operationId": "a2a_message",
        "tags": [
          "agents"
        ],
        "summary": "A2A agent endpoint (JSON-RPC)",
        "description": "The Agent2Agent endpoint, protocol 0.3.0. The only working method is `message/send`. A text part is a question and the answer holds the matching passages. A data part `{\"tool\": \"<name>\", \"arguments\": {...}}` runs one of the MCP tools. The agent answers in one message and keeps no tasks. Its card is at /.well-known/agent-card.json.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonRpcRequest"
              },
              "example": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "message/send",
                "params": {
                  "message": {
                    "kind": "message",
                    "role": "user",
                    "messageId": "m-1",
                    "parts": [
                      {
                        "kind": "text",
                        "text": "What does AX Studio do?"
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A JSON-RPC result holding one agent message, or a JSON-RPC error.",
            "headers": {
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "400": {
            "description": "The body is not JSON or not a JSON-RPC request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/Retry-After"
              },
              "RateLimit-Limit": {
                "$ref": "#/components/headers/RateLimit-Limit"
              },
              "RateLimit-Remaining": {
                "$ref": "#/components/headers/RateLimit-Remaining"
              },
              "RateLimit-Reset": {
                "$ref": "#/components/headers/RateLimit-Reset"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimit-Policy"
              },
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/api-catalog": {
      "get": {
        "operationId": "get_api_catalog",
        "tags": [
          "discovery"
        ],
        "summary": "List this website's APIs (RFC 9727)",
        "description": "A linkset naming each API on this website with links to this OpenAPI description and to the documentation.",
        "responses": {
          "200": {
            "description": "The API catalog.",
            "content": {
              "application/linkset+json": {
                "schema": {
                  "$ref": "#/components/schemas/Linkset"
                }
              }
            }
          },
          "405": {
            "description": "Only GET and HEAD are allowed.",
            "headers": {
              "AIS-API-Version": {
                "$ref": "#/components/headers/AIS-API-Version"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "type": "https://agenticintelligencesystems.com/developers/#error-method_not_allowed",
                  "title": "Method not allowed",
                  "status": 405,
                  "detail": "Use GET.",
                  "code": "method_not_allowed",
                  "ok": false,
                  "error": "Use GET.",
                  "fallback_email": "info@agenticintelligencesystems.com"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "DryRun": {
        "name": "dry_run",
        "in": "query",
        "required": false,
        "description": "Test mode. Set to 1 to check the message and get back what would be sent. Nothing is stored and no email goes out.",
        "schema": {
          "type": "string",
          "enum": [
            "1",
            "true",
            "0",
            "false"
          ]
        },
        "example": "1"
      },
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": false,
        "description": "A unique value you choose for this message, such as a UUID. A retry with the same key within 24 hours gets the first answer and stores nothing new. The same key with a different message gets 409.",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        },
        "example": "5f0c1d0e-7a57-4d9b-9a53-0c8a1f4f2b11"
      },
      "ApiVersion": {
        "name": "AIS-API-Version",
        "in": "header",
        "required": false,
        "description": "Pins the API version. Today the only value is 2026-11-10. Leave it out to get the current version.",
        "schema": {
          "type": "string",
          "enum": [
            "2026-11-10"
          ]
        }
      }
    },
    "headers": {
      "RateLimit-Limit": {
        "description": "How many requests of this kind one caller may make in the current window.",
        "schema": {
          "type": "integer"
        },
        "example": 10
      },
      "RateLimit-Remaining": {
        "description": "How many are left in the current window.",
        "schema": {
          "type": "integer"
        },
        "example": 9
      },
      "RateLimit-Reset": {
        "description": "Seconds until the window starts again.",
        "schema": {
          "type": "integer"
        },
        "example": 1800
      },
      "RateLimit-Policy": {
        "description": "The limit and its window in seconds, for example 10;w=3600.",
        "schema": {
          "type": "string"
        },
        "example": "10;w=3600"
      },
      "Retry-After": {
        "description": "Seconds to wait before trying again.",
        "schema": {
          "type": "integer"
        },
        "example": 1800
      },
      "AIS-API-Version": {
        "description": "The API version that produced this answer.",
        "schema": {
          "type": "string"
        },
        "example": "2026-11-10"
      },
      "Idempotency-Replayed": {
        "description": "true when this answer repeats an earlier one for the same Idempotency-Key and nothing new was stored.",
        "schema": {
          "type": "string",
          "enum": [
            "true"
          ]
        }
      }
    },
    "responses": {
      "TooManyRequests": {
        "description": "Too many requests from this caller. Retry-After says how many seconds to wait.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          },
          "RateLimit-Limit": {
            "$ref": "#/components/headers/RateLimit-Limit"
          },
          "RateLimit-Remaining": {
            "$ref": "#/components/headers/RateLimit-Remaining"
          },
          "RateLimit-Reset": {
            "$ref": "#/components/headers/RateLimit-Reset"
          },
          "RateLimit-Policy": {
            "$ref": "#/components/headers/RateLimit-Policy"
          },
          "AIS-API-Version": {
            "$ref": "#/components/headers/AIS-API-Version"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "type": "https://agenticintelligencesystems.com/developers/#error-rate_limited",
              "title": "Too many requests",
              "status": 429,
              "detail": "Too many requests. Wait 1800 seconds and try again.",
              "code": "rate_limited",
              "ok": false,
              "error": "Too many requests. Wait 1800 seconds and try again.",
              "fallback_email": "info@agenticintelligencesystems.com",
              "retry_after": 1800
            }
          }
        }
      }
    },
    "examples": {
      "AskAnswer": {
        "summary": "One matching item",
        "value": {
          "_meta": {
            "response_type": "answer",
            "response_format": "conversational_search",
            "version": "0.55",
            "request_id": "0b6f6c0e-6a55-4f0f-9d0a-2f3f0c6f1a11"
          },
          "query": {
            "text": "can we use our own models"
          },
          "results": [
            {
              "@type": "Question",
              "url": "https://agenticintelligencesystems.com/#contact",
              "name": "Which agents and models can we use?",
              "site": "agenticintelligencesystems.com",
              "score": 0.386,
              "description": "Your own. Bring the computers, models and tools your team already has.",
              "schema_object": {
                "@type": "Question",
                "@id": "https://agenticintelligencesystems.com/#contact",
                "url": "https://agenticintelligencesystems.com/#contact",
                "name": "Which agents and models can we use?",
                "acceptedAnswer": {
                  "@type": "Answer",
                  "text": "Your own. Bring the computers, models and tools your team already has."
                }
              }
            }
          ]
        }
      },
      "AskNoResults": {
        "summary": "The site does not cover the question",
        "value": {
          "_meta": {
            "response_type": "failure",
            "response_format": "conversational_search",
            "version": "0.55",
            "request_id": "7c1d5b0a-1a0b-4f6e-8b7e-2d0c5c1e9a22"
          },
          "error": {
            "code": "NO_RESULTS",
            "message": "The website has nothing that matches this question. Try other words, or ask the founders through the contact form.",
            "status": 200
          },
          "type": "https://agenticintelligencesystems.com/developers/#error-no_results",
          "title": "No results",
          "status": 200,
          "detail": "The website has nothing that matches this question. Try other words, or ask the founders through the contact form.",
          "code": "no_results"
        }
      }
    },
    "schemas": {
      "ContactMessage": {
        "type": "object",
        "description": "A message from a person to the AIS founders.",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "The person's name."
          },
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 320,
            "description": "The person's work email. A founder replies to it."
          },
          "door": {
            "type": "string",
            "enum": [
              "investor",
              "program",
              "partner",
              "researcher"
            ],
            "description": "Who the person is writing as: an investor, an accelerator or program, a team that wants access (partner), or a researcher."
          },
          "message": {
            "type": "string",
            "maxLength": 5000,
            "description": "What the person wants to say."
          },
          "hp_leave_empty": {
            "type": "string",
            "description": "Leave this out or empty. It is a spam trap from the web form: a message that fills it is stored as spam and not emailed."
          }
        },
        "required": [
          "name",
          "email"
        ]
      },
      "ContactAccepted": {
        "type": "object",
        "description": "The message was stored for the founders.",
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true,
            "description": "Always true on success."
          }
        },
        "required": [
          "ok"
        ]
      },
      "ContactDryRun": {
        "type": "object",
        "description": "The answer to a dry run: the message is valid, and this is what would be sent.",
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          },
          "sandbox": {
            "type": "boolean",
            "description": "Present and true when the request came through the sandbox server."
          },
          "dry_run": {
            "type": "boolean",
            "const": true
          },
          "stored": {
            "type": "boolean",
            "const": false,
            "description": "Always false on a dry run."
          },
          "emailed": {
            "type": "boolean",
            "const": false,
            "description": "Always false on a dry run."
          },
          "would_send": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "door": {
                "type": "string",
                "description": "The door value, or unspecified."
              },
              "writing_as": {
                "type": "string",
                "description": "The door as the founders will read it."
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "email",
              "door",
              "writing_as",
              "message"
            ]
          }
        },
        "required": [
          "ok",
          "dry_run",
          "stored",
          "emailed",
          "would_send"
        ]
      },
      "Error": {
        "type": "object",
        "description": "Every error from this API. It is an RFC 9457 problem document. The fields ok, error and fallback_email repeat the same facts for the contact form on the website.",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "A link to the documentation for this error."
          },
          "title": {
            "type": "string",
            "description": "A short name for the kind of error."
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code."
          },
          "detail": {
            "type": "string",
            "description": "What went wrong and what to do, in a sentence a person can read."
          },
          "code": {
            "type": "string",
            "description": "A stable machine-readable code.",
            "enum": [
              "malformed",
              "invalid_name",
              "invalid_email",
              "invalid_door",
              "invalid_message",
              "invalid_idempotency_key",
              "idempotency_key_reused",
              "invalid_limit",
              "invalid_cursor",
              "section_not_found",
              "method_not_allowed",
              "unsupported_version",
              "rate_limited",
              "not_saved",
              "not_accepting"
            ]
          },
          "ok": {
            "type": "boolean",
            "const": false,
            "description": "Always false."
          },
          "error": {
            "type": "string",
            "description": "The same text as detail."
          },
          "fallback_email": {
            "type": "string",
            "format": "email",
            "description": "An address a person can write to when the API cannot take the message."
          },
          "field": {
            "type": "string",
            "description": "The request field that is wrong, when one is."
          },
          "retry_after": {
            "type": "integer",
            "description": "Seconds to wait, on a 429."
          },
          "supported_versions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "On unsupported_version, the versions that work."
          },
          "available": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "On section_not_found, the ids that exist."
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "ok",
          "error"
        ]
      },
      "AskRequest": {
        "type": "object",
        "description": "An NLWeb 0.55 ask request.",
        "properties": {
          "query": {
            "type": "object",
            "description": "The question.",
            "properties": {
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000,
                "description": "The question in plain words."
              }
            },
            "required": [
              "text"
            ]
          },
          "prefer": {
            "type": "object",
            "description": "How to answer.",
            "properties": {
              "streaming": {
                "type": "boolean",
                "default": false,
                "description": "true for server-sent events."
              },
              "mode": {
                "type": "string",
                "enum": [
                  "list"
                ],
                "default": "list",
                "description": "Only list is supported."
              },
              "response_format": {
                "type": "string",
                "enum": [
                  "conversational_search"
                ],
                "default": "conversational_search",
                "description": "Only conversational_search is supported."
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20,
                "default": 5,
                "description": "How many results."
              }
            }
          },
          "meta": {
            "type": "object",
            "description": "Request metadata. query_id is echoed back.",
            "properties": {
              "query_id": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          }
        },
        "required": [
          "query"
        ]
      },
      "AskMeta": {
        "type": "object",
        "description": "NLWeb response metadata.",
        "properties": {
          "response_type": {
            "type": "string",
            "enum": [
              "answer",
              "failure"
            ]
          },
          "response_format": {
            "type": "string",
            "enum": [
              "conversational_search"
            ]
          },
          "version": {
            "type": "string",
            "const": "0.55"
          },
          "request_id": {
            "type": "string",
            "description": "An id for this answer."
          },
          "query_id": {
            "type": "string",
            "description": "The query_id you sent, if any."
          },
          "streaming": {
            "type": "boolean"
          }
        },
        "required": [
          "response_type",
          "version"
        ]
      },
      "AskResult": {
        "type": "object",
        "description": "One matching item from the website.",
        "properties": {
          "@type": {
            "type": "string",
            "description": "The schema.org type of the item.",
            "enum": [
              "WebPage",
              "WebPageElement",
              "SoftwareApplication",
              "Question",
              "TechArticle"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Where the item is on the website."
          },
          "name": {
            "type": "string",
            "description": "The item title."
          },
          "site": {
            "type": "string",
            "description": "Always agenticintelligencesystems.com."
          },
          "score": {
            "type": "number",
            "minimum": 0,
            "maximum": 1,
            "description": "Relevance, higher is better."
          },
          "description": {
            "type": "string",
            "description": "The sentences that matched, quoted from the website."
          },
          "schema_object": {
            "type": "object",
            "description": "The item as a schema.org object.",
            "additionalProperties": true
          }
        },
        "required": [
          "@type",
          "url",
          "name",
          "site",
          "score",
          "description",
          "schema_object"
        ]
      },
      "AskAnswer": {
        "type": "object",
        "description": "An NLWeb answer: the matching items, best first.",
        "properties": {
          "_meta": {
            "$ref": "#/components/schemas/AskMeta"
          },
          "query_id": {
            "type": "string"
          },
          "query": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string"
              }
            },
            "required": [
              "text"
            ]
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AskResult"
            }
          }
        },
        "required": [
          "_meta",
          "query",
          "results"
        ]
      },
      "AskFailure": {
        "type": "object",
        "description": "An NLWeb failure. It also carries the problem fields type, title, status, detail and code.",
        "properties": {
          "_meta": {
            "$ref": "#/components/schemas/AskMeta"
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "NO_RESULTS",
                  "INVALID_QUERY",
                  "UNSUPPORTED_FORMAT",
                  "UNSUPPORTED_MODE",
                  "RATE_LIMITED"
                ],
                "description": "The NLWeb error code."
              },
              "message": {
                "type": "string"
              },
              "status": {
                "type": "integer",
                "description": "The HTTP status of this answer."
              }
            },
            "required": [
              "code",
              "message"
            ]
          },
          "type": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        },
        "required": [
          "_meta",
          "error"
        ]
      },
      "SectionSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The section id."
          },
          "kind": {
            "type": "string",
            "enum": [
              "section",
              "product"
            ]
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "The section on the website."
          },
          "api_url": {
            "type": "string",
            "format": "uri",
            "description": "Where to read the section in full."
          }
        },
        "required": [
          "id",
          "kind",
          "title",
          "url",
          "api_url"
        ]
      },
      "SectionList": {
        "type": "object",
        "description": "One page of sections, with a cursor for the next page.",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SectionSummary"
            }
          },
          "has_more": {
            "type": "boolean",
            "description": "true when another page exists."
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass this as cursor to get the next page. null on the last page."
          },
          "total": {
            "type": "integer",
            "description": "How many sections exist in all."
          }
        },
        "required": [
          "items",
          "has_more",
          "next_cursor",
          "total"
        ]
      },
      "Section": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "section",
              "product"
            ]
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "text": {
            "type": "string",
            "description": "The section as markdown."
          }
        },
        "required": [
          "id",
          "kind",
          "title",
          "url",
          "text"
        ]
      },
      "JsonRpcRequest": {
        "type": "object",
        "description": "A JSON-RPC 2.0 request or notification.",
        "properties": {
          "jsonrpc": {
            "type": "string",
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ],
            "description": "Leave it out to send a notification."
          },
          "method": {
            "type": "string"
          },
          "params": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "jsonrpc",
          "method"
        ]
      },
      "JsonRpcResponse": {
        "type": "object",
        "description": "A JSON-RPC 2.0 response: result on success, error on failure.",
        "properties": {
          "jsonrpc": {
            "type": "string",
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer",
              "null"
            ]
          },
          "result": {
            "type": "object",
            "additionalProperties": true
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "integer",
                "description": "-32700 parse error, -32600 invalid request, -32601 method not found, -32602 invalid params, -32603 internal error, -32002 resource not found, -32000 rate limited."
              },
              "message": {
                "type": "string"
              },
              "data": {
                "description": "More detail, when there is any."
              }
            },
            "required": [
              "code",
              "message"
            ]
          }
        },
        "required": [
          "jsonrpc",
          "id"
        ]
      },
      "Linkset": {
        "type": "object",
        "description": "An RFC 9264 linkset.",
        "properties": {
          "linkset": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "required": [
          "linkset"
        ]
      }
    }
  }
}
