---
title: "Handle Twilio Inbound Sms"
method: POST
path: "/webhooks/twilio/sms"
tags: ["webhooks"]
---

# Handle Twilio Inbound Sms

`POST /webhooks/twilio/sms`

Sync sms_opted_in when a user replies STOP/START to our number.

Prefer Twilio's normalized OptOutType (handles punctuation, multi-word, and
carrier variants); fall back to matching the raw Body against known keywords.

## Query parameters

- `token` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.dev/trytrata/apis/fastapi.md) · [All operations](https://skmtc.dev/trytrata/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trytrata/fastapi/revisions/a8ae8846c411/schema)
