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

# Create A2A Contact Rule

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

## Path parameters

- `agent_handle` string, required

## Request body

- A2AContactRuleCreate
  - `action` 'allow' | 'block', required
  - `match_type` 'handle'
  - `match_target` string, required
  - `direction` 'inbound' | 'outbound' | 'both'

## Response `201`

Successful Response

- A2AContactRuleResponse
  - `id` string, uuid, required
  - `action` 'allow' | 'block', required
  - `match_type` 'handle', required
  - `match_target` string, required
  - `direction` 'inbound' | 'outbound' | 'both', 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)
