Skip to main content

WebhooksApi

MethodHTTP requestDescription
CreateWebhookUsingPOSTPOST /api/web/v1/webhooksRegister a webhook
DeleteWebhookUsingDELETEDELETE /api/web/v1/webhooks/{id}Delete a webhook
GetWebhooksUsingGETGET /api/web/v1/webhooksList webhooks
ReadWebhookUsingGETGET /api/web/v1/webhooks/{id}Get a webhook by id
TestWebhookUsingPOSTPOST /api/web/v1/webhooks/test/{id}Test a webhook
UpdateWebhookUsingPUTPUT /api/web/v1/webhooks/{id}Update a webhook

CreateWebhookUsingPOST

Webhook CreateWebhookUsingPOST (WebhookParms webhookParms)

Register a webhook

Register a webhook with callback URL, webhook events etc. Caller is required to have WEBHOOKS:ADD permission.

Using the CreateWebhookUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
webhookParmsWebhookParms

Return type

Webhook

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

DeleteWebhookUsingDELETE

void DeleteWebhookUsingDELETE (string id)

Delete a webhook

Delete a registered webhook by ID. Caller is required to have WEBHOOKS:REMOVE permission.

Example

Using the DeleteWebhookUsingDELETEWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the webhook to be deleted.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

GetWebhooksUsingGET

List<Webhook> GetWebhooksUsingGET ()

List webhooks

Return a list of webhooks. Caller is required to have WEBHOOKS:VIEW permission.

Example

Using the GetWebhooksUsingGETWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

This endpoint does not need any parameter.

Return type

List<Webhook>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

ReadWebhookUsingGET

Webhook ReadWebhookUsingGET (string id)

Get a webhook by id

Get the specified webhook. Caller is required to have WEBHOOKS:VIEW permission.

Example

Using the ReadWebhookUsingGETWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the webhook.

Return type

Webhook

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

TestWebhookUsingPOST

void TestWebhookUsingPOST (string id)

Test a webhook

Sends a dummy payload to the registered webhook callback URL. Use this to ensure your API is ready to start accepting webhook notifications. Caller is required to have WEBHOOKS:EDIT permission.

Example

Using the TestWebhookUsingPOSTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the webhook to test.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

UpdateWebhookUsingPUT

Webhook UpdateWebhookUsingPUT (string id, WebhookParms webhookParms)

Update a webhook

Update a webhook with callback URL, webhook events etc. Caller is required to have WEBHOOKS:EDIT permission.

Example

Using the UpdateWebhookUsingPUTWithHttpInfo variant

This returns an ApiResponse object which contains the response data, status code and headers.

Parameters

NameTypeDescriptionNotes
idstringThe UUID of the webhook to be updated.
webhookParmsWebhookParms

Return type

Webhook

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-