Cotal Read API

Public reads. No credentials; 300 requests per IP per minute, reported in the RateLimit-* headers.

GitHub OpenAPI

Operations 7

4 of 7 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /v1 API index: the live endpoints and discovery links conformant #
GET /v1/health Liveness probe conformant #
GET /v1/blog List build-log posts, newest first (cursor pagination) conformant #
GET /v1/blog/{slug} One build-log post with its markdown body conformant #
GET /v1/search Keyword search over posts, documentation links and site pages #
GET /ask NLWeb /ask: a natural-language question, answered as matching items #
POST /ask NLWeb /ask over POST (same parameters as a JSON body) #

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/cotal-ai:cotal-ai-read-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

cotal-ai-read-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: cotal.ai public Read API
  version: 1.1.0
  summary: Open HTTP endpoints on cotal.ai for humans, CLIs and agents.
  description: 'Cotal puts your AI agents in one shared space. Claude Code, Codex, OpenCode, Hermes, Jcode and pi hand off work directly and ask you when a decision needs you. Open source under Apache-2.0. Cotal Cloud, in closed alpha, runs it for you.


    These endpoints are open by design so agents and CLIs can call them directly. Conventions:


    - **Errors** are always JSON (`Error` schema) with a stable `code` and a `hint`, never an HTML page.

    - **Rate limits**: writes 5 per IP per 10 minutes and 30 globally per minute; reads 300 per IP per minute (`/v1/health` exempt). Every response carries the RFC `RateLimit-*` headers; a `429` adds `Retry-After`.

    - **Idempotency**: send `Idempotency-Key` on `POST /v1/feedback` and `POST /v1/lead`; a retry with the same key returns the original record (`replayed: true`). `/v1/waitlist` and `/v1/newsletter` are idempotent per email.

    - **Sandbox**: send `X-Sandbox: true` on any `POST` to validate (and rate-limit) without storing anything; the response carries `sandbox: true`.

    - **Pagination**: list endpoints are cursor-based (`limit`, `cursor` → `next_cursor`).

    - **Versioning and deprecation**: the version is in the path (`/v1`). Within `/v1`, fields are only ever added, never removed or renamed. A breaking change ships under a new prefix (`/v2`) while `/v1` keeps running. When an operation is deprecated it answers with `Deprecation: true` and a `Sunset` header carrying the removal date, at least 90 days ahead, and the change is announced in the API llms.txt and the build log. Nothing is deprecated today.

    - **MCP**: the same actions are exposed as MCP tools at https://cotal.ai/mcp (Streamable HTTP, no credentials); see the server card at https://cotal.ai/.well-known/mcp/server-card.json.

    - **Auth**: how credentials work is written up at https://cotal.ai/auth.md.'
  contact:
    name: Cotal
    email: hello@cotal.ai
    url: https://cotal.ai/contact
  license:
    name: Apache-2.0
    identifier: Apache-2.0
  x-mcp:
    url: https://cotal.ai/mcp
    transport: streamable-http
    serverCard: https://cotal.ai/.well-known/mcp/server-card.json
  x-deprecation-policy:
    versioning: URL prefix (/v1); additive changes only within a prefix; breaking changes ship under /v2 with /v1 kept running.
    noticePeriodDays: 90
    headers:
    - Deprecation
    - Sunset
    announcedAt:
    - https://cotal.ai/api/llms.txt
    - https://cotal.ai/blog
    currentlyDeprecated: []
servers:
- url: https://cotal.ai
  description: Production. Sandbox mode is the X-Sandbox header, not a separate host.
tags:
- name: Read
  description: Public reads. No credentials; 300 requests per IP per minute, reported in the RateLimit-* headers.
