Skip to main content

WebhooksApi

MethodHTTP requestDescription
create_webhook_using_postPOST /api/web/v1/webhooksRegister a webhook
delete_webhook_using_deleteDELETE /api/web/v1/webhooks/{id}Delete a webhook
get_webhooks_using_getGET /api/web/v1/webhooksList webhooks
read_webhook_using_getGET /api/web/v1/webhooks/{id}Get a webhook by id
test_webhook_using_postPOST /api/web/v1/webhooks/test/{id}Test a webhook
update_webhook_using_putPUT /api/web/v1/webhooks/{id}Update a webhook

create_webhook_using_post

Webhook create_webhook_using_post(webhook_parms)

Register a webhook

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

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
webhook_parmsWebhookParms

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-

delete_webhook_using_delete

delete_webhook_using_delete(id)

Delete a webhook

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

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe 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-

get_webhooks_using_get

List[Webhook] get_webhooks_using_get()

List webhooks

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

Example

  • Api Key Authentication (AdminAPIAuthentication):

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-

read_webhook_using_get

Webhook read_webhook_using_get(id)

Get a webhook by id

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

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe 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-

test_webhook_using_post

test_webhook_using_post(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

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe 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-

update_webhook_using_put

Webhook update_webhook_using_put(id, webhook_parms)

Update a webhook

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

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe UUID of the webhook to be updated.
webhook_parmsWebhookParms

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-