Telmian SMS
SMS for apps built with AI: OTP codes, reminders, two-way texts to 44 European countries.
사용해야 할까요
품질 및 안전성
발견 사항 (8)
- LOWselect_project에서
- LOWsimulate_reply에서
- LOWwebhook_creation_link에서
- LOWcreate_sandbox_webhook에서
- LOWset_webhook_events에서
- LOWset_webhook_enabled에서
- LOWwebhooks에서
- LOWwebhook_attempts에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"sms": {
"url": "https://app.telmian.com/mcp"
}
}
}원격 엔드포인트
https://app.telmian.com/mcpstreamable-http할 수 있는 일
도구 목록
도구 (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.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢projects
List your projects and environments. Production projects may send real SMS.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢project_policy
Read OTP and routing policy for the selected project.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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).
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢webhook_attempts
List recent delivery attempts for this project webhooks.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢messages
List recent messages with masked destination and delivery state.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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).
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢verified_numbers
List verified owner numbers in masked form.
입력 스키마
{
"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).
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢owner_hooks
List owner notification hooks without secret URLs.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🔴revoke_owner_hook(hook_id)
Disable one owner notification hook.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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.
입력 스키마
{
"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#"
}커뮤니티
증거