---
title: "Someone said stop: revoke consent for a number"
method: POST
path: "/api/consent/revoke"
tags: ["Consent"]
---

# Someone said stop: revoke consent for a number

`POST /api/consent/revoke`

## Request

- Base URL: `https://botnotice.app`
- URL: `https://botnotice.app/api/consent/revoke`
- Auth: HTTP bearer

## Request body

- object
  - `phone` string
  - `consent_id` string: Instead of phone: one consent by id
  - `method` string: How they said stop, e.g. texted STOP

## Response `200`

OK

- object
  - `ok` boolean
  - `revoked` integer

## Other responses

- `400`: Error
- `401`: Error

---

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