---
title: "Send an SMS message"
method: POST
path: "/sms-messages"
tags: ["SMS messages"]
---

# Send an SMS message

`POST /sms-messages`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/sms-messages`
- Auth: API key in header `Authorization`

Sends a text from a business line (the first one with texting on, or `phone_number_id`). Within 24 hours of the person's last text it is a reply. Otherwise texting someone first needs their consent on file: `transactional` (the default) accepts any consent, `marketing` needs written consent; it goes out between 8am and 9pm their time. The first text to a number names the business and says how to opt out.

## Headers

- `Idempotency-Key` string

## Request body

- SmsMessageRequest
  - `to` string, required: The person's phone number, in the line's country (E.164 preferred, e.g. +14155550123).
  - `body` string, required: The text to send. Over 160 plain characters (70 with emoji or accents) it goes as several billed segments.
  - `purpose` 'transactional' | 'marketing': Why you are texting someone who hasn't texted in the last 24 hours. transactional (default) needs any consent on file; marketing needs written consent.
  - `phone_number_id` string: Which business line sends it. Defaults to the first number with texting on.

## Response `201`

The queued text

- SmsMessage
  - `id` string, required
  - `object` string, required
  - `direction` 'inbound' | 'outbound', required
  - `author` 'contact' | 'assistant' | 'outreach' | 'agent', required
  - `status` 'received' | 'pending' | 'sent' | 'delivered' | 'failed' | 'refused' | 'superseded' | 'canceled', required
  - `body` string, required
  - `segments` integer, required
  - `credits_charged` integer, nullable, required
  - `error` string, nullable, required
  - `sent_at` string, date-time, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `phone_number` string, required
  - `counterpart` string, required
  - `contact` string, nullable, required
  - `failure` 'undelivered' | 'send_failed' | 'null', nullable, required: Why a failed text failed: undelivered when the carrier accepted it and could not deliver it, send_failed when it was never sent. null unless status is failed.
  - `suppression` string, nullable, required: The phone suppression (`psup_...`) a refused text was held back by. null unless status is refused for a suppressed number.
  - `sms_follow_up` string, nullable, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

## Changes

- **2026-11-15** `56c22ab9b282`: 7 warning
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `400`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `401`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `403`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `404`
  - …3 more
- **2026-11-14** `a37321cbfdd6`: 1 breaking, 1 warning, 2 info
  - removed the required property `customer` from the response with the `201` status
  - added the new `contact` enum value to the `author` response property for the response status `201`
  - removed the `customer` enum value from the `author` response property for the response status `201`
  - added the required property `contact` to the response with the `201` status
- **2026-11-13** `059d0b2f9e05`: 2 info
  - added the required property `failure` to the response with the `201` status
  - added the required property `suppression` to the response with the `201` status
- **2026-10-27** `ad9fd6476d85`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/sms-messages/post.md)

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) - [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/ccbd8fcbd6d7?raw)
