Trooth Public Mesh API

The Public Mesh API from Trooth, for public mesh.

GitHub OpenAPI

Operations 1

GET /api/public-mesh/{handle} A company's public evidence rollup #

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-public-mesh-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-public-mesh-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trooth Public Public Mesh 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: Public Mesh
paths:
  /api/public-mesh/{handle}:
    get:
      summary: A company's public evidence rollup
      description: 'The buyer-facing projection of a company''s evidence: the witnessed state per area (the pillars key), provider status with the time each connected system was last read. Framework rollups were retired on 2026-09-26 and the frameworks array is always empty. Individual control rows, owners and internal notes are never returned here. Each pillar carries observedAt and sourceRef, null when Trooth holds no per-area read time or reference, or when the area is restricted: null reads as unknown and is never filled from another area, a provider sync or the company''s last edit. Responds 404 when the company has no public record, which is a privacy-preserving answer rather than an error. This is the read the embeddable badge performs. Cached at the edge for 300 seconds. 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: handle
        in: path
        required: true
        description: Company handle.
        schema:
          type: string
      operationId: get_api_public_mesh_handle_
      security: []
      responses:
        '200':
          description: The rollup, with framework percentages retired (empty) since 2026-09-26.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicMesh'
        '404':
          description: No public record for this handle.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '503':
          description: The record could not be read. Not a statement about the company.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      tags:
      - Public Mesh
components:
  schemas:
    PublicMesh:
      type: object
      required:
      - company
      - frameworks
      - pillars
      - providers
      - controls
      properties:
        sample:
          type: boolean
        company:
          type: object
          required:
          - name
          - handle
          - updatedAt
          properties:
            name:
              type: string
            handle:
              type: string
            updatedAt:
              type: string
              description: The last edit to the company. Not an observation time.
        frameworks:
          type: array
          maxItems: 0
          description: Retired 2026-09-26; always empty.
        pillars:
          type: array
          description: One entry per area, on /api/public-mesh/{handle} (lib/public-pillars.ts).
          items:
            type: object
            required:
            - id
            - label
            - status
            - observedAt
            - sourceRef
            properties:
              id:
                type: string
              label:
                type: string
              status:
                type: string
              restricted:
                type: boolean
                description: Present, and true, only when the area is held behind access controls. Restricted is not the same as not published.
              observedAt:
                type:
                - string
                - 'null'
                description: 'Added 2026-10-04; always present since 2026-10-09. When Trooth last read this area, as the upstream states it for the area. null when no per-area read time is recorded or the area is restricted: an unrecorded date reads as unknown, never borrowed from another area, a provider''s lastSync or company.updatedAt.'
              sourceRef:
                type:
                - string
                - 'null'
                description: Added 2026-10-04; always present since 2026-10-09. The upstream's reference to the reading behind this area. null when it gives none or the area is restricted.
        providers:
          type: array
          items:
            type: object
            required:
            - id
            - label
            - status
            properties:
              id:
                type: string
              label:
                type: string
              status:
                type: string
              lastSync:
                type: string
                description: 'Kept for older readers. Since 2026-10-04 it dates no area and no badge: the newest provider read says nothing about the age of an unrelated area.'
        rollup:
          type: array
          description: Added 2026-10-04. Every area as one fact, held to its own category window (lib/evidence.ts FRESHNESS_POLICY). observedAt is null and freshness unknown when no per-area read time is published; unknown is never shown as current.
          items:
            type: object
            required:
            - pillarId
            - label
            - status
            - counted
            - evidenceClass
            - observation
            - sourceRef
            - observedAt
            - validity
            - freshness
            - scope
            - unknown
            properties:
              pillarId:
                type: string
              label:
                type: string
              status:
                enum:
                - witnessed
                - attention
                - failing
                - not_started
                - restricted
              counted:
                type: boolean
              evidenceClass:
                enum:
                - trooth_observation
                - no_evidence
                - restricted
              observation:
                type: string
              sourceRef:
                oneOf:
                - type: 'null'
                - type: string
              observedAt:
                oneOf:
                - type: 'null'
                - type: string
              validity:
                type: object
                required:
                - category
                - windowDays
                - validUntil
                properties:
                  category:
                    type: string
                  windowDays:
                    type: integer
                  validUntil:
                    oneOf:
                    - type: 'null'
                    - type: string
              freshness:
                enum:
                - current
                - due
                - stale
                - unknown
              scope:
                type: object
                required:
                - subject
                - scope
                - area
                properties:
                  subject:
                    type: string
                  scope:
                    const: company
                  area:
                    type: string
              unknown:
                type: array
                items:
                  type: string
        badge:
          type: object
          description: Added 2026-10-04. The state and the two lines the badge script and the badge image print, derived from rollup.
          required:
          - kind
          - line
          - detail
          - asOf
          - counted
          - witnessed
          - staleAreas
          - undatedAreas
          - restrictedAreas
          properties:
            kind:
              enum:
              - witnessed
              - partial
              - listed
            line:
              type: string
            detail:
              type: string
            asOf:
              oneOf:
              - type: 'null'
              - type: string
              description: The oldest read of the witnessed areas, only when every one is dated.
            counted:
              type: integer
            witnessed:
              type: integer
            staleAreas:
              type: array
              items:
                type: string
            undatedAreas:
              type: array
              items:
                type: string
            restrictedAreas:
              type: array
              items:
                type: string
        controls:
          type: array
          maxItems: 0
        freshness30d:
          type: integer
        disclaimer:
          type: string
        retired:
          type: object
    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
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