send-sms/SKILL.md
Production SMS delivery workflow for Rewrite. Use when the agent needs to send transactional or campaign SMS, manage Rewrite contacts or segments, implement batching, enforce idempotency, use templates and scheduling, and integrate the official Rewrite SDKs, REST client, CLI, or ecosystem packages.
npx skillsauth add rewritetoday/skills send-smsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Implement outbound SMS against the current public Rewrite API contract.
references/installation.md.tocontact as contact ID or exact contact namecontenttemplateId plus variables/contacts when recipients need stable metadata such as name, channel, or per-contact tags./segments and /segments/:id/contacts to maintain reusable audiences. There is no direct segment-send endpoint; list the segment contacts, then call /messages or /messages/batch.tags, scheduledAt, and segmentation only when required by the flow.Idempotency-Key to every create/send action.analysis.+55 E.164 numbers on the public API unless the project explicitly supports international numbers.contact over raw to when the same recipient will be reused, tagged, or segmented.contact by name, keep the name unique and stable per project because lookup is exact.to still ensures a Rewrite contact exists for that phone number.429 and transient 5xx.400, 401, and commercial 403 blocks as non-retryable until fixed.message.delivered for critical workflows; it is still WIP in the public docs.Single SMS send via REST:
curl -X POST https://api.rewritetoday.com/v1/messages \
-H "Authorization: Bearer $REWRITE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"to": "+5511999999999", "content": "Your code is 4821"}'
references/installation.mdreferences/contacts-and-segments.mdreferences/single-sms-examples.mdreferences/batch-sms-examples.mdreferences/template-i18n.mdreferences/delivery-lifecycle.mdreferences/best-practices.mdPersist or return the accepted response. Expected shape:
{
"id": "msg_abc123",
"status": "accepted",
"to": "+5511999999999",
"createdAt": "2026-04-06T12:00:00Z",
"analysis": { "encoding": "GSM-7", "characters": 22, "segments": 1 },
"idempotencyKey": "550e8400-e29b-41d4-a716-446655440000",
"tags": []
}
development
General SMS best-practices guide for Rewrite-based systems. Use when the agent needs to define SMS architecture, contacts and segments strategy, deliverability, templates, retries, observability, webhook handling, or rollout guardrails before or alongside implementation.
development
Rewrite webhook ingestion workflow for your application. Use when the agent needs to configure Rewrite webhooks, verify signatures, parse and normalize event payloads, handle retries and dedupe, inspect delivery logs, and route delivery or OTP events safely.
development
Secure SMS agent workflow for building a text message chatbot, messaging agent, or SMS bot on Rewrite. Covers LLM-driven replies over application-owned inbound conversations with prompt-injection defense, action policy gates, risk-level escalation, and outbound send controls.
tools
Rewrite platform router for API, SDK, CLI, contacts, segments, webhooks, templates, and AI workflows. Use when the agent needs to send SMS, manage Rewrite contacts or segments, handle Rewrite webhook events, work with official Rewrite SDKs/packages, or build application-owned agent flows on top of Rewrite.