---
title: "Create Safety Gate"
method: POST
path: "/api/ai-agents/{agent_id}/safety-gates"
tags: ["ai-agents", "ai-agents"]
---

# Create Safety Gate

`POST /api/ai-agents/{agent_id}/safety-gates`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/ai-agents/{agent_id}/safety-gates`
- Auth: none declared

Create a safety gate for an agent.

## Path parameters

- `agent_id` integer, required

## Request body

- SafetyGateCreate
  - `gate_type` string, required
  - `config` object
  - `enabled` boolean
  - `priority` integer

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
