---
title: "Add Agent Rule"
method: POST
path: "/v1/smb/customer-facing-agents/{agent_id}/rules"
tags: ["smb", "SMB"]
---

# Add Agent Rule

`POST /v1/smb/customer-facing-agents/{agent_id}/rules`

## Request

- Base URL: `https://api.elevenlabs.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.elevenlabs.io/v1/smb/customer-facing-agents/{agent_id}/rules`
- Auth: none declared

Add a behavioral rule to the named receptionist.

## Path parameters

- `agent_id` string, required

## Headers

- `xi-api-key` string, nullable: Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.
- `xi-workspace-id` string, nullable: The customer workspace a reseller's API key acts on.

## Request body

- BodySmbAddAgentRule
  - `request` SMBCreateAgentRuleRequest, required: Request model for creating a new agent rule.
    - `title` string, required
    - `description` string, required
    - `priority` 'strict' | 'suggestion'

## Response `200`

Successful Response

- AgentRule: A single behavioral rule for the agent.
  - `title` string, required
  - `description` string, required
  - `priority` 'strict' | 'suggestion'
  - `id` string
  - `created_at_unix` integer: Unix timestamp (seconds since epoch)

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-30** `b77988199a2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/smb/customer-facing-agents/:agent_id/rules/post.md)

---

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