paths:
  /v1:
    get:
      tags:
      - Read
      operationId: apiIndex
      summary: 'API index: the live endpoints and discovery links'
      responses:
        '200':
          description: Endpoint list
          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'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiIndex'
        '429':
          description: 'Rate limited (`code`: rate_limited). Retry after `Retry-After` seconds.'
          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'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure. The body is always the Error object, with a stable `code` and a `hint`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/health:
    get:
      tags:
      - Read
      operationId: health
      summary: Liveness probe
      description: Plain liveness check, no database round-trip. Exempt from the read rate limit so uptime monitors can poll it.
      responses:
        '200':
          description: Service is up
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: ok
                required:
                - status
        default:
          description: Any other failure. The body is always the Error object, with a stable `code` and a `hint`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/blog:
    get:
      tags:
      - Read
      operationId: listPosts
      summary: List build-log posts, newest first (cursor pagination)
      parameters:
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of posts
          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'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostList'
        '400':
          description: 'Malformed body or validation error (`code`: bad_request | validation_error).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Rate limited (`code`: rate_limited). Retry after `Retry-After` seconds.'
          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'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure. The body is always the Error object, with a stable `code` and a `hint`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/blog/{slug}:
    get:
      tags:
      - Read
      operationId: getPost
      summary: One build-log post with its markdown body
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
          maxLength: 120
        example: agi-summit-2026
      responses:
        '200':
          description: The post
          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'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostDetail'
        '404':
          description: 'No such resource (`code`: not_found).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Rate limited (`code`: rate_limited). Retry after `Retry-After` seconds.'
          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'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure. The body is always the Error object, with a stable `code` and a `hint`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/search:
    get:
      tags:
      - Read
      operationId: searchSite
      summary: Keyword search over posts, documentation links and site pages
      parameters:
      - name: q
        in: query
        required: true
        description: Search terms.
        schema:
          type: string
          minLength: 2
          maxLength: 200
      - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Ranked 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'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResults'
        '400':
          description: 'Malformed body or validation error (`code`: bad_request | validation_error).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Rate limited (`code`: rate_limited). Retry after `Retry-After` seconds.'
          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'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure. The body is always the Error object, with a stable `code` and a `hint`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /ask:
    get:
      tags:
      - Read
      operationId: ask
      summary: 'NLWeb /ask: a natural-language question, answered as matching items'
      description: 'Implements the NLWeb protocol (github.com/nlweb-ai/NLWeb) in `list` mode: keyword retrieval over the build log, docs links and site pages, each result with its schema.org object. `summarize` and `generate` are answered as lists and say so in `_meta`. Streams as Server-Sent Events (`start`, `result`, `complete`) when `streaming=true`, `prefer.streaming=true`, or `Accept: text/event-stream`; plain JSON otherwise. POST accepts the same parameters as a JSON body.'
      parameters:
      - name: query
        in: query
        required: true
        schema:
          type: string
          minLength: 2
          maxLength: 500
      - name: mode
        in: query
        schema:
          type: string
          enum:
          - list
          - summarize
          - generate
          default: list
      - name: streaming
        in: query
        schema:
          type: boolean
          default: false
      - name: query_id
        in: query
        schema:
          type: string
      - name: prev
        in: query
        description: Comma-separated previous queries.
        schema:
          type: string
      responses:
        '200':
          description: Matching items (JSON), or an SSE stream when streaming was requested.
          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'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskResponse'
            text/event-stream:
              schema:
                type: string
                description: 'Events: start, result, complete.'
        '400':
          description: 'Malformed body or validation error (`code`: bad_request | validation_error).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Rate limited (`code`: rate_limited). Retry after `Retry-After` seconds.'
          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'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure. The body is always the Error object, with a stable `code` and a `hint`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      tags:
      - Read
      operationId: askPost
      summary: NLWeb /ask over POST (same parameters as a JSON body)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                mode:
                  type: string
                  enum:
                  - list
                  - summarize
                  - generate
                streaming:
                  type: boolean
                prefer:
                  type: object
                  properties:
                    streaming:
                      type: boolean
                query_id:
                  type: string
                prev:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: Matching items (JSON), or an SSE stream when streaming was requested.
          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'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AskResponse'
            text/event-stream:
              schema:
                type: string
        '400':
          description: 'Malformed body or validation error (`code`: bad_request | validation_error).'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: 'Rate limited (`code`: rate_limited). Retry after `Retry-After` seconds.'
          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'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure. The body is always the Error object, with a stable `code` and a `hint`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ApiIndex:
      type: object
      required:
      - ok
      - endpoints
      properties:
        ok:
          type: boolean
          const: true
        name:
          type: string
        endpoints:
          type: array
          items:
            type: object
            required:
            - method
            - path
            - summary
            - auth
            properties:
              method:
                type: string
              path:
                type: string
              summary:
                type: string
              auth:
                type: string
        conventions:
          type: array
          items:
            type: string
        links:
          type: object
          additionalProperties:
            type: string
            format: uri
    Post:
      type: object
      required:
      - slug
      - title
      - dek
      - date
      - author
      - by_agent
      - url
      - markdown_url
      properties:
        slug:
          type: string
        title:
          type: string
        dek:
          type: string
          description: One-sentence summary.
        date:
          type: string
          format: date
        author:
          type: string
        by_agent:
          type: boolean
          description: Written by an agent on the mesh and published by a human.
        model:
          type: string
        tag:
          type: string
        url:
          type: string
          format: uri
        markdown_url:
          type: string
          format: uri
          description: The same post as text/markdown.
    SearchResults:
      type: object
      required:
      - ok
      - query
      - results
      properties:
        ok:
          type: boolean
          const: true
        query:
          type: string
        results:
          type: array
          items:
            type: object
            required:
            - type
            - title
            - description
            - url
            - score
            properties:
              type:
                type: string
                enum:
                - post
                - doc
                - page
              title:
                type: string
              description:
                type: string
              url:
                type: string
                format: uri
              markdown_url:
                type: string
                format: uri
              score:
                type: number
    PostList:
      type: object
      required:
      - ok
      - posts
      - next_cursor
      properties:
        ok:
          type: boolean
          const: true
        posts:
          type: array
          items:
            $ref: '#/components/schemas/Post'
        next_cursor:
          type:
          - string
          - 'null'
          description: Pass as `cursor` to fetch the next page; null on the last page.
    PostDetail:
      type: object
      required:
      - ok
      - post
      properties:
        ok:
          type: boolean
          const: true
        post:
          allOf:
          - $ref: '#/components/schemas/Post'
          - type: object
            required:
            - body
            properties:
              body:
                type: string
                description: Markdown body.
    Error:
      type: object
      description: Every failure, on every endpoint. Never an HTML page.
      required:
      - ok
      - error
      - code
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          enum:
          - bad_request
          - validation_error
          - unauthorized
          - forbidden
          - not_found
          - method_not_allowed
          - conflict
          - payload_too_large
          - rate_limited
          - storage_error
          description: Stable, machine-readable error code.
        hint:
          type: string
          description: How to recover.
        docs:
          type: string
          format: uri
          description: Where the contract is documented.
    AskResponse:
      type: object
      required:
      - query_id
      - _meta
      - results
      properties:
        query_id:
          type: string
        _meta:
          type: object
          required:
          - response_type
          - version
          properties:
            response_type:
              type: string
              const: list
            version:
              type: string
            site:
              type: string
            mode:
              type: string
            requested_mode:
              type: string
            note:
              type: string
            query:
              type: string
            count:
              type: integer
        results:
          type: array
          items:
            type: object
            required:
            - url
            - name
            - site
            - score
            - description
            - schema_object
            properties:
              url:
                type: string
                format: uri
              name:
                type: string
              site:
                type: string
              score:
                type: number
              description:
                type: string
              schema_object:
                type: object
                description: schema.org JSON-LD for the item.
  headers:
    RateLimit-Policy:
      description: The policy in effect, e.g. `5;w=600` (5 requests per 600 seconds) on writes, `300;w=60` on reads.
      schema:
        type: string
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
    RateLimit-Limit:
      description: Requests allowed per window for this client (per-IP policy).
      schema:
        type: integer
    RateLimit-Reset:
      description: Seconds until the window resets.
      schema:
        type: integer
    RateLimit-Remaining:
      description: Requests left in the current window.
      schema:
        type: integer
  parameters:
    Cursor:
      name: cursor
      in: query
      required: false
      description: Opaque cursor from a previous response's `next_cursor`.
      schema:
        type: string
    Limit:
      name: limit
      in: query
      required: false
      description: Page size.
      schema:
        type: integer
        minimum: 1
        maximum: 50
        default: 10
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      bearerFormat: ctk_…
      description: 'Registered Cotal tester/agent key. How to get one: https://cotal.ai/auth.md'
    adminKey:
      type: http
      scheme: bearer
      bearerFormat: cpa_…
      description: 'Admin key of the Cotal team, accepted on /v1/posts only: stage and revise every post. It cannot publish; that is a human click in the private area. Not issued to outside callers.'
externalDocs:
  description: Cotal documentation
  url: https://docs.cotal.ai