---
title: "Create Agent Webhook Trigger"
method: POST
path: "/api/agent-triggers/webhook"
tags: ["agent-triggers"]
---

# Create Agent Webhook Trigger

`POST /api/agent-triggers/webhook`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/agent-triggers/webhook`
- Auth: none declared

Create a webhook trigger and hand back its one-time delivery token (TOS-2025).

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- CreateWebhookTriggerRequest: TOS-2025. A webhook trigger takes no schedule at all.
  - `agent_identity_id` string, uuid, required
  - `target_chat_id` string, uuid, required
  - `instruction` string, required
  - `timezone` string
  - `action_type` 'chat'
  - `metadata` object, nullable
  - `webhook_secret_ref` string, nullable

## Response `201`

Successful Response

- CreateWebhookTriggerResponse
  - `trigger` AgentTriggerResponse, required
    - `id` string, uuid, required
    - `owner_identity_id` string, uuid, required
    - `agent_identity_id` string, uuid, required
    - `target_chat_id` string, uuid, required
    - `trigger_kind` string, required
    - `status` string, required
    - `execution_mode` string, required
    - `instruction` string, required
    - `context_mode` 'adaptive' | 'literal', nullable, required
    - `timezone` string, required
    - `run_at` string, nullable, required
    - `interval_minutes` integer, nullable, required
    - `cron_expr` string, nullable, required
    - `next_run_at` string, nullable, required
    - `last_run_at` string, nullable, required
    - `last_run_status` string, nullable, required
    - `consecutive_failure_count` integer, required
    - `auto_paused_reason` string, nullable, required
    - `action_type` string, required
    - `email_to` string, nullable, required
    - `email_subject` string, nullable, required
    - `webhook_last_delivery_at` string, nullable, required
    - `webhook_signing_required` boolean, required
    - `metadata` object, required
    - `created_at` string, required
    - `updated_at` string, required
  - `delivery_token` string, required
  - `delivery_url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/5387b4ded614?raw)
