---
title: "Get call blocking rules"
method: GET
path: "/v1/projects/{projectId}/callBlockingRules"
tags: ["Call Blocking Rules"]
---

# Get call blocking rules

`GET /v1/projects/{projectId}/callBlockingRules`

## Request

- Base URL: `https://elastic-trunking.api.sinch.com`
- URL: `https://elastic-trunking.api.sinch.com/v1/projects/{projectId}/callBlockingRules`
- Auth: one of:
  - HTTP basic
  - OAuth 2
    - Client credentials
    - Token URL: `https://auth.sinch.com/oauth2/token`

Return all the call blocking rules for the specified project.

## Path parameters

- `projectId` string, required

## Query parameters

- `page` integer
- `size` integer
- `sort` string[]

## Response `200`

OK

- CallBlockingRule[]
  - `name` string: The name for the call blocking rule.
  - `direction` 'INBOUND' | 'OUTBOUND', required: The direction of the call blocking rule. Can be either INBOUND or OUTBOUND.
  - `callerCountry` string: The country code of the inbound call.
  - `calleeCountry` string: The country code of the outbound call.
  - `callerMatch` string: Use this field to match the prefixes of an inbound call's phone number.
  - `calleeMatch` string: Use this field to match the prefixes of an outbound call's phone number.
  - `id` string: The ID of the call blocking rule.

## Changes

- **2026-10-01** `108d6bcb3948`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sinch/apis/elastic-sip-trunk-api/changes/v1/projects/:projectId/callBlockingRules/get.md)

---

[API](https://skmtc.dev/sinch/apis/elastic-sip-trunk-api.md) - [All operations](https://skmtc.dev/sinch/apis/elastic-sip-trunk-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sinch/apis/elastic-sip-trunk-api/revisions/8f15a650c7cd?raw)
