List Blocking Rules

Method

GET

Path

blocking_rules

Request Parameters

This operation accepts paging parameters.

Response

A JSON object with success, message, data, and paging attributes. Results are paginated, and the paging attribute holds information about the length of the data. The data attribute is an array of Blocking Rule Objects.

Sample Call

curl -G https://api.phaxio.com/v2.1/blocking_rules \
  -u 'API_KEY:API_SECRET'

Sample Response

{
  "success": true,
  "message": "Retrieved blocking rules successfully",
  "data": [
    {
      "id": 34567,
      "to": "*",
      "from": "+12013615723",
      "direction": "send",
      "is_locked": false
    }
  ],
  "paging": {
    "total": 1,
    "per_page": 3,
    "page": 1
  }
}