Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Webhook Management API

Download OpenAPI (YAML)Version v1

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
ScopeDescription
internal_webhook_viewView webhooks
internal_webhook_createCreate webhooks
internal_webhook_updateUpdate webhooks
internal_webhook_deleteDelete webhooks

Webhooks​

List Webhooks​

GET /webhooks

This API returns the detailed summary of the webhooks.

Scope(Permission) required: internal_webhook_view

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
endpointstringYes

Webhook URL.

eventProfileobjectYes
eventProfile.namestringYes

Webhook Event Profile.

eventProfile.uristringYes

Webhook Event Profile URI.

namestringYes

Webhook name.

secretstring

Secret for validating webhook payloads.

channelsSubscribedarray of stringYes

List of channels to subscribe to.

statusstring

Webhook Status.

Allowed values: ACTIVE, INACTIVE

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
webhookIdpathstringYes

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
webhookIdpathstringYes

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
webhookIdpathstringYes

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
webhookIdpathstringYes

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
webhookIdpathstringYes

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
endpointstringYes

Webhook URL.

eventProfileobjectYes
eventProfile.namestringYes

Webhook Event Profile.

eventProfile.uristringYes

Webhook Event Profile URI.

namestringYes

Webhook name.

secretstring

Secret for validating webhook payloads.

channelsSubscribedarray of stringYes

List of channels to subscribe to.

statusstring

Webhook Status.

Allowed values: ACTIVE, INACTIVE

WebhookSubscription​

Type: object

2 properties
NameTypeRequiredDescription
channelUristring

Channel URI to subscribe to.

statusstring

Status of the subscription.

Allowed values: SUBSCRIPTION_ACCEPTED, SUBSCRIPTION_PENDING, SUBSCRIPTION_ERROR, UNSUBSCRIPTION_ACCEPTED, UNSUBSCRIPTION_PENDING, UNSUBSCRIPTION_ERROR

WebhookResponse​

Type: object

10 properties
NameTypeRequiredDescription
idstring
createdAtstring
updatedAtstring
endpointstring

Webhook URL.

eventProfileobject
eventProfile.namestringYes

Webhook Event Profile.

eventProfile.uristringYes

Webhook Event Profile URI.

namestring

Webhook name.

channelsSubscribedarray of WebhookSubscription

List of channel subscriptions with status.

statusstring

Webhook Status.

Allowed values: ACTIVE, PARTIALLY_ACTIVE, INACTIVE, PARTIALLY_INACTIVE

WebhookSummary​

Type: object

7 properties
NameTypeRequiredDescription
idstring
createdAtstring
updatedAtstring
endpointstring

Webhook URL.

namestring

Webhook name.

statusstring

Webhook Status.

Allowed values: ACTIVE, PARTIALLY_ACTIVE, INACTIVE, PARTIALLY_INACTIVE

selfstring

WebhookList​

Type: object

1 property
NameTypeRequiredDescription
webhooksarray of WebhookSummary

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestring
messagestring
descriptionstring
traceIdstring

Was this page helpful?