---
title: "Revoke CASL consent for a phone number"
method: DELETE
path: "/v1/compliance/consents/{phone}"
tags: ["Compliance / CASL"]
---

# Revoke CASL consent for a phone number

`DELETE /v1/compliance/consents/{phone}`

## Request

- Base URL: `https://api.honkio.ca`
- URL: `https://api.honkio.ca/v1/compliance/consents/{phone}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Revokes consent records for the given number. Every SMS to it is then refused with NO_CONSENT until consent is recorded again. Opt-outs are separate: an opt-out (POST /opt-outs) blocks sends even when consent is on file, and only the recipient can lift it.

Requires `compliance:m` or `compliance:d` (any of).

## Path parameters

- `phone` string, required

## Response `204`

Every active consent for the number is revoked.

## Other responses

- `401`: Missing, invalid, revoked or expired API key.
- `402`: The account has no balance, or a LIVE key was used before the first top-up.
- `403`: The API key lacks the permission this operation requires, or the account is suspended or closed.
- `404`: NOT_FOUND: no active consent for the number.
- `422`: INVALID_PHONE_NUMBER.
- `429`: Rate limit reached: 100 requests per second per account, or a route-specific limit (Retry-After set where one applies).
- `500`: Unexpected server error.

---

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