Reflecto SMS (assistant) API
The SMS (assistant) API from Reflecto — 2 operation(s) for sms (assistant).
The SMS (assistant) API from Reflecto — 2 operation(s) for sms (assistant).
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/reflecto-dev:reflecto-dev-sms-assistant-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: Reflecto SMS (assistant) API
version: 1.1.0
description: 'The Reflecto public HTTP API lets you push notifications to your own paired
devices — your Android phone and any browser extensions you''ve paired with it.
Designed for the same job as Pushover or the old Pushbullet API: a single
HTTPS call from a script, cron job, or webhook puts a notification on every
screen you own.
Authentication uses opaque prefixed bearer tokens (`rfk_live_…`) created and
managed on your paired Android device — there are no email accounts, no
passwords, no server-side user records beyond device pairing state. See the
Authentication guide for the token lifecycle.
The public-API surface is small on purpose: `POST /v1/send`, its
capability-URL alias `POST /v1/send/{token}`, and a Pushover-compatible shim
at `POST /v1/messages.json`. Mirroring traffic from your phone to your
extension never reaches this surface — it stays end-to-end encrypted via the
private `/v1/sync` SSE stream.
See the Guides tab for the quickstart, authentication model, rate-limit
contract, and encryption posture.'
contact:
name: Reflecto
url: https://github.com/reflectoapp/reflecto
license:
name: MIT
url: https://github.com/reflectoapp/reflecto/blob/main/LICENSE
servers:
- url: https://api.reflecto.dev
description: Production
security:
- BearerAuth: []
tags:
- name: SMS (assistant)
paths:
/v1/sms-agent/contact-queries:
post:
operationId: findSmsContact
tags:
- SMS (assistant)
summary: Look up a saved contact to text, by name
description: 'The `find_contact` MCP tool''s backing endpoint. Asks the user''s phone to search its contacts by name and waits up to **15 seconds** for the answer. Returns up to 5 candidates, each a display name, a number-type label and an opaque single-use handle (10-minute lifetime) for `POST /v1/sms-agent/sends`.
**No phone number is ever returned**, whole or in part, and a query that is mostly digits is refused (`400 invalid_query`) so this cannot become a reverse lookup.
**Not end-to-end encrypted.** This is Reflecto''s server-as-sender path: the request passes through Reflecto''s server in memory, is encrypted to the phone with the server''s key, and is never stored.
Requires an OAuth token from a connected assistant holding `sms:send`, and a paired phone running a Reflecto build that supports assistant texting (`426` / `428` otherwise). The user must also have switched on “Let assistants send texts” on the phone, or the answer is `disabled`.'
security:
- ConnectorOAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SmsContactQueryRequest'
examples:
byName:
value:
query: Richa mobile
responses:
'200':
description: The phone's answer, or `phone_unreachable` if it did not answer within 15 s. Every outcome is a 200 — only `ok` carries candidates.
content:
application/json:
schema:
$ref: '#/components/schemas/SmsContactQueryResponse'
examples:
ok:
value:
status: ok
candidates:
- handle: ch_q3V9xK2mP0aL7bN4cR1sTw
name: Richa Sharma
label: Mobile
- handle: ch_Zx8wV7uT6sR5qP4oN3mL2k
name: Richa Sharma
label: Work
noMatch:
value:
status: no_match
unreachable:
value:
status: phone_unreachable
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'409':
$ref: '#/components/responses/Conflict'
'426':
$ref: '#/components/responses/UpgradeRequired'
'428':
$ref: '#/components/responses/PreconditionRequired'
'429':
$ref: '#/components/responses/RateLimitedInteractions'
/v1/sms-agent/sends:
post:
operationId: sendSmsToContact
tags:
- SMS (assistant)
summary: Text a contact from the user's phone
description: 'The `send_sms` MCP tool''s backing endpoint. Sends `body` from the user''s own phone to the contact behind `contact_handle` — a handle from `POST /v1/sms-agent/contact-queries`. **There is no way to send to a raw phone number**; anything that is not a phone-minted handle is a `400 invalid_contact_handle`.
Waits up to **30 seconds** for the phone to confirm, then returns `sent`, `failed` (with a `reason`) or `pending`. `pending` means not yet confirmed — the send is neither retried nor cancelled. **Idempotent on the handle:** calling again with the same handle returns the current state and never sends a second text. Handles are single-use, so a new text always needs a new lookup.
**Not end-to-end encrypted.** This is Reflecto''s server-as-sender path: the request passes through Reflecto''s server in memory, is encrypted to the phone with the server''s key, and is never stored.
Sends share the phone''s on-device limits (15/hour, 50/day, 5/hour to one recipient) and post a notification on the phone naming the recipient.'
security:
- ConnectorOAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SmsAgentSendRequest'
examples:
send:
value:
contact_handle: ch_q3V9xK2mP0aL7bN4cR1sTw
body: Running 15 minutes late for dinner
responses:
'200':
description: The send's state when this call returned.
content:
application/json:
schema:
$ref: '#/components/schemas/SmsAgentSendResponse'
examples:
sent:
value:
state: sent
recipient_label: Richa Sharma · Mobile
failed:
value:
state: failed
reason: handle_expired
pending:
value:
state: pending
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'409':
$ref: '#/components/responses/Conflict'
'426':
$ref: '#/components/responses/UpgradeRequired'
'428':
$ref: '#/components/responses/PreconditionRequired'
'429':
$ref: '#/components/responses/RateLimitedInteractions'
components:
responses:
UpgradeRequired:
description: The target phone's Reflecto app is too old to receive this — update Reflecto on the phone from the Google Play Store before this can be delivered. Nothing was sent.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
phoneAppOutdated:
value:
error:
code: phone_app_outdated
message: the paired phone's Reflecto app is too old to receive this — update Reflecto on the phone from the Google Play Store before this can be delivered; nothing was sent.
Conflict:
description: The request conflicts with the current state of a resource.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
noPhoneDevice:
summary: Owner has no paired phone to ask
value:
error:
code: no_phone_device
message: no_phone_device
BadRequest:
description: Malformed payload or invalid field value.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidPriority:
value:
error:
code: invalid_priority
message: priority must be one of min, low, default, high, urgent
messageTooLong:
value:
error:
code: message_too_long
message: message must be ≤ 1500 bytes
details:
bytes: 1620
max: 1500
PreconditionRequired:
description: The paired phone hasn't reported its Reflecto app version, so support can't be confirmed — the user should update Reflecto and open it once. Nothing was sent.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
phoneAppUnknown:
value:
error:
code: phone_app_unknown
message: Reflecto can't confirm the user's phone supports texting for an assistant. Ask the user to update Reflecto on their phone and open it once, then try again; nothing was sent.
RateLimitedInteractions:
description: Rate limit or resource cap exceeded. For interaction creation this includes the 10-pending-per-owner cap; for ring and reminders, IP/token rate limits.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
rateLimitExceeded:
value:
error:
code: rate_limit_exceeded
message: Rate limit hit
tooManyPending:
summary: Owner already has 10 pending interactions
value:
error:
code: too_many_pending
message: too_many_pending
Unauthorized:
description: Missing, invalid, or revoked bearer token.
content:
application/json:
schema:
$ref: '#/components/schemas/SimpleErrorResponse'
examples:
missingToken:
value:
error: missing_token
message: 'Authorization: Bearer rfk_live_… required'
invalidToken:
value:
error: invalid_token
Forbidden:
description: Token exists but lacks scope for the requested action.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
priorityCapped:
value:
error:
code: priority_capped
message: Token's priority_cap is 'default'; requested 'high'
schemas:
SmsAgentSendRequest:
type: object
properties:
contact_handle:
type: string
description: A handle from `POST /v1/sms-agent/contact-queries`. There is no way to send to a raw phone number.
example: ch_q3V9xK2mP0aL7bN4cR1sTw
body:
type: string
description: The message text. 1–1600 characters.
example: Running 15 minutes late for dinner
required:
- contact_handle
- body
additionalProperties: false
SmsContactQueryResponse:
type: object
properties:
status:
type: string
enum:
- ok
- no_match
- too_many
- disabled
- too_many_lookups
- no_contacts_permission
- no_sms_permission
- invalid_query
- contacts_unavailable
- phone_unreachable
description: '`ok` carries 1–5 candidates. `no_match` / `too_many` (more than 5 — ask for a more specific name) carry none. `disabled` = the user has not switched on “Let assistants send texts” on the phone. `phone_unreachable` = the phone did not answer within 15 s. The remaining values are phone-side refusals: `too_many_lookups` (30/hour), `no_contacts_permission`, `no_sms_permission`, `invalid_query`, `contacts_unavailable`.'
example: ok
candidates:
type: array
items:
type: object
properties:
handle:
type: string
pattern: ^ch_[A-Za-z0-9_-]{22}$
description: Opaque, single-use, 10-minute handle minted by the phone. The ONLY way to name a recipient for `POST /v1/sms-agent/sends`.
example: ch_q3V9xK2mP0aL7bN4cR1sTw
name:
type: string
minLength: 1
maxLength: 200
description: The contact's display name.
example: Richa Sharma
label:
type: string
minLength: 1
maxLength: 100
description: The number type (localized, or the contact's custom label). Never a number.
example: Mobile
recency:
type: string
enum:
- texted today
- texted yesterday
- texted this week
- texted earlier
description: Coarse last-texted bucket. Present only to tell apart two candidates with the same name and label. Never a timestamp.
example: texted yesterday
required:
- handle
- name
- label
additionalProperties: false
description: Present only when `status` is `ok`. Never contains a phone number.
required:
- status
ErrorResponse:
type: object
properties:
error:
type: object
properties:
code:
type: string
example: message_too_long
message:
type: string
example: message must be ≤ 1500 bytes
details:
type: object
additionalProperties: {}
required:
- code
- message
required:
- error
SimpleErrorResponse:
type: object
properties:
error:
type: string
example: invalid_token
message:
type: string
required:
- error
description: 'Flat error shape used for auth failures — `invalid_token` carries only the stable code; `missing_token` adds a `message` hint pointing at the `Authorization: Bearer …` header. The `message` field is therefore optional.'
SmsContactQueryRequest:
type: object
properties:
query:
type: string
description: 'The contact''s name as the user said it, including a number type (Mobile/Work/Home) if they said one. Never a phone number: a query that is mostly digits is refused.'
example: Richa mobile
required:
- query
additionalProperties: false
SmsAgentSendResponse:
type: object
properties:
state:
type: string
enum:
- sent
- failed
- pending
description: '`sent` = the phone handed the SMS to the network. `failed` carries a `reason`. `pending` = not confirmed within 30 s; the send is neither retried nor cancelled, and calling again with the same handle returns the current state without sending again.'
example: sent
reason:
type: string
enum:
- disabled
- rate_limited
- handle_expired
- no_sms_permission
- no_service
- send_error
- phone_unreachable
description: Present only when `state` is `failed`.
example: handle_expired
recipient_label:
type: string
description: '`Name · Label` of the recipient, as the lookup returned it — when the phone reported it while this request was waiting. Never a number.'
example: Richa Sharma · Mobile
required:
- state
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: rfk_live_…
description: Opaque bearer token created on your paired Android phone. The format is `rfk_live_` followed by 32 URL-safe alphanumeric characters (≥160 bits of entropy). Test tokens use the `rfk_test_` prefix.
ConnectorOAuth:
type: http
scheme: bearer
description: OAuth 2.1 access token issued by Reflecto's authorization server to a connected AI assistant (the remote MCP connector flow). Must carry the `sms:send` scope, which is never granted to `rfk_live_` API tokens.