---
title: "Send a transactional SMS"
method: POST
path: "/v1/send/sms"
tags: ["Send Messages"]
---

# Send a transactional SMS

`POST /v1/send/sms`

Send a transactional SMS message. To send a message, you'll need to provide a `transactional_message_id`. This is either the numerical ID of your transactional message template or the *Trigger Name* that you assigned the template.

You can find your `transactional_message_id` from the code sample in the **Overview** tab for your transactional message in the user interface, or you can look up a list of your transactional messages through the [App API](/integrations/api/app/tag/transactional/).

## Headers

- `X-Workspace-Id` integer

## Request body

- Sendsms
  - `transactional_message_id` union, required — The transactional message template that you want to use for your message. You can call the template by its numerical ID or by the *Trigger Name* that you assigned to the template in the UI (case insensitive).
    - integer — The ID of the transactional message you want to send.
    - string — The name of trigger for the transactional message you want to send; you set the trigger name in the *Configure Settings* step when setting up your message. This is case insensitive.
  - `to` string, required — The phone number you want to send your SMS to. Use E.164 format, like `+15551234567`, or Liquid if you store phone numbers as attributes.
  - `from` string — The phone number or sender ID your SMS is from. It must be verified in your Twilio account. This overrides the template's sender. Use E.164 format for a phone number.
  - `tracked` boolean — Whether to track link clicks for this SMS. Defaults to the transactional message's own tracking setting.
  - `language` string — Overrides language preferences for the person you want to send your transactional message to. Use one of our [supported two- or four-letter language codes](/journeys/channels/localization/getting-started/#supported-languages).
  - `auto_create` boolean — If `true` and your `transactional_message_id` doesn't match a record, Customer.io creates an empty record using that value as the *Trigger Name*. The ID must be a string. If the name already belongs to another channel, the request fails with `400`, and numeric IDs ignore this setting. See [details](/journeys/transactional-email/#auto-create-transactional-message-records).
  - `identifiers` union, required — Identifies the person represented by your transactional message by one of, and only one of, `id`, `email`, or `cio_id`.
    - object
      - `id` string, required — The identifier for the person represented by the transactional message. **NOTE**: If your workspace identifies people by email, use the `email` identifier instead.
    - object
      - `email` string, required — The identifier for the person represented by the transactional message. Use this option if your workspace identifies people by email rather than by `id`.
    - object
      - `cio_id` string, required — A unique, immutable identifier for a person, set by Customer.io when you add a person.
  - `message_data` object — An object containing the key-value pairs referenced using liquid in your message.
  - `send_at` integer — A unix timestamp (seconds since epoch) determining when the message will be sent. The timestamp can be up to 90 days in the future. If this value is in the past, your message is sent immediately.
  - `disable_message_retention` boolean — If true, the message body is not retained in delivery history. Setting this value overrides the value set in the settings of your `transactional_message_id`.
  - `send_to_unsubscribed` boolean — If false, your message is not sent to unsubscribed recipients. Setting this value overrides the value set in the settings of your `transactional_message_id`.
  - `queue_draft` boolean — If true, your transactional message is held as a draft in Customer.io and not sent directly to your audience. You must go to the Deliveries and Drafts page to send your message.

## Response `200`

Returns a unique ID for the delivery.

- object
  - `delivery_id` string — A unique identifier for the message.
  - `queued_at` integer — A Unix timestamp for when Customer.io accepted and queued your request. For scheduled messages (using `send_at`), this is when we received your request, not when the message sends.
  - `send_at` integer — For a scheduled message, the Unix timestamp when the message is set to send. Returned only when you provide a future `send_at`.

## Other responses

- `400` — The request was malformed.
- `403` — You don't have SMS enabled.

---

[API](https://skmtc.dev/customer/apis/customer-io-journeys-api-reference.md) · [All operations](https://skmtc.dev/customer/apis/customer-io-journeys-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/customer/customer-io-journeys-api-reference/revisions/4b391af7cb06/schema)
