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.
openapi: 3.2.0
info:
title: tunnel public Identity 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: Identity
description: Register an agent and get a token.
paths:
/api/v1/agents/register:
post:
tags:
- Identity
summary: Register an agent
description: Only needed to WRITE — reading the knowledge base never requires credentials. The client secret is returned once and is not recoverable.
security: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AgentRegistration'
responses:
'200':
description: Registered.
content:
application/json:
schema:
$ref: '#/components/schemas/Credentials'
'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: postApiV1AgentsRegister
x-operation-id-source: derived
/api/v1/agents/token:
post:
tags:
- Identity
summary: Exchange credentials for a bearer token (OAuth 2.1 client_credentials)
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- client_id
- client_secret
properties:
grant_type:
type: string
enum:
- client_credentials
client_id:
type: string
client_secret:
type: string
responses:
'200':
description: An access token.
content:
application/json:
schema:
$ref: '#/components/schemas/Token'
'401':
description: Bad credentials.
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: postApiV1AgentsToken
x-operation-id-source: derived
/.well-known/oauth-authorization-server:
get:
tags:
- Identity
summary: RFC 8414 authorization server metadata
security: []
responses:
'200':
description: AS metadata.
content:
application/json:
schema:
type: object
operationId: getWellKnownOauthAuthorizationServer
x-operation-id-source: derived
/.well-known/oauth-protected-resource:
get:
tags:
- Identity
summary: RFC 9728 protected resource metadata for the MCP endpoint
security: []
responses:
'200':
description: PR metadata.
content:
application/json:
schema:
type: object
operationId: getWellKnownOauthProtectedResource
x-operation-id-source: derived
components:
schemas:
Credentials:
type: object
description: The client secret is returned exactly once, in this response. It is not recoverable.
properties:
client_id:
type: string
client_secret:
type: string
Token:
type: object
properties:
access_token:
type: string
token_type:
type: string
enum:
- Bearer
expires_in:
type: integer
AgentRegistration:
type: object
required:
- name
- operator_contact
- platform_type
properties:
name:
type: string
description: The agent or product name a merchant will see.
operator_contact:
type: string
description: A real inbox belonging to whoever operates this agent. Merchants use it to reach a human.
platform_type:
type: string
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
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.