Webhook Management API
Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/server/v1
The WSO2 Identity Platform - Webhook Management Rest API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL https://api.asgardeo.io/t/{org-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{org-name}/oauth2/authorize
4 scopes
| Scope | Description |
|---|---|
internal_webhook_view | View webhooks |
internal_webhook_create | Create webhooks |
internal_webhook_update | Update webhooks |
internal_webhook_delete | Delete webhooks |
Webhooks
List Webhooks
GET /webhooks
This API returns the detailed summary of the webhooks.
Scope(Permission) required: internal_webhook_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | WebhookList |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Internal server error | Error |
Add Webhook
POST /webhooks
Create a new webhook.
Scope(Permission) required: internal_webhook_create
Request body (required): application/json
Schema: WebhookRequest
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
endpoint | string | Yes | Webhook URL. |
eventProfile | object | Yes | |
eventProfile.name | string | Yes | Webhook Event Profile. |
eventProfile.uri | string | Yes | Webhook Event Profile URI. |
name | string | Yes | Webhook name. |
secret | string | Secret for validating webhook payloads. | |
channelsSubscribed | array of string | Yes | List of channels to subscribe to. |
status | string | Webhook Status. Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Webhook Created | WebhookResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Internal server error | Error |
Retrieve Webhook by ID
GET /webhooks/{webhookId}
This API returns the webhook details along with the webhook unique ID.
Scope(Permission) required: internal_webhook_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
webhookId | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | WebhookResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Webhook not found | Error |
500 | Internal server error | Error |
Delete Webhook
DEL /webhooks/{webhookId}
This API deletes a webhook using the webhook unique ID.
Scope(Permission) required: internal_webhook_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
webhookId | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Webhook Deleted | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Webhook not found | Error |
500 | Internal server error | Error |
Activate Webhook
POST /webhooks/{webhookId}/activate
Activate a webhook by its unique ID.
Scope(Permission) required: internal_webhook_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
webhookId | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Webhook Activated | WebhookResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Webhook not found | Error |
500 | Internal server error | Error |
Deactivate Webhook
POST /webhooks/{webhookId}/deactivate
Deactivate a webhook by its unique ID.
Scope(Permission) required: internal_webhook_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
webhookId | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Webhook Deactivated | WebhookResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Webhook not found | Error |
500 | Internal server error | Error |
Retry Webhook Subscription or Unsubscription
POST /webhooks/{webhookId}/retry
Retry a webhook subscription or unsubscription by its unique ID.
Scope(Permission) required: internal_webhook_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
webhookId | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Webhook Retried | WebhookResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Webhook not found | Error |
500 | Internal server error | Error |
Schemas
WebhookRequest
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
endpoint | string | Yes | Webhook URL. |
eventProfile | object | Yes | |
eventProfile.name | string | Yes | Webhook Event Profile. |
eventProfile.uri | string | Yes | Webhook Event Profile URI. |
name | string | Yes | Webhook name. |
secret | string | Secret for validating webhook payloads. | |
channelsSubscribed | array of string | Yes | List of channels to subscribe to. |
status | string | Webhook Status. Allowed values: |
WebhookSubscription
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
channelUri | string | Channel URI to subscribe to. | |
status | string | Status of the subscription. Allowed values: |
WebhookResponse
Type: object
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | ||
createdAt | string | ||
updatedAt | string | ||
endpoint | string | Webhook URL. | |
eventProfile | object | ||
eventProfile.name | string | Yes | Webhook Event Profile. |
eventProfile.uri | string | Yes | Webhook Event Profile URI. |
name | string | Webhook name. | |
channelsSubscribed | array of WebhookSubscription | List of channel subscriptions with status. | |
status | string | Webhook Status. Allowed values: |
WebhookSummary
Type: object
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | ||
createdAt | string | ||
updatedAt | string | ||
endpoint | string | Webhook URL. | |
name | string | Webhook name. | |
status | string | Webhook Status. Allowed values: | |
self | string |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
traceId | string |
Was this page helpful?