---
title: "Create Phone Contact Rule"
method: POST
path: "/api/v1/identities/{agent_handle}/phone-contact-rules"
tags: ["Identities"]
---

# Create Phone Contact Rule

`POST /api/v1/identities/{agent_handle}/phone-contact-rules`

## Path parameters

- `agent_handle` string, required

## Request body

- PhoneContactRuleCreate
  - `action` 'allow' | 'block', required
  - `match_type` 'exact_number'
  - `match_target` string, required — Phone number to match, in E.164 format.

## Response `201`

Successful Response

- PhoneIdentityContactRuleResponse
  - `id` string, uuid, required
  - `agent_identity_id` string, uuid, required
  - `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.

---

[API](https://skmtc.dev/inkbox/apis/inkbox-api.md) · [All operations](https://skmtc.dev/inkbox/apis/inkbox-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inkbox/inkbox-api/revisions/31f357e7e6f8/schema)
