---
title: "Set webhook URL for a channel"
method: POST
path: "/api/v1/agents/setWebhook"
tags: ["Agents"]
---

# Set webhook URL for a channel

`POST /api/v1/agents/setWebhook`

Register a webhook URL that will receive events (message:created, review:responded) for the given channel. Replaces any previously configured webhook.

## Request body

- SetWebhookDto
  - `url` string, uri, required
  - `channelId` string, required
  - `headers` object
  - `auth` SetWebhookDtoAuth
    - `username` string, required
    - `password` string, required

## Response `200`

Webhook configured

- AgentResponse
  - `id` string, required
  - `name` string, required
  - `description` string
  - `avatarUrl` string
  - `webhookUrl` string
  - `lastActiveAt` string
  - `createdAt` string, required

## Other responses

- `401` — Invalid API key

## Changes

- **2026-04-03** `101387fc540e` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/placet-io/apis/placet-api/changes/api/v1/agents/setWebhook/post.md)

---

[API](https://skmtc.dev/placet-io/apis/placet-api.md) · [All operations](https://skmtc.dev/placet-io/apis/placet-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/placet-io/placet-api/revisions/3fb7657511b8/schema)
