Call Blocking Rules

Get call blocking rules

Changed on

Return all the call blocking rules for the specified project.

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
    • HTTP basic
    • or OAuth 2
      Client credentials
      Token URL: https://auth.sinch.com/oauth2/token

Path parameters

projectIdstring required
Example:3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47

The projectId is a required parameter you must include when making any API calls. You can find your project ID on your Build dashboard.

Query parameters

pageinteger

The page you want to fetch, can set to 1 for first page, or omitted for first page

sizeinteger

The size of each page to fetch

sortstring[]

An array setting the sorting criteria in the format of property,(ascending/descending)

Response

OK

namestring

The name for the call blocking rule.

direction'INBOUND' | 'OUTBOUND' required

The direction of the call blocking rule. Can be either INBOUND or OUTBOUND.

callerCountrystring

The country code of the inbound call.

calleeCountrystring

The country code of the outbound call.

callerMatchstring

Use this field to match the prefixes of an inbound call's phone number.

calleeMatchstring

Use this field to match the prefixes of an outbound call's phone number.

idstring

The ID of the call blocking rule.

Example response

[
  {
    "name": "My Call Block Rule",
    "direction": "INBOUND",
    "callerCountry": "US",
    "calleeCountry": "CA",
    "callerMatch": "123",
    "calleeMatch": "456",
    "id": "01KG5BN8Z0HSR2P9GM3K9YA8RE"
  }
]

Changes