---
title: "Test Webhook"
method: POST
path: "/webhooks/test/{subscription_id}"
tags: ["Webhooks"]
---

# Test Webhook

`POST /webhooks/test/{subscription_id}`

## Path parameters

- `subscription_id` string, uuid, required

## Response `200`

Successful Response

- WebhookDeliveryResponse
  - `count` integer
  - `delivery` WebhookDelivery
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `id` string, uuid, nullable
    - `status` Status, required
      - `timestamp` string, date-time
      - `type` string, nullable
      - `code` string, nullable
      - `message` string, nullable
      - `stacktrace` string, nullable
    - `data` WebhookDeliveryData
      - `event_type` 'environments.revisions.committed' | 'webhooks.subscriptions.tested' — Subscribable event types — a strict subset of EventType. Values are derived from EventType so the strings stay in sync. To add a new subscribable event type, it must first exist in EventType.
      - `url` string, uri, required
      - `headers` object, nullable
      - `payload` object, nullable
      - `response` WebhookDeliveryResponseInfo
        - `status_code` integer, nullable
        - `body` string, nullable
      - `error` string, nullable
    - `subscription_id` string, uuid, required
    - `event_id` string, uuid, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-03-06** `edbcb02ac8b1` — 1 warning, 1 info
  - removed the optional property `delivery/anyOf[subschema #1: WebhookDelivery]/data/anyOf[subschema #1: WebhookDeliveryData]/body` from the response with the `200` status
  - added the optional property `delivery/anyOf[subschema #1: WebhookDelivery]/data/anyOf[subschema #1: WebhookDeliveryData]/payload` to the response with the `200` status
- **2026-03-04** `c8917fecb5bf` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/webhooks/test/:subscription_id/post.md)

---

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