---
title: "Create Blocked Call for extension"
method: POST
path: "/v4/accounts/{voip_id}/extensions/{extension_id}/blocked-calls"
tags: ["Blocked Calls"]
---

# Create Blocked Call for extension

`POST /v4/accounts/{voip_id}/extensions/{extension_id}/blocked-calls`

## Request

- Base URL: `https://api.phone.com`
- URL: `https://api.phone.com/v4/accounts/{voip_id}/extensions/{extension_id}/blocked-calls`
- Auth: HTTP bearer

Create a blocked call pattern for extension

## Path parameters

- `voip_id` integer, required
- `extension_id` integer, required

## Request body

- VoipBlacklist
  - `start_date` integer: Timestamp in UNIX format
  - `type` 'incoming' | 'outgoing': Can be 'incoming', 'outgoing'
  - `pattern_type` 'equals' | 'starts_with': Can be 'equals', 'starts_with'
  - `pattern` string, required: Pattern of phone number. Starts with '+', followed by digits up to 14 characters
  - `notes` string: Notes of black list, up to 80 characters

## Response `201`

Created

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation failed
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com.md) · [All operations](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/llms.txt) · [OpenAPI document](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/revisions/a6274ad4319c?raw)
