Trooth Legal API

The Legal API from Trooth, for legal.

GitHub OpenAPI

Operations 1

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/trooth-co:trooth-co-legal-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

trooth-co-legal-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trooth Public Legal API
  version: 1.1.0
  summary: The read-only public surface of the Trooth Network.
  description: 'Everything here answers a question about a software or AI company from published

    evidence, and needs no credential. It is the surface a person, an integrator or an

    authorized agent may build on.


    WHAT IS DELIBERATELY ABSENT. Authentication flows are not documented: they are

    browser redirects in a login sequence, not an API. Unauthenticated endpoints that

    send mail or start work are rate limited and undocumented on purpose. Every

    session-authenticated endpoint is absent because publishing an internal route map

    helps an attacker and promises an API that is not offered.


    EVIDENCE VOCABULARY. Responses distinguish witnessed, public record (wire value

    `verified`), declared, inferred, unknown, not applicable, restricted, unavailable,

    stale and conflicting. Unknown is an answer, never a blank

    filled in, and stale is never the same as wrong. No response carries a figure, a

    rank or a grade for a company: the witness facts are coverage (checks that read as

    expected, out of checks run), freshness (last read), continuity (unbroken since) and change.


    A 404 from these endpoints usually means the Network holds no record, which is an

    answer rather than a failure.


    CROSS-ORIGIN. Every operation here is readable from a browser on any site: responses

    carry Access-Control-Allow-Origin: * and never Access-Control-Allow-Credentials, so

    no cookie is sent or honored. A browser''s OPTIONS check before a request that sends

    the Trooth-Contract, Trooth-Version or If-None-Match header is answered.


    THREE DOCUMENTS, NO SHARED PATH. This one covers the public, credential-free reads

    trooth.co serves under /api. The authenticated trooth.co API an agent works a

    workspace with, every /api/v1 route, is https://trooth.co/openapi-v1.json. api.trooth.co is a separate

    service with its own contract, https://trooth.co/openapi.yaml: its public reads under

    /public (GET https://api.trooth.co/public/keys, the badge image, receipts and action

    evidence) and its authenticated routes, which take a DPoP-bound credential (RFC 9449),

    described there and at https://trooth.co/docs/api#authorization. Its MCP server at https://mcp.trooth.co

    meters tools/call at 300 units every 60 seconds per caller (the OAuth

    subject when a valid token is presented, otherwise the IP address), counted in one

    store shared by every server instance; each tool call costs 1 to 8 units, as

    https://trooth.co/.well-known/mcp.json lists. Over it: 429 with Retry-After giving the seconds

    until units free up.


    Generated from app/api by scripts/gen-openapi.mjs. check:openapi fails the build

    when this document and the source disagree.'
  contact:
    name: Trooth developer support
    email: developers@trooth.co
    url: https://trooth.co/docs/api
  license:
    name: Terms of Service
    url: https://trooth.co/terms
servers:
- url: https://trooth.co
  description: Production
tags:
- name: Legal
paths:
  /api/legal/{slug}:
    get:
      summary: A published legal document
      description: 'The full text of one of the twenty published Trooth legal documents, with its title, effective date and body. The slug must be one of the published set; anything else responds 404. Cached at the edge for one hour with a one day stale-while-revalidate window. Readable cross-origin: the response carries Access-Control-Allow-Origin: * and never Access-Control-Allow-Credentials, so a browser on any site may read it without cookies.'
      parameters:
      - name: slug
        in: path
        required: true
        description: Document slug, for example privacy, terms, subprocessors.
        schema:
          type: string
      operationId: get_api_legal_slug_
      security: []
      responses:
        '200':
          description: The document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegalDocument'
        '404':
          description: Unknown document.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Legal
components:
  schemas:
    ProblemDetails:
      type: object
      description: RFC 9457 problem details, the body of every error. A route that answered errors with a JSON body of its own before 2026-11-05 (error, message, found and the rest) keeps those members, with their values, beside these. Unknown members must be ignored (RFC 9457 section 3.2).
      required:
      - type
      - title
      - status
      - code
      - request_id
      - retryable
      - next_action
      - fix
      properties:
        type:
          type: string
          description: A URI, stable per code; resolves to the code's entry at https://trooth.co/docs/api#problem-<code>.
        title:
          type: string
          description: Fixed per type.
        status:
          type: integer
        detail:
          type: string
          description: This occurrence, in words. Never a stack, a path or a credential.
        instance:
          type: string
          description: urn:trooth:request:<request_id>
        code:
          type: string
          description: The stable machine code, one of those listed at https://trooth.co/docs/api#errors.
        request_id:
          type: string
          description: The same value as the X-Request-Id response header.
        retryable:
          type: boolean
        retry_after:
          type: integer
          description: Seconds, the same number as Retry-After. Present only when a wait is known.
        retry_at:
          type: string
          description: The time retry_after names, as an RFC 3339 date-time.
        next_action:
          type: string
          enum:
          - retry_later
          - fix_request
          - start_over
          - resync
          - use_current_record
          - none
          - authenticate
          - ask_owner
          - prove_domain
          - contact_support
          description: What to do next, one word a client can switch on.
        fix:
          type: string
          description: One sentence on how to repair the request.
        errors:
          type: array
          items:
            type: object
            properties:
              pointer:
                type: string
              parameter:
                type: string
              detail:
                type: string
        error:
          type:
          - object
          - string
          description: 'On a route that sent a string error before 2026-11-05, that string, kept. Otherwise the one public error shape of the read routes (lib/network-http/errors.ts): code is one of five, message is detail, retry_after_seconds equals Retry-After when a wait is known.'
          required:
          - code
          - message
          properties:
            code:
              type: string
              enum:
              - not_found
              - ambiguous
              - invalid_input
              - rate_limited
              - upstream_timeout
            message:
              type: string
            retry_after_seconds:
              type: integer
              minimum: 1
    LegalDocument:
      type: object
      required:
      - slug
      - title
      - effective
      - html
      properties:
        slug:
          type: string
        title:
          type: string
        effective:
          type: string
        html:
          type: string
externalDocs:
  url: https://trooth.co/openapi.yaml
  description: The api.trooth.co contract (its /public reads and its authenticated routes); this document shares no path with it
x-related-documents:
- url: https://trooth.co/openapi.yaml
  covers: api.trooth.co
- url: https://trooth.co/openapi-v1.json
  covers: trooth.co /api/v1, with an agent key or the MCP sign-in
- url: https://trooth.co/openapi/network.json
  covers: every Trooth Network MCP tool as POST https://api.trooth.co/v1/tools/{tool}, with x-trooth
- url: https://trooth.co/openapi/semanto.json
  covers: Semanto's routes on api.trooth.co, each with its MCP tool and CLI command in x-trooth
x-counts:
  paths: 13
  operations: 13