Tunnel Trust API

Verification status, signed attestations and the transparency log.

GitHub OpenAPI

Operations 11

GET /api/v1/merchants/{slug}/verification Live verification status and the signed attestation #
GET /api/v1/merchants/{slug}/trust-history Every verification event for this merchant, in order #
GET /api/v1/merchants/{slug}/attestation.vc The live attestation as a W3C Verifiable Credential (VC-JWT) #
GET /api/v1/merchants/{slug}/badge.svg A verification badge, for humans #
GET /api/v1/trust-log/head Current head of the transparency log #
GET /api/v1/trust-log/checkpoint The latest operator-signed checkpoint #
GET /api/v1/trust-log/checkpoints Archived checkpoints, for witnesses #
GET /api/v1/trust-log/entries A range of log entries #
GET /api/v1/trust-log/entries/{seq} One log entry by sequence number #
GET /.well-known/tunnel-trust.json Attestation signing key and rotation metadata #
GET /.well-known/jwks.json The same keys as an RFC 7517 JWKS #

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/tunnelpowered-com:tunnelpowered-com-trust-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

tunnelpowered-com-trust-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: tunnel public Trust API
  version: 1.0.0
  summary: Search verified businesses, check what their verification actually proves, and message them.
  description: 'The public, agent-facing surface of the tunnel knowledge base.


    Reading needs no credentials, and neither does ASKING. Only messaging a business does, and

    registration is self-service.


    If you want to know something about a business, try `ask` before `landline`. A question the

    registry can settle costs you nothing, costs the business nothing, and is answered immediately;

    opening a conversation puts it in front of a person who may be serving a customer.


    Two things worth knowing before you build against this:


    1. An absent field means we do not hold that information. It does not mean the business lacks it.

    Do not write a confident sentence about a business from a gap in this data.

    2. `verification.level` is the verification answer. `humanReview` is about whether a person edited

    the knowledge-base entry, which is a different question and is not a statement about the business.


    Endpoints not described here are internal and may change without notice.'
  contact:
    name: Tunnel
    url: https://tunnelpowered.com/docs
    email: contact@tunnelpowered.com
servers:
- url: https://api.tunnelpowered.com
  description: Production
security:
- agentBearer: []
tags:
- name: trust
  description: Verification status, signed attestations and the transparency log.
