---
title: "Create Trigger"
method: POST
path: "/api/ai-agents/{agent_id}/triggers"
tags: ["ai-agents", "ai-agents"]
---

# Create Trigger

`POST /api/ai-agents/{agent_id}/triggers`

## 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}/triggers`
- Auth: none declared

Create a trigger for an agent.

## Path parameters

- `agent_id` integer, required

## Request body

- TriggerCreate
  - `trigger_type` string, required
  - `conditions` object
  - `send_mode` string, nullable
  - `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)
