---
title: "List Phone Contact Rules"
method: GET
path: "/api/v1/phone/numbers/{phone_number_id}/contact-rules"
tags: ["Contact Rules"]
deprecated: true
---

# List Phone Contact Rules

`GET /api/v1/phone/numbers/{phone_number_id}/contact-rules`

## Request

- Base URL: `https://api.inkbox.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.inkbox.ai/api/v1/phone/numbers/{phone_number_id}/contact-rules`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

> **Deprecated.**

## Path parameters

- `phone_number_id` string, uuid, required

## Query parameters

- `action` 'allow' | 'block'
- `match_type` 'exact_number'
- `direction` 'inbound' | 'outbound' | 'both'
- `limit` integer: Max rules to return.
- `offset` integer: Number of rules to skip.

## Response `200`

Successful Response

- PhoneContactRuleResponse[]
  - `id` string, uuid, required
  - `phone_number_id` string, uuid, required
  - `direction` 'inbound' | 'outbound' | 'both'
  - `action` 'allow' | 'block', required
  - `match_type` 'exact_number', required
  - `match_target` string, required
  - `status` 'active' | 'paused' | 'deleted', required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error
- `4XX`: Client error with Support Agent information.
- `5XX`: Server error with Support Agent information.

## Changes

- **2026-09-22** `f3dcdb50fbaa`: 2 info
  - added the new optional `query` request parameter `direction`
  - added the optional property `items/direction` to the response with the `200` status

[Operation history](https://skmtc.dev/inkbox/apis/inkbox-api/changes/api/v1/phone/numbers/:phone_number_id/contact-rules/get.md)

---

[API](https://skmtc.dev/inkbox/apis/inkbox-api.md) - [All operations](https://skmtc.dev/inkbox/apis/inkbox-api/llms.txt) - [OpenAPI document](https://skmtc.dev/inkbox/apis/inkbox-api/revisions/3e862146bf53?raw)
