tascan_send_sms
Send a transactional TaScan SMS text to a worker (by worker_id, using their phone on file) or to a raw phone number. Optionally attach a task list — the recipient gets a tap-to-open checklist link. Attach images (MMS) with media_url (public https image URL) or media_base64 + media_type (jpeg/png/gif, max 3.5 MB) — e.g. a diagram, a tutorial photo or a site photo; the message text is optional when an image is attached. Sends from TaScan's carrier-registered A2P number (or the org's own Twilio if BYOK). Counts against the org's monthly SMS quota unless BYOK. Messages are auto-prefixed with "TaScan:" per carrier registration; transactional/work-related content only, no marketing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | Raw phone number (e.g. "+17025551234") — used when no worker_id given | |
| list_id | No | Optional task list ID — appends a tap-to-open worker checklist link | |
| message | No | Message text. Transactional and work-related only. | |
| media_url | No | Optional image to attach (MMS): a public https URL of a JPEG, PNG or GIF. The carrier fetches it at send time. | |
| worker_id | No | Worker ID — sends to their phone on file (preferred over raw phone) | |
| media_type | No | MIME type of media_base64 (not needed when media_base64 is a data: URI). | |
| include_link | No | When a list_id is given, append the tap-to-open link to the SMS body (default true). Set false to send the message text alone — the link is still returned for you to share another way. | |
| media_base64 | No | Optional image to attach (MMS) as base64 bytes (a data: URI prefix is accepted). JPEG, PNG or GIF, max 3.5 MB. Stored privately by TaScan and sent through a short-lived link. | |
| idempotency_key | No | B1: optional replay key (up to 1024 chars, no braces) sent verbatim as the Idempotency-Key header instead of a fresh one per call — a retried call with the SAME key replays the original response instead of sending a second text. |