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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/skysay-ai:skysay-ai-messages-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
openapi: 3.2.0
info:
description: 'Agent-native telephony API for customer onboarding, credits, numbers, webhooks, gateways, and policy-gated calls. Request bodies are UTF-8. Send JSON: a body that is absent or whitespace-only reads as an empty object, and a JSON body that is not valid JSON, is not a JSON object, or is not UTF-8 returns 400. A request carrying any Content-Encoding other than identity returns 415 — this API does not accept compressed request bodies. A required field that is missing, null or blank returns 400 naming the field.'
title: Skysay Messages API
version: 0.1.0
servers:
- url: https://api.skysay.ai
security:
- ApiKeyBearer: []
tags:
- description: SMS messages and conversations.
name: Messages
paths:
/v1/agents/{agent_id}/messages:
post:
description: 'Project-scoped, unlike the organization-scoped POST /v1/messages: the agent''s own project is the send''s project. A foreign workspace''s agent, another project, an unpublished agent and an unknown template are the same 404. The text is rendered from the published template with the variables and slots given, within 6 SMS segments, and authorized as POST /v1/messages is.'
operationId: sendAgentTemplateMessage
parameters:
- in: path
name: agent_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AgentTemplateMessage'
required: true
responses:
'201':
description: The message, as POST /v1/messages returns it. Body, provider metadata, error detail and idempotency key require sms:read, including on idempotent replays.
'400':
description: A body beside a template, an unsupported field, a missing or invalid variable or slot, or a text over 6 segments.
'404':
description: SMS template not found
summary: Send one of an agent's published SMS templates
tags:
- Messages
x-required-scopes:
- sms:send
- agents:read
/v1/conversations:
get:
description: 'One bounded page, newest first, as an object: the items under `conversations` and `pagination`. Follow `pagination.next_cursor` while `pagination.has_more` is true; a walk returns every row that exists for the whole walk exactly once. Ordered by creation, newest first. Each conversation carries `message_count` and its newest message as `last_message`, never its history: read that with GET /v1/messages?conversation_id=.'
operationId: listConversations
parameters:
- description: Optional. Defaults to the key's own organization; naming another organization is refused.
in: query
name: organization_id
required: false
schema:
type: string
- description: Only this project's rows. A project of another organization is a 400.
in: query
name: project_id
required: false
schema:
type: string
- description: Page size, 1 to 200; 50 when omitted. A value outside that range or not a whole number is a 400, never shortened.
in: query
name: limit
required: false
schema:
default: 50
maximum: 200
minimum: 1
type: integer
- description: The previous page's `pagination.next_cursor`, exactly as received. Anything else is a 400.
in: query
name: cursor
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
conversations:
description: At most `limit` items, at most 200.
items:
$ref: '#/components/schemas/ConversationSummary'
type: array
pagination:
$ref: '#/components/schemas/ListPagination'
required:
- conversations
- pagination
type: object
description: One page. Server-Timing and X-Skysay-Query-Count describe the read; Cache-Control is no-store.
'400':
description: '`limit` outside its range or missing where required, a `cursor` that is not a `next_cursor`, or a project of another organization.'
summary: List SMS conversations
tags:
- Messages
/v1/conversations/{conversation_id}:
get:
description: 'The conversation as GET /v1/conversations lists it: `message_count` and `last_message`, never its history; read that with GET /v1/messages?conversation_id=.'
operationId: getConversation
parameters:
- in: path
name: conversation_id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ConversationSummary'
description: Conversation
'404':
description: Conversation not found
summary: Get one SMS conversation
tags:
- Messages
/v1/messages:
get:
description: 'One bounded page, newest first by `created_at`, ties by creation order, as an object: the items under `messages` and `pagination`. Follow `pagination.next_cursor` while `pagination.has_more` is true; a walk returns every row that exists for the whole walk exactly once.'
operationId: listMessages
parameters:
- description: Optional. Defaults to the key's own organization; naming another organization is refused.
in: query
name: organization_id
required: false
schema:
type: string
- description: Only this project's rows. A project of another organization is a 400.
in: query
name: project_id
required: false
schema:
type: string
- description: Page size, 1 to 500; 100 when omitted. A value outside that range or not a whole number is a 400, never shortened.
in: query
name: limit
required: false
schema:
default: 100
maximum: 500
minimum: 1
type: integer
- description: The previous page's `pagination.next_cursor`, exactly as received. Anything else is a 400.
in: query
name: cursor
required: false
schema:
type: string
- description: 'Only this conversation''s messages: its history, newest first. A conversation of another workspace or project is a 404.'
in: query
name: conversation_id
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
messages:
description: At most `limit` items, at most 500.
items:
type: object
type: array
pagination:
$ref: '#/components/schemas/ListPagination'
required:
- messages
- pagination
type: object
description: One page. Server-Timing and X-Skysay-Query-Count describe the read; Cache-Control is no-store.
'400':
description: '`limit` outside its range or missing where required, a `cursor` that is not a `next_cursor`, or a project of another organization.'
'404':
description: '`conversation_id` names no conversation of this workspace and project.'
summary: List SMS messages
tags:
- Messages
post:
description: Requires sms:send. Message body, provider metadata, error detail and idempotency key are returned only with sms:read, for both fresh sends and idempotent replays.
operationId: sendMessage
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SmsMessage'
required: true
responses:
'201':
description: Message
summary: Send a policy-gated outbound SMS
tags:
- Messages
/v1/messages/{message_id}/delivery-events:
get:
operationId: listMessageDeliveryEvents
parameters:
- in: path
name: message_id
required: true
schema:
type: string
responses:
'200':
description: Delivery events
summary: List SMS provider delivery events for one message
tags:
- Messages
/v1/messages/{message_id}/translations:
get:
description: 'Pure read: target selection, original/translation/both display, and polling never invoke a provider or create paid work. Artifacts are fenced to the current source revision. Single-source reads can calculate a bounded price estimate for retained older text without saving it or creating work.'
operationId: listMessageTranslations
parameters:
- in: path
name: message_id
required: true
schema:
type: string
- in: query
name: target_language
schema:
enum:
- ar
- bn
- bg
- ca
- zh
- hr
- cs
- da
- nl
- en
- et
- fi
- fr
- de
- el
- gu
- he
- hi
- hu
- id
- it
- ja
- kn
- ko
- lv
- lt
- ms
- ml
- mr
- 'no'
- fa
- pl
- pt
- ro
- ru
- sr
- si
- sk
- sl
- es
- sw
- sv
- ta
- te
- th
- tr
- uk
- ur
- vi
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CommunicationTranslation'
description: Canonical cached translation state. Originals remain readable on every failure.
'400':
description: Invalid target, limit, or cursor.
'404':
description: Source absent from the credential's own workspace.
'409':
description: Source changed; restart from the first page.
summary: Read cached message translations
tags:
- Messages
x-required-scopes:
- sms:read
post:
description: Explicitly request translation for any accessible settled source with retained usable text, regardless of its creation date, even when automatic agent translation is disabled. This enrolls only the requested source for revision recovery and never enables automatic translation of other historical sources. $0.02 per 1,000 original words needing translation per target, minimum $0.01 per successfully translated source/target. Matching-language-only text and cached reads cost zero. Failed attempts and platform corrections never double-charge. No funds leaves translation waiting_funds and does not resume calls or SMS.
operationId: requestMessageTranslation
parameters:
- in: path
name: message_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TranslationRequest'
required: true
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/CommunicationTranslation'
description: Canonical cached translation state. Originals remain readable on every failure.
'400':
description: Invalid target or ineligible source.
'403':
description: Missing content/paid-write scope, suspended source or workspace.
'404':
description: Source not in the credential's workspace.
summary: Request paid message translation
tags:
- Messages
x-required-scopes:
- sms:read
- translations:write
/v1/sms-conversations/{conversation_id}/actions:
post:
description: Bound to the authenticated workspace and the conversation's project. Queues a short action read-back (what will happen, when, and who or where) and a confirmation question by SMS. Only a later inbound SMS reply containing the current confirmation code and an explicit unconditional yes can authorize execution. One unclear reply receives one clarification. No autonomous AI SMS conversation is started. Voice-only tools are refused.
operationId: prepareConversationAction
parameters:
- in: path
name: conversation_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SmsActionPrepare'
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/BusinessAction'
description: Action snapshot
'400':
description: Invalid arguments or unavailable tool/channel
'403':
description: Required scopes or policy missing
'404':
description: Conversation, agent or configured tool not in this workspace/project
'409':
description: Action identity conflicts or queued replies must be processed first
summary: Prepare an SMS-confirmed business action
tags:
- Messages
x-required-scopes:
- agents:write
- sms:read
- sms:send
/v1/sms-conversations/{conversation_id}/actions/{action_id}:
get:
description: 'Pure, workspace-bound read. Does not execute, retry, reconcile, or create an action. Response uses Cache-Control: no-store.'
operationId: getConversationAction
parameters:
- in: path
name: conversation_id
required: true
schema:
type: string
- in: path
name: action_id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/BusinessAction'
description: Action snapshot
'404':
description: Action not found for this workspace and conversation
summary: Read a business action and its receipt
tags:
- Messages
x-required-scopes:
- sms:read
- agents:read
/v1/sms-conversations/{conversation_id}/tool-reads:
post:
description: Bound to the authenticated workspace and the conversation's project. Only a saved read tool may run; writes are refused. No confirmation or AI chat loop is started.
operationId: runConversationToolRead
parameters:
- in: path
name: conversation_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SmsToolRead'
required: true
responses:
'200':
content:
application/json:
schema:
type: object
description: Bounded configured tool result
'400':
description: Invalid arguments or unavailable tool/channel
'403':
description: Required scopes or policy missing
'404':
description: Conversation, agent or configured tool not in this workspace/project
'409':
description: Action identity conflicts or queued replies must be processed first
summary: Run a configured read tool in an SMS conversation
tags:
- Messages
x-required-scopes:
- agents:read
- sms:read
components:
schemas:
SmsToolRead:
additionalProperties: false
properties:
agent_id:
minLength: 1
type: string
arguments:
description: Arguments for the agent's saved tool schema; finite JSON, at most 16 KiB serialized and 16 nested levels.
type: object
name:
minLength: 1
type: string
required:
- agent_id
- name
- arguments
type: object
SmsMessage:
description: recipient_type is optional and never enforced; there is no recipient_type column on the SMS row, so it is accepted but not persisted. purpose, categories and user_authorization are optional and recorded with the message's policy decision when sent; no purpose or category is ever refused.
properties:
body:
type: string
categories:
items:
type: string
type: array
from_phone_number_id:
type: string
organization_id:
type: string
project_id:
type: string
purpose:
description: 'Optional, free-form outbound purpose, recorded with the call or message when sent; no purpose, or any token, is ever refused. Documented catalog (pick one or send your own token): appointment, booking_confirmation, callback_requested, customer_outreach, delivery_notification, ops_alert, other, payment_reminder, personal_errand, reservation, status_check, support.'
type: string
recipient_type:
description: Optional, never enforced or required -- outbound is not restricted to business recipients. Persisted verbatim on the call row if sent; SMS has no recipient_type column, so it is accepted but not stored there.
type: string
to_phone_number:
type: string
user_authorization:
type: object
required:
- organization_id
- project_id
- from_phone_number_id
- to_phone_number
- body
type: object
AgentTemplateMessage:
description: Everything POST /v1/messages takes that names no resource, plus the template and what fills it. body, campaign_id, provider and segment_count are refused. The sending number, under any of its names, must belong to the agent's project.
properties:
bulk: {}
categories: {}
country: {}
from_number_id: {}
from_phone_number_id: {}
idempotency_key:
type: string
language:
description: The language to send in. Text is chosen from the call or request language, then its base language (et-EE -> et), then the agent's primary language, then, as a last resort, the template's texts in language-code order.
type: string
message_class: {}
metadata:
type: object
number_id: {}
project_id:
description: Optional. The agent's own project; any other answers 404 exactly as a foreign agent does.
type: string
purpose:
description: The message's purpose, authorized as on POST /v1/messages.
type: string
recipient_type: {}
relationship: {}
slots:
additionalProperties:
type: string
description: Values for the template's model slots, each within its max_length.
type: object
template_id:
type: string
to:
description: The recipient, E.164. to_phone_number is accepted as its alias.
type: string
to_phone_number: {}
user_authorization: {}
user_requested: {}
variables:
description: Values for the agent's declared variables the template references. A referenced required variable must be present; protected variables are refused (there is no confirmation to lean on).
type: object
required:
- template_id
type: object
ConversationSummary:
properties:
id:
type: string
last_message:
description: The conversation's newest message, as GET /v1/messages returns it; absent when it has none.
type: object
message_count:
minimum: 0
type: integer
required:
- id
- message_count
type: object
TranslationRequest:
additionalProperties: false
description: Idempotent for the current source revision and target. Repeating the command reuses the saved result; no client-generated idempotency key is needed.
properties:
target_language:
enum:
- ar
- bn
- bg
- ca
- zh
- hr
- cs
- da
- nl
- en
- et
- fi
- fr
- de
- el
- gu
- he
- hi
- hu
- id
- it
- ja
- kn
- ko
- lv
- lt
- ms
- ml
- mr
- 'no'
- fa
- pl
- pt
- ro
- ru
- sr
- si
- sk
- sl
- es
- sw
- sv
- ta
- te
- th
- tr
- uk
- ur
- vi
type: string
required:
- target_language
type: object
BusinessAction:
additionalProperties: false
description: Frozen read-back and durable outcome. A read is side-effect free. Replay returns the same action; unknown never authorizes an automatic retry.
properties:
calendar_outcome:
description: Server-owned calendar outcome, present only for a native calendar booking action. Pending confirmation and unknown outcomes never prove a booking.
enum:
- availability_empty
- availability_found
- booking_confirmed
- booking_not_created
- booking_unavailable
- booking_unconfirmed
- confirmation_declined
- confirmation_required
- provider_unavailable
- request_refused
- unknown
type: string
clarifications:
maximum: 1
minimum: 0
type: integer
expires_at:
format: date-time
type: string
id:
type: string
preview:
maxLength: 2048
type: string
reason:
type: string
receipt:
description: Bounded platform-owned result fields, never arbitrary webhook output. An accepted SMS or connecting transfer is not proof of delivery or an answered call.
type:
- object
- 'null'
status:
enum:
- authorized
- awaiting_confirmation
- canceled
- executing
- expired
- failed
- succeeded
- superseded
- unknown
type: string
required:
- id
- status
- preview
- clarifications
- expires_at
- reason
- receipt
type: object
ListPagination:
additionalProperties: false
properties:
has_more:
description: True while older rows remain. A page is the whole list only when this is false.
type: boolean
limit:
description: The page size used.
minimum: 1
type: integer
next_cursor:
description: Send as `cursor` to read the next page; null on the last page.
type:
- string
- 'null'
returned:
description: Items on this page.
minimum: 0
type: integer
required:
- limit
- returned
- has_more
- next_cursor
type: object
CommunicationTranslation:
properties:
catalog:
properties:
max_targets:
const: 6
type: integer
supported_target_languages:
items:
type: string
type: array
tariff:
properties:
currency:
const: USD
type: string
minimum_per_source_target:
const: 0.01
type: number
rate_per_1000_words:
const: 0.02
type: number
word_count_rule:
type: string
type: object
required:
- supported_target_languages
- max_targets
- tariff
type: object
eligible:
type: boolean
pagination:
description: Selected call translation units follow the original transcript timeline's pages.
properties:
has_more:
type: boolean
limit:
type: integer
next_cursor:
type:
- string
- 'null'
returned:
type: integer
type: object
quote:
description: Pre-inference upper bound using all original words. Language detection can reduce the settled price. Absent for unavailable or unquoted summary sources.
properties:
currency:
type: string
max_eligible_words:
type: integer
maximum_amount_minor:
type: integer
type: object
quote_pending:
description: The settled source is waiting for its current-revision word-count summary. Poll this pure read; quote is absent until ready.
type: boolean
source_completeness:
description: Partial indicates interrupted artifact delivery or unsettled source data; any available original text remains readable.
enum:
- complete
- partial
- unavailable
type: string
source_id:
type: string
source_kind:
enum:
- call
- message
type: string
source_revision:
type: integer
source_status:
enum:
- not_settled
- unavailable
- empty
- unit_too_large
- too_large
- available
type: string
translations:
items:
properties:
amount_minor:
type: integer
currency:
type: string
eligible_words:
type: integer
id:
type: string
reason:
type: string
source_revision:
type: integer
status:
enum:
- not_requested
- queued
- running
- ready
- waiting_funds
- failed
- stale
type: string
target_language:
type: string
units:
items:
properties:
id:
description: The immutable original turn or message id.
type: string
text:
maxLength: 16000
type: string
required:
- id
- text
type: object
type: array
type: object
maxItems: 49
type: array
required:
- source_kind
- source_id
- source_revision
- eligible
- source_status
- translations
- catalog
type: object
SmsActionPrepare:
additionalProperties: false
properties:
agent_id:
minLength: 1
type: string
arguments:
description: Arguments for the agent's saved tool schema; finite JSON, at most 16 KiB serialized and 16 nested levels.
type: object
idempotency_key:
description: Stable request identity for this conversation and exact action. Reuse with different details returns 409.
maxLength: 128
minLength: 1
type: string
name:
minLength: 1
type: string
required:
- agent_id
- name
- arguments
- idempotency_key
type: object
securitySchemes:
ApiKeyBearer:
description: 'A scoped sky_ API key, sent as Authorization: Bearer sky_...'
scheme: bearer
type: http