# Error: sms_refused

> The text was refused by the SMS rules

Source: https://docs.vlayers.ai/errors/sms_refused

- HTTP status: 403, 429
- Retry: Depends on details
- details: `reason`: the rule that refused the text.

## What happened

The text was refused by the SMS rules.

## Why

The SMS trust rules refused this text. `details.reason` says which: `number_inbound_only`, `destination_not_allowed`, `do_not_contact`, `no_consent` or `quiet_hours` (403, not retryable as is), or `rate_limited` / `bulk_not_enabled` (429, retryable later: the workspace reached its texting allowance; replies are not counted).

## How to fix it

For a 403, change what is sent (another number, a destination the workspace may text, consent on file, the recipient's allowed hours). For a 429, retry after the delay, or ask for bulk sending to be enabled.

## Example response

```json
{
  "error": "sms_refused",
  "message": "The text was refused by the SMS rules.",
  "requestId": "req-8f2c1d4b",
  "retryable": false,
  "docs": "https://docs.vlayers.ai/errors/sms_refused"
}
```