paths:
  /api/v1/merchants/{slug}/verification:
    get:
      tags:
      - trust
      summary: Live verification status and the signed attestation
      description: Treat a cached answer older than five minutes as stale. Revocations are immediate.
      security: []
      parameters:
      - name: slug
        in: path
        required: true
        description: The record’s stable slug, as returned by search.
        schema:
          type: string
          pattern: ^[a-z0-9-]+$
      responses:
        '200':
          description: The status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerificationStatus'
        '404':
          description: No such record in the knowledge base.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiV1MerchantsBySlugVerification
      x-operation-id-source: derived
  /api/v1/merchants/{slug}/trust-history:
    get:
      tags:
      - trust
      summary: Every verification event for this merchant, in order
      security: []
      parameters:
      - name: slug
        in: path
        required: true
        description: The record’s stable slug, as returned by search.
        schema:
          type: string
          pattern: ^[a-z0-9-]+$
      responses:
        '200':
          description: The history.
          content:
            application/json:
              schema:
                type: object
        '404':
          description: No such record in the knowledge base.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiV1MerchantsBySlugTrustHistory
      x-operation-id-source: derived
  /api/v1/merchants/{slug}/attestation.vc:
    get:
      tags:
      - trust
      summary: The live attestation as a W3C Verifiable Credential (VC-JWT)
      description: Short-lived by design — five minutes. Re-fetch rather than storing it.
      security: []
      parameters:
      - name: slug
        in: path
        required: true
        description: The record’s stable slug, as returned by search.
        schema:
          type: string
          pattern: ^[a-z0-9-]+$
      responses:
        '200':
          description: A compact JWS.
          content:
            application/jwt:
              schema:
                type: string
        '404':
          description: No such record in the knowledge base.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiV1MerchantsBySlugAttestationVc
      x-operation-id-source: derived
  /api/v1/merchants/{slug}/badge.svg:
    get:
      tags:
      - trust
      summary: A verification badge, for humans
      description: Presentation only. Never treat the badge as the verification answer — read the JSON.
      security: []
      parameters:
      - name: slug
        in: path
        required: true
        description: The record’s stable slug, as returned by search.
        schema:
          type: string
          pattern: ^[a-z0-9-]+$
      responses:
        '200':
          description: An SVG.
          content:
            image/svg+xml:
              schema:
                type: string
        '404':
          description: No such record in the knowledge base.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiV1MerchantsBySlugBadgeSvg
      x-operation-id-source: derived
  /api/v1/trust-log/head:
    get:
      tags:
      - trust
      summary: Current head of the transparency log
      security: []
      responses:
        '200':
          description: The head.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrustLogHead'
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiV1TrustLogHead
      x-operation-id-source: derived
  /api/v1/trust-log/checkpoint:
    get:
      tags:
      - trust
      summary: The latest operator-signed checkpoint
      security: []
      responses:
        '200':
          description: A signed checkpoint.
          content:
            application/json:
              schema:
                type: object
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiV1TrustLogCheckpoint
      x-operation-id-source: derived
  /api/v1/trust-log/checkpoints:
    get:
      tags:
      - trust
      summary: Archived checkpoints, for witnesses
      security: []
      responses:
        '200':
          description: Checkpoints.
          content:
            application/json:
              schema:
                type: object
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiV1TrustLogCheckpoints
      x-operation-id-source: derived
  /api/v1/trust-log/entries:
    get:
      tags:
      - trust
      summary: A range of log entries
      security: []
      parameters:
      - name: from
        in: query
        schema:
          type: integer
      - name: to
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: Entries.
          content:
            application/json:
              schema:
                type: object
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiV1TrustLogEntries
      x-operation-id-source: derived
  /api/v1/trust-log/entries/{seq}:
    get:
      tags:
      - trust
      summary: One log entry by sequence number
      security: []
      parameters:
      - name: seq
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: The entry.
          content:
            application/json:
              schema:
                type: object
        '404':
          description: No such record in the knowledge base.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. `Retry-After` gives the number of seconds to wait. Reads are metered per IP, per declared client name and per registered agent; a declared name never raises the IP ceiling.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiV1TrustLogEntriesBySeq
      x-operation-id-source: derived
  /.well-known/tunnel-trust.json:
    get:
      tags:
      - trust
      summary: Attestation signing key and rotation metadata
      security: []
      responses:
        '200':
          description: Key metadata.
          content:
            application/json:
              schema:
                type: object
      operationId: getWellKnownTunnelTrustJson
      x-operation-id-source: derived
  /.well-known/jwks.json:
    get:
      tags:
      - trust
      summary: The same keys as an RFC 7517 JWKS
      description: Verify any tunnel attestation with a standard JWS library and nothing else.
      security: []
      responses:
        '200':
          description: A JWKS.
          content:
            application/json:
              schema:
                type: object
      operationId: getWellKnownJwksJson
      x-operation-id-source: derived
components:
  schemas:
    TrustLogHead:
      type: object
      description: The current head of the hash-chained transparency log.
      properties:
        size:
          type: integer
        hash:
          type: string
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      description: A refusal an agent can act on. Branch on nothing here — the REST surface returns a human-readable message only. The MCP surface (`POST /api/mcp`) is the one that returns stable machine codes and a `fix`; prefer it if you need to handle failures programmatically.
      properties:
        error:
          type: string
    Verification:
      type: object
      description: Present on entity records. Absent on website records, which are not verified subjects.
      required:
      - level
      - status
      - checkUrl
      properties:
        level:
          type:
          - string
          - 'null'
          enum:
          - human
          - automated
          - null
          description: '`human` — a tunnel employee checked legal identity, channel control and that the service is real, and a second employee approved it. `automated` — machines confirmed the merchant controls the channels this record cites, and nothing more. `null` — not verified. Read this field; do not infer verification from the presence of a badge.'
        status:
          type: string
          enum:
          - verified_by_human
          - verified_automated
          - unverified
        limitations:
          type: array
          items:
            type: string
          description: Present when `level` is `automated`. States what the check did NOT establish. The same array is inside the signed attestation, so it cannot be stripped in transit without breaking the signature.
        checkUrl:
          type: string
          format: uri
          description: Fetch this before a high-stakes action. Revocations propagate faster than caches expire.
    VerificationStatus:
      type: object
      description: The live verification answer, with the signed attestation attached. Verify the signature against `/.well-known/jwks.json` rather than trusting this envelope.
      properties:
        slug:
          type: string
        verification:
          $ref: '#/components/schemas/Verification'
        attestation:
          type:
          - object
          - 'null'
        issuedAt:
          type:
          - string
          - 'null'
          format: date-time
        expiresAt:
          type:
          - string
          - 'null'
          format: date-time
  securitySchemes:
    agentBearer:
      type: oauth2
      description: Register once, then exchange credentials for a token. Needed only for writes.
      flows:
        clientCredentials:
          tokenUrl: https://api.tunnelpowered.com/api/v1/agents/token
          scopes: {}
externalDocs:
  url: https://tunnelpowered.com/docs
  description: The same surface, written for a person.