# Opt out a phone number

`POST https://hiremav.com/api/v3/opt_outs`

Opts out a phone number, whether or not you have a contact with it. Mav adds the number to your blocked numbers, so it never texts or calls it from your account. If a contact has the number, Mav opts them out too.

## Parameters

- `phone` (string, required): The phone number, like `+13125550142` or `(312) 555-0142`.

## Request

```sh
curl -X POST https://hiremav.com/api/v3/opt_outs \
  -H "Authorization: Bearer $MAV_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "phone": "+13125550142" }'
```

## Response: 200 OK

```json
{
  "phone": "+13125550142",
  "contact": {
    "id": "nct_7Hq2xKpR9vLm3N",
    "first_name": "Jordan",
    "last_name": "Rivera",
    "email": "jordan.rivera@example.com",
    "phone": "+13125550142",
    "opted_out": true,
    "created_at": "2026-10-06T16:42:18Z",
    "additional_info": {
      "current_carrier": "Example Mutual",
      "vehicles": [
        {
          "make": "Toyota"
        }
      ],
      "source": "API"
    },
    "referral": {}
  },
  "messages": [
    "Contact opted out.",
    "+13125550142 added to your blocked numbers."
  ]
}
```

## Response: 422 Unprocessable Content

```json
{
  "errors": [
    "Phone is not a valid phone number."
  ]
}
```

> Safe to retry. With no contact for the number, `contact` is `null` and `messages` starts with `No contact has this phone number.`
