Enable Webhook
Updated at:
Enables a disabled Webhook. The request body is empty. Re-enabling does not redeliver events that occurred during the disabled period.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
POST /webhook_endpoints/{id}/enable
Path parameters
| Field | Required | Type | Description |
|---|---|---|---|
id | Yes | string | Webhook ID, format wep_<ULID> |
Request example
curl -X POST "$AGENTSTUDIO_URL/webhook_endpoints/wep_01JXX7YQGPRPV1BZXA35QE7WDP/enable" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response example
{
"id": "wep_01JXX7YQGPRPV1BZXA35QE7WDP",
"description": "Production session events",
"url": "https://example.com/managedagent/webhooks",
"events": ["session.status_idled"],
"status": "ACTIVE",
"disabled_reason": null,
"consecutive_fail": 2,
"last_success_at": "2026-08-06T10:05:00Z",
"last_failure_at": "2026-08-06T10:10:00Z",
"created_at": "2026-08-06T10:00:00Z",
"updated_at": "2026-08-06T10:20:00Z",
"request_id": "8e1d16e4"
}
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Webhook ID |
description | string | null | Description |
url | string | Callback URL |
events | array<string> | Subscribed named event types |
status | string | Always ACTIVE after this operation |
disabled_reason | string | null | Always null after this operation |
consecutive_fail | integer | Current consecutive failure count at the time of enable |
last_success_at | string | null | Last successful delivery time at the time of enable |
last_failure_at | string | null | Last failed delivery time at the time of enable |
created_at | string | Creation time, ISO 8601 |
updated_at | string | Last update time, ISO 8601 |
request_id | string | Unique request identifier |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 404 | 11800001 | Webhook not found or already deleted |
Is this page helpful?