---
title: "Set contact SMS consent (opt-in/opt-out)"
method: POST
path: "/sms/consent"
---

# Set contact SMS consent (opt-in/opt-out)

`POST /sms/consent`

## Request

- Base URL: `https://sendinel.ai/api/v1`
- URL: `https://sendinel.ai/api/v1/sms/consent`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://sendinel.ai/oauth/authorize`, token URL `https://sendinel.ai/oauth/token`)

## Request body

- object
  - `contact_id` string, uuid, required
  - `status` 'opt_in' | 'opt_out'
  - `source` string
  - `consent_text` string, nullable

## Response `200`

Consent saved

---

[API](https://skmtc.dev/sendinel/apis/sendinel-api.md) · [All operations](https://skmtc.dev/sendinel/apis/sendinel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sendinel/apis/sendinel-api/revisions/20b2c6d5616d?raw)
