Telmian SMS
SMS for apps built with AI: OTP codes, reminders, two-way texts to 44 European countries.
Should I use this
Quality & Safety
Findings (8)
- LOWin select_project
- LOWin simulate_reply
- LOWin webhook_creation_link
- LOWin create_sandbox_webhook
- LOWin set_webhook_events
- LOWin set_webhook_enabled
- LOWin webhooks
- LOWin webhook_attempts
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"sms": {
"url": "https://app.telmian.com/mcp"
}
}
}Remote endpoints
https://app.telmian.com/mcpstreamable-httpWhat it can do
Tool inventory
Tools (49)
๐ขwhoami
Start here. Shows who is connected, the organization, your role, the permissions (scopes) granted to this connection, the selected project and all projects. If a tool you need is missing, the human must reconnect granting that permission.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขprojects
List your projects and environments. Production projects may send real SMS.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดcreate_project(name, environment, idempotency_key)
Create a sandbox project: deliveries are simulated, no real SMS and no credit used. Production (real SMS) projects are created by a person in the Telmian panel after going live. Reuse the same idempotency key on retries.
Input Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"environment": {
"default": "sandbox",
"type": "string",
"const": "sandbox"
},
"idempotency_key": {
"type": "string",
"pattern": "^[\\w.-]{8,128}$"
}
},
"required": [
"name",
"idempotency_key"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขselect_project(project_id)
Select one of your projects for subsequent MCP tools.
Input Schema
{
"type": "object",
"properties": {
"project_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"project_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขaccount_balance
Read prepaid balance and reserved credit in integer EUR micro-units.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขtopup_link
Link for the human to add credit by card (Stripe) or set up automatic top-up. Real SMS start after the first paid top-up. Never ask for card details in chat.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขsender_profile
The business name shown inside your SMS text (the sender is a phone number) and the site links may point to, with its review status (none, pending, approved, rejected; reason when rejected). site.code is the proof of ownership: publish it as the whole content of site.file_url (or as a DNS TXT record on the domain), deploy, then call verify_site.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดset_sender_profile(app_name, domain)
Choose the business name shown inside your SMS text, e.g. "Il tuo codice <name> รจโฆ" (letters, digits and spaces, max 20; the sender stays a phone number) and optionally your site domain (e.g. example.com) for links. Ask the human first. It goes to review: usually decided in seconds, brand-like names wait for a Telmian reviewer. Real verification codes need it approved.
Input Schema
{
"type": "object",
"properties": {
"app_name": {
"type": "string",
"minLength": 1,
"maxLength": 20
},
"domain": {
"anyOf": [
{
"type": "string",
"maxLength": 253
},
{
"type": "null"
}
]
}
},
"required": [
"app_name"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดverify_site
After publishing site.code from sender_profile at site.file_url (or as a DNS TXT record), check it: the site is then verified and templates may link to it. Error site_not_verified: the code is not reachable yet.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขproject_policy
Read OTP and routing policy for the selected project.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดupdate_project_policy(policy)
Change the cooldown between verification codes, the blocked regions or the maximum cost of the selected project; other limits are fixed by Telmian. Send only the fields to change; the others (including sandbox test numbers) are kept. Requires an organization admin.
Input Schema
{
"type": "object",
"properties": {
"policy": {
"type": "object",
"properties": {
"ttlSeconds": {
"type": "integer",
"minimum": 30,
"maximum": 600
},
"maxAttempts": {
"type": "integer",
"minimum": 1,
"maximum": 5
},
"cooldownSeconds": {
"type": "integer",
"minimum": 30,
"maximum": 300
},
"recipientHourly": {
"type": "integer",
"minimum": 1,
"maximum": 20
},
"recipientDaily": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"maxCost": {
"type": "integer",
"minimum": 1,
"maximum": 10000000
},
"allowedRegions": {
"maxItems": 250,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Z]{2}$"
}
},
"deniedRegions": {
"maxItems": 250,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Z]{2}$"
}
},
"allowVoice": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"required": [
"policy"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขapi_key_creation_link
Link for the human to create an API key in the panel. Use it for live (sk_live_) keys, which never pass through this chat; for the sandbox use create_sandbox_key.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขwebhook_creation_link
Link for the human to create a webhook in the panel and copy its signing secret.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดcreate_sandbox_key(name)
Create an API key for the selected SANDBOX project (simulated SMS, no cost) and return it once. Write it to the app .env as TELMIAN_API_KEY and do not repeat it. Each call creates a new key. Live keys: api_key_creation_link.
Input Schema
{
"type": "object",
"properties": {
"name": {
"default": "Sandbox key",
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดcreate_sandbox_webhook(url)
Create a webhook for the selected SANDBOX project: Telmian POSTs signed events (delivery, replies, verifications) to this public HTTPS address. Returns the signing secret once: write it to the app .env as TELMIAN_WEBHOOK_SECRET and verify each request with verifyWebhook from the telmian SDK. Live projects: webhook_creation_link.
Input Schema
{
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2048,
"format": "uri"
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดsetup_supabase_sms(secret, rotate)
Supabase phone sign-in without Twilio: connect the Supabase Send SMS hook to the selected SANDBOX project, so Supabase sends its login codes through Telmian. Returns the hook URL and signing secret once: set them in Supabase (Authentication > Hooks > Send SMS hook, type HTTPS) or, for local Supabase, in supabase/config.toml under [auth.hook.send_sms] (enabled = true, uri, secrets); never in client code. If the human already generated a secret in Supabase, pass it as secret. Live projects are connected by the human in the panel (Connections > Integrations). If the project is already connected, the existing hook is returned without a secret: pass rotate:true only to replace the secret (the old one stops working in Supabase at once).
Input Schema
{
"type": "object",
"properties": {
"secret": {
"type": "string",
"minLength": 20,
"maxLength": 256
},
"rotate": {
"type": "boolean"
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดrevoke_api_key(key_id)
Revoke an API key in the selected project. Applications using it stop working.
Input Schema
{
"type": "object",
"properties": {
"key_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"key_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดset_webhook_events(webhook_id, events)
Change subscribed event types for a webhook in this project.
Input Schema
{
"type": "object",
"properties": {
"webhook_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"events": {
"minItems": 1,
"maxItems": 22,
"type": "array",
"items": {
"type": "string",
"enum": [
"delivery.accepted",
"delivery.delivered",
"delivery.failed",
"challenge.verified",
"challenge.expired",
"challenge.locked",
"message.sent",
"message.delivered",
"message.failed",
"message.uncertain",
"message.unconfirmed",
"verify.completed",
"message.reply",
"message.received",
"message.scheduled",
"message.rescheduled",
"message.cancelled",
"appointment.created",
"appointment.changed",
"appointment.cancelled",
"assistant.task_created",
"assistant.task_completed"
]
}
}
},
"required": [
"webhook_id",
"events"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดset_webhook_enabled(webhook_id, enabled)
Enable or disable a webhook in this project.
Input Schema
{
"type": "object",
"properties": {
"webhook_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"enabled": {
"type": "boolean"
}
},
"required": [
"webhook_id",
"enabled"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขproject_status
Read this project, environment, account credit and price per SMS segment (live projects; sandbox is free), all in EUR micro-units.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขapi_keys
List this project API keys with their visible prefix (to match the key in .env); secret values are never returned.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขwebhooks
List this project webhook status and event subscriptions without URLs or signing secrets.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขwebhook_attempts
List recent delivery attempts for this project webhooks.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขmessages
List recent messages with masked destination and delivery state.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขmessage_status(message_id)
Read one message state without resending it: status and error_code. Final states: delivered; failed or expired (not charged, tell the user); sent with error_code delivery_unconfirmed (may have arrived, never resend automatically); unknown (never resend). Full table: /developer/quickstart.md, section 6.
Input Schema
{
"type": "object",
"properties": {
"message_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"message_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขmessage_replies(message_id)
Read replies to a message. Personal numbers remain masked.
Input Schema
{
"type": "object",
"properties": {
"message_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"message_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขmessage_templates
List templates and variables available for SMS. Ready ones come in Italian, English, German, French and Spanish (locale): use the language of the people who receive them; your own templates have no locale. Field formats: data DD/MM/YYYY (21/11/2026), ora HH:MM 24-hour (15:30), importo 12,50 โฌ or โฌ12.50, nome letters only, ordine/codice letters, digits and dashes, attivita your business name, link/url only on the verified site.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขtemplate_requests
Your templates and their review: approved (usable), pending (being reviewed, usually seconds, sometimes by a person), rejected (review_reason says what to change: tell the human and submit a new version).
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขverified_numbers
List verified owner numbers in masked form.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขusage
Usage of this project: verification codes and, for this month, messages by type and state, with the account balance and budgets (EUR micro-units).
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขowner_hooks
List owner notification hooks without secret URLs.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดrevoke_owner_hook(hook_id)
Disable one owner notification hook.
Input Schema
{
"type": "object",
"properties": {
"hook_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"hook_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขverification_status(challenge_id)
Read an OTP challenge status without revealing its code.
Input Schema
{
"type": "object",
"properties": {
"challenge_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"challenge_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดremove_verified_number(number_id)
Remove a verified owner number.
Input Schema
{
"type": "object",
"properties": {
"number_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"number_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขscheduled_messages
List scheduled message plans and their status.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}๐กsubmit_template(name, body, variables, expected_version)
Create or update an SMS template. Every new version is reviewed before use, usually by AI in seconds. Prefer typed fields, checked at every send: {nome}/{name}, {attivita}/{business}, {indirizzo}/{address}, {ordine}/{order}, {codice}/{code}, {data}/{date} DD/MM/YYYY, {ora}/{time} HH:MM, {importo}/{amount}, {link}/{url} (only URLs on the verified site, see verify_site). Any other field name is free text and is reviewed (usually in seconds, sometimes by a person). No phone numbers: write "reply to this SMS" (in the message language), replies come back to you. status pending: being reviewed, check template_requests again after a few seconds; rejected: review_reason says what to change.
Input Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 1000
},
"variables": {
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[a-z_]{1,40}$"
},
"additionalProperties": {
"type": "integer",
"minimum": 1,
"maximum": 200
}
},
"expected_version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"name",
"body",
"variables"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดsend_verification(phone, idempotency_key)
Send a 6-digit OTP by SMS to a European mobile number (same as POST /v1/verify), after human approval. The code is never returned. Calling it again for the same number sends a new code and invalidates the previous one. In sandbox only the project test numbers receive it; +393000000001 always works with code 000000.
Input Schema
{
"type": "object",
"properties": {
"phone": {
"type": "string",
"minLength": 8,
"maxLength": 16
},
"idempotency_key": {
"type": "string",
"pattern": "^[\\w.-]{8,128}$"
}
},
"required": [
"phone",
"idempotency_key"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดcheck_verification(phone, code)
Check the code the end user typed for that number (same as POST /v1/verify/check). Returns {valid:true|false}; a wrong, expired or used code is valid:false. Never repeat the code in later messages.
Input Schema
{
"type": "object",
"properties": {
"phone": {
"type": "string",
"minLength": 8,
"maxLength": 16
},
"code": {
"type": "string",
"pattern": "^\\d{6}$"
}
},
"required": [
"phone",
"code"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐กcreate_inverse_verification(phone, idempotency_key)
Create a verification where the user sends an SMS. Show the generated code and service destination only to that user. phone (the number being verified) is required in production projects.
Input Schema
{
"type": "object",
"properties": {
"phone": {
"type": "string",
"maxLength": 16
},
"idempotency_key": {
"type": "string",
"pattern": "^[\\w.-]{8,128}$"
}
},
"required": [
"idempotency_key"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขinverse_verification_status(verification_id)
Read status of an inverse SMS verification.
Input Schema
{
"type": "object",
"properties": {
"verification_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"verification_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดsend_template_message(to, template, variables, send_at, appointment_at, ...)
Queue an approved template SMS after human approval. Real projects charge credit. Use a stable idempotency key.
Input Schema
{
"type": "object",
"properties": {
"to": {
"type": "string",
"minLength": 8,
"maxLength": 16
},
"template": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"variables": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 200
}
},
"send_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"appointment_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"idempotency_key": {
"type": "string",
"pattern": "^[\\w.-]{8,128}$"
}
},
"required": [
"to",
"template",
"variables",
"idempotency_key"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดreply_to_conversation(conversation_id, template, variables, idempotency_key)
Reply with an approved transactional template within the 24 hour conversation window.
Input Schema
{
"type": "object",
"properties": {
"conversation_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"template": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"variables": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 200
}
},
"idempotency_key": {
"type": "string",
"pattern": "^[\\w.-]{8,128}$"
}
},
"required": [
"conversation_id",
"template",
"variables",
"idempotency_key"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดsend_owner_alert(text, idempotency_key)
Send an alert SMS to the project owner verified numbers after human approval.
Input Schema
{
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 480
},
"idempotency_key": {
"type": "string",
"pattern": "^[\\w.-]{8,128}$"
}
},
"required": [
"text",
"idempotency_key"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดcancel_message(message_id)
Cancel a queued message if it has not been accepted by a gateway.
Input Schema
{
"type": "object",
"properties": {
"message_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"message_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ขpreview_reminders(plan)
Check a batch of reminders without sending anything. Each row: to, template (a reminder template from message_templates), variables, and appointment_at (required for reminder templates: reminder 24h before the appointment, at that exact time); send_at optional to choose another time. Optional recurrence repeats every row. Returns the computed send times and a preview_token; then call schedule_reminders with the same plan and that preview_token.
Input Schema
{
"type": "object",
"properties": {
"plan": {
"type": "object",
"properties": {
"rows": {
"minItems": 1,
"maxItems": 500,
"type": "array",
"items": {
"type": "object",
"properties": {
"to": {
"type": "string",
"maxLength": 16
},
"template": {
"type": "string",
"maxLength": 64
},
"variables": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 200
}
},
"send_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"appointment_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"external_reference": {
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,80}$"
}
},
"required": [
"to",
"template",
"variables"
],
"additionalProperties": false
}
},
"recurrence": {
"type": "object",
"properties": {
"frequency": {
"type": "string",
"enum": [
"daily",
"weekly",
"monthly"
]
},
"count": {
"type": "integer",
"minimum": 1,
"maximum": 366
},
"until": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
},
"required": [
"frequency"
],
"additionalProperties": false
}
},
"required": [
"rows"
],
"additionalProperties": false
}
},
"required": [
"plan"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดschedule_reminders(plan, preview_token, idempotency_key)
Schedule a batch of reminders checked with preview_reminders, after human approval. In production projects they are real SMS at the computed times.
Input Schema
{
"type": "object",
"properties": {
"plan": {
"type": "object",
"properties": {
"rows": {
"minItems": 1,
"maxItems": 500,
"type": "array",
"items": {
"type": "object",
"properties": {
"to": {
"type": "string",
"maxLength": 16
},
"template": {
"type": "string",
"maxLength": 64
},
"variables": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 200
}
},
"send_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"appointment_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"external_reference": {
"type": "string",
"pattern": "^[A-Za-z0-9_.:-]{1,80}$"
}
},
"required": [
"to",
"template",
"variables"
],
"additionalProperties": false
}
},
"recurrence": {
"type": "object",
"properties": {
"frequency": {
"type": "string",
"enum": [
"daily",
"weekly",
"monthly"
]
},
"count": {
"type": "integer",
"minimum": 1,
"maximum": 366
},
"until": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
},
"required": [
"frequency"
],
"additionalProperties": false
}
},
"required": [
"rows"
],
"additionalProperties": false
},
"preview_token": {
"type": "string",
"minLength": 64,
"maxLength": 64
},
"idempotency_key": {
"type": "string",
"pattern": "^[\\w.-]{8,128}$"
}
},
"required": [
"plan",
"preview_token",
"idempotency_key"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}๐ดchange_reminder(change, idempotency_key)
Cancel, edit (new send_at, appointment_at or variables) or duplicate scheduled reminders by message id (from scheduled_messages). future:true also changes the later occurrences of a recurrence.
Input Schema
{
"type": "object",
"properties": {
"change": {
"type": "object",
"properties": {
"ids": {
"minItems": 1,
"maxItems": 500,
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"action": {
"type": "string",
"enum": [
"cancel",
"edit",
"duplicate"
]
},
"future": {
"default": false,
"type": "boolean"
},
"send_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"appointment_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"variables": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string",
"maxLength": 200
}
}
},
"required": [
"ids",
"action"
],
"additionalProperties": false
},
"idempotency_key": {
"type": "string",
"pattern": "^[\\w.-]{8,128}$"
}
},
"required": [
"change",
"idempotency_key"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}โชsimulate_reply(message_id, response, text)
SANDBOX ONLY: make the recipient of a sent message answer, as a real person would by SMS: response yes or no, or text for any other answer (classified yes, no or other). Webhooks and replies behave as in production.
Input Schema
{
"type": "object",
"properties": {
"message_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"response": {
"type": "string",
"enum": [
"yes",
"no"
]
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 480
}
},
"required": [
"message_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}โชsimulate_inverse_verification(verification_id, phone)
SANDBOX ONLY: simulate the user sending the SMS of an inverse verification, which completes it.
Input Schema
{
"type": "object",
"properties": {
"verification_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"phone": {
"type": "string",
"maxLength": 16
}
},
"required": [
"verification_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Community
Evidence