Reflecto Send API
Push notifications to one or all of your paired devices.
Push notifications to one or all of your paired devices.
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-send-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 Send 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: Send
description: Push notifications to one or all of your paired devices.
paths:
/v1/send:
post:
operationId: send
tags:
- Send
summary: Send a notification to your paired devices
description: 'Sends a notification to one or every paired device for the user behind the bearer token. Accepts JSON, form-encoded, or `text/plain` bodies. When the body is `text/plain` (or has no `Content-Type`), the entire body becomes the `message` field.
Total serialized envelope size is hard-capped at **2048 bytes**. Requests over that limit return `413 payload_too_large` before any rate-limit counters are charged.
Unknown device labels in the `device` parameter are surfaced as warnings, not errors — long-running cron jobs do not break when a device is unpaired.'
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SendRequest'
examples:
minimal:
summary: Minimal — message only
value:
message: Backup finished in 12m
full:
summary: Full — message, title, priority, tags, url, actions
value:
message: Backup finished in 12m
title: Backup
priority: high
tags:
- ops
- backup
url: https://example.com/backup/123
url_title: View report
actions:
- label: Acknowledge
url: https://example.com/ack/123
device: pc
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/SendRequest'
examples:
form:
summary: Form-encoded — same fields as JSON
value:
message: Backup finished in 12m
title: Backup
priority: default
text/plain:
schema:
type: string
description: Plain-text body — entire string becomes `message`.
example: Backup finished in 12m
application/octet-stream:
schema:
type: string
description: Treated as `text/plain` — convenient for shell pipelines that default to `application/octet-stream` (e.g. some `curl` variants).
responses:
'200':
description: Accepted and enqueued. Body contains the `msg_*` id + delivery list.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
X-RateLimit-Resource:
$ref: '#/components/headers/XRateLimitResource'
content:
application/json:
schema:
$ref: '#/components/schemas/SendResponse'
examples:
delivered:
summary: Delivered to two devices, no warnings
value:
id: msg_3f6e2a7c9b1d4f8e8a5b6c1d2e3f4a5b
delivered_to:
- device_id: dev_9af3
type: android
delivery: push
- device_id: dev_2bc1
type: extension
delivery: push
warnings: []
queued:
summary: Phone cannot be woken — tell the user to open Reflecto
value:
id: msg_3f6e2a7c9b1d4f8e8a5b6c1d2e3f4a5b
delivered_to:
- device_id: dev_9af3
type: android
delivery: queued
warnings: []
warning:
summary: Delivered with a truncation warning
value:
id: msg_3f6e2a7c9b1d4f8e8a5b6c1d2e3f4a5b
delivered_to:
- device_id: dev_9af3
type: android
delivery: push
warnings:
- actions truncated to first 3 (got 5)
noDevices:
summary: Accepted but no paired devices matched the filter
value:
id: msg_3f6e2a7c9b1d4f8e8a5b6c1d2e3f4a5b
delivered_to: []
warnings:
- device filter matched 0 paired devices
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'415':
$ref: '#/components/responses/UnsupportedMediaType'
'429':
$ref: '#/components/responses/RateLimited'
/v1/send/{token}:
post:
operationId: sendCapability
tags:
- Send
summary: Send via capability URL (path-token alias)
description: 'Convenience alias for `POST /v1/send` where the bearer token is the last path segment instead of the `Authorization` header. Useful in environments that cannot set custom headers (basic IoT devices, simple shell pipelines).
Path-token requests have their URL redacted before any access log write. The header form is still the canonical/preferred way to call the API — path-tokens are easier to leak via shell history, screenshots, and referrers.'
security: []
parameters:
- schema:
type: string
pattern: ^rfk_(live|test)_[A-Za-z0-9]{32}$
description: Reflecto sender token (`rfk_live_…` or `rfk_test_…`).
example: rfk_live_aB3xQ7mN9pK2vR5tY8uW4sZ1cE6dF0gH
required: true
description: Reflecto sender token (`rfk_live_…` or `rfk_test_…`).
name: token
in: path
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SendRequest'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/SendRequest'
text/plain:
schema:
type: string
example: Backup finished in 12m
application/octet-stream:
schema:
type: string
description: Treated as `text/plain` — convenient for shell pipelines that default to `application/octet-stream`. Matches `/v1/send`.
responses:
'200':
description: Accepted and enqueued.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
X-RateLimit-Resource:
$ref: '#/components/headers/XRateLimitResource'
content:
application/json:
schema:
$ref: '#/components/schemas/SendResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'415':
$ref: '#/components/responses/UnsupportedMediaType'
'429':
$ref: '#/components/responses/RateLimited'
components:
responses:
RateLimited:
description: Rate limit hit on one of the per-token / per-IP / per-receiver layers.
headers:
Retry-After:
description: Seconds to wait before retrying. Respect — immediate retries trip the same gate.
schema:
type: integer
example: 30
X-RateLimit-Limit:
$ref: '#/components/headers/XRateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/XRateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/XRateLimitReset'
X-RateLimit-Resource:
$ref: '#/components/headers/XRateLimitResource'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
rateLimitExceeded:
value:
error:
code: rate_limit_exceeded
message: Rate limit hit on token_burst
PayloadTooLarge:
description: Serialized envelope exceeds the 2048-byte cap.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
payloadTooLarge:
value:
error:
code: payload_too_large
message: Payload exceeds 2048 byte limit
details:
size: 3104
max: 2048
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
UnsupportedMediaType:
description: The request body's media type is not supported — an unrecognised Content-Type, a non-utf charset, or an unsupported Content-Encoding.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
unsupportedMediaType:
value:
error:
code: unsupported_media_type
message: Content-Type is not supported by this endpoint
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'
headers:
XRateLimitResource:
description: Names which layer was tightest on this request. The enumerated values match the resources tracked in `apps/server/src/middleware/publicApiLimits.ts`.
schema:
type: string
enum:
- token_burst
- token_monthly
- receiver_daily
- ip_minute
- ip_hour
example: token_burst
XRateLimitRemaining:
description: Remaining sends in the binding layer's current window.
schema:
type: integer
example: 47
XRateLimitReset:
description: Unix epoch (seconds) when the binding layer's window resets.
schema:
type: integer
example: 1234567890
XRateLimitLimit:
description: Cap for the binding rate-limit layer on this request.
schema:
type: integer
example: 60
schemas:
SendRequest:
type: object
properties:
message:
type: string
minLength: 1
description: Notification body as plain text — write quotes and newlines literally, never JSON-escape them (no \" or \n sequences; the JSON layer handles encoding). Required. 1–1500 bytes (UTF-8). `maxLength` is omitted from the schema because JSON Schema measures characters, not bytes — server enforces a byte cap to keep the 2 KB envelope budget honest across CJK / emoji content.
example: Backup finished in 12m
title:
type: string
minLength: 1
description: Headline rendered above the body. 1–100 bytes (UTF-8). Schema omits `maxLength` because JSON Schema measures characters, not bytes.
example: Backup
priority:
type: string
enum:
- min
- low
- default
- high
- urgent
default: default
description: Notification priority. `min`/`low` use normal FCM; rest use high.
example: default
tags:
type: array
items:
type: string
description: Tag string. Oversize / overcount entries are truncated with a warning rather than rejected.
example: ops
description: Up to 5 tags rendered as labels. Oversize / overcount entries are truncated with a warning rather than rejected — `maxItems` is deliberately omitted so SDK generators don't client-side-reject valid-but-overcount inputs that the server will accept and trim.
url:
type: string
format: uri
description: Clickable URL attached to the notification. http(s) only, ≤ 512 bytes.
example: https://example.com/backup/123
url_title:
type: string
description: Display text for `url`. ≤ 32 bytes (UTF-8). Schema omits `maxLength` because JSON Schema measures characters, not bytes.
example: View report
actions:
type: array
items:
type: object
properties:
label:
type: string
minLength: 1
example: Acknowledge
url:
type: string
format: uri
description: http(s) only — `javascript:` and `data:` URLs are rejected with `400 invalid_action`. ≤ 512 bytes.
example: https://example.com/ack
required:
- label
- url
description: Up to 3 action buttons. Each button opens its `url` when tapped. Overcount entries are truncated with a warning — `maxItems` is deliberately omitted so SDK generators don't client-side-reject.
device:
type: string
maxLength: 256
default: all
description: 'Target device(s). `all` (default), `mobile` (alias `phone`), `pc` (every computer — browser extension, web app, CLI and desktop app), `desktop` (the native desktop app only), a comma-separated list of device labels, or an exact device id. Labels are not unique — one shared by two devices delivers to both, so pass an id to reach exactly one. `all`, `mobile`, `phone`, `pc` and `desktop` are reserved: a device you have NAMED after one of them is not reachable by that name, only by its id. An unknown label becomes a warning and falls back to delivering everywhere; a reserved word that matches none of your devices delivers to nobody and says so in `warnings`.'
example: all
markdown:
type: boolean
default: false
description: Render the body as Markdown on the extension. Ignored on Android in MVP.
example: false
ttl:
type: integer
description: Seconds the message stays in the per-device queue if not delivered live. Out-of-range values are clamped to the [0, 259200] range (72 hours, matching the Redis queue TTL) and a warning is returned.
example: 259200
default: 259200
minimum: 0
maximum: 259200
required:
- message
description: Canonical send payload. Form-encoded and text/plain bodies are documented in the guides — the server normalises them to this shape.
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.'
SendResponse:
type: object
properties:
id:
type: string
example: msg_3f6e2a7c9b1d4f8e8a5b6c1d2e3f4a5b
delivered_to:
type: array
items:
type: object
properties:
device_id:
type: string
example: dev_9af3
type:
type: string
enum:
- android
- extension
example: android
delivery:
type: string
enum:
- push
- queued
example: push
description: How the message reached this device. "push" — a wake-up was dispatched, so the user sees it now. "queued" — the device cannot be woken (a phone with no push token) and will collect the message the next time the Reflecto app is opened; prompt the user to open it.
required:
- device_id
- type
- delivery
warnings:
type: array
items:
type: string
required:
- id
- delivered_to
- warnings
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.