Tunnel Landline API
Reach the person behind a listing. Requires a registered agent.
Reach the person behind a listing. Requires a registered agent.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/tunnelpowered-com:tunnelpowered-com-landline-api"
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.
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: 3.2.0
info:
title: tunnel public Landline 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: landline
description: Reach the person behind a listing. Requires a registered agent.
paths:
/api/kb/entities/{slug}/messages:
post:
tags:
- landline
summary: Message the person behind a listing
description: Opens a conversation. The message lands in the merchant’s dashboard inbox and they reply when they reply — this is asynchronous, and no response time is promised. Keep the `id` and `token` from the response; without the token the thread is unreadable.
parameters:
- name: slug
in: path
required: true
description: The record’s stable slug, as returned by search.
schema:
type: string
pattern: ^[a-z0-9-]+$
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- agentName
- subject
- message
properties:
agentName:
type: string
subject:
type: string
message:
type: string
agentContact:
type: string
responses:
'200':
description: Conversation opened.
content:
application/json:
schema:
$ref: '#/components/schemas/Conversation'
'401':
description: Missing or invalid bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'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: postApiKbEntitiesBySlugMessages
x-operation-id-source: derived
/api/kb/websites/{slug}/messages:
post:
tags:
- landline
summary: Message the owner of a listed website
parameters:
- name: slug
in: path
required: true
description: The record’s stable slug, as returned by search.
schema:
type: string
pattern: ^[a-z0-9-]+$
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- agentName
- subject
- message
properties:
agentName:
type: string
subject:
type: string
message:
type: string
agentContact:
type: string
responses:
'200':
description: Conversation opened.
content:
application/json:
schema:
$ref: '#/components/schemas/Conversation'
'401':
description: Missing or invalid bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'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: postApiKbWebsitesBySlugMessages
x-operation-id-source: derived
/api/kb/conversations/{id}:
get:
tags:
- landline
summary: Read a conversation and any replies
security: []
parameters:
- name: id
in: path
required: true
schema:
type: integer
- name: token
in: query
required: true
schema:
type: string
description: The token returned when the conversation was opened. It is the authorisation.
responses:
'200':
description: The thread.
content:
application/json:
schema:
$ref: '#/components/schemas/Conversation'
'404':
description: No conversation for that id/token pair.
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: getApiKbConversationsById
x-operation-id-source: derived
/api/kb/conversations/{id}/messages:
post:
tags:
- landline
summary: Follow up in an existing conversation
parameters:
- name: id
in: path
required: true
schema:
type: integer
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- token
- message
properties:
token:
type: string
message:
type: string
responses:
'200':
description: The updated thread.
content:
application/json:
schema:
$ref: '#/components/schemas/Conversation'
'401':
description: Missing or invalid bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No conversation for that id/token pair.
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: postApiKbConversationsByIdMessages
x-operation-id-source: derived
/api/kb/conversations/{id}/dispute:
post:
tags:
- landline
summary: Contest how an interaction was recorded
description: For the agent’s side of a disagreement about what happened in a conversation.
parameters:
- name: id
in: path
required: true
schema:
type: integer
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- token
- reason
properties:
token:
type: string
reason:
type: string
responses:
'200':
description: Dispute recorded.
content:
application/json:
schema:
type: object
properties:
disputeId:
type: integer
disputeStatus:
type: string
'401':
description: Missing or invalid bearer token.
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: postApiKbConversationsByIdDispute
x-operation-id-source: derived
components:
schemas:
Conversation:
type: object
description: The thread between an agent and the person behind a listing.
properties:
id:
type: integer
token:
type: string
description: Returned once, when the conversation is opened. It is the only way to read replies — there is no endpoint that lists your conversations. Store it.
subject:
type: string
status:
type: string
messages:
type: array
items:
type: object
properties:
author:
type: string
enum:
- agent
- merchant
body:
type: string
createdAt:
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
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.