Webhooks

These endpoints allow you to manage webhooks for receiving notifications about events.

Webhooks can be configured to receive notifications when specific events occur in the system. Each webhook requires a URL where notifications will be sent, a secret key for signature verification, and a list of events to subscribe to.

Endpoints


get/api/v3/notification/webhooks

Return a paginated list of notification/webhooks

Input Schema

Typescript

object
page?:
object
The page number, default to 1
number?: integer
The number of items per page, default to 1000
size?: integer
The sort order, comma separated list of fields. See sorting section for more details
sort?: string
Set to true to return the total number of items in the collection
count?: boolean
filter?:
object
id?: unknown
account_id?: unknown
name?: unknown
url?: unknown
secret?: unknown
events?: unknown
scopes?: unknown
created_at?: unknown
updated_at?: unknown
The fields to include in the response.
The key is the resource type and the value is an array of fields.
fields?:
dictionary
Values: array

Output Schema

Typescript

object
data:
array
Elements:
object
type: string
id?: string
attributes?:
object
id?: integer
account_id?: integer
name?: string
url?: string
secret?: string
events?: array
scopes?: open struct
created_at?: datetime
updated_at?: datetime
relationships?: open struct
included?:
array
Elements: open struct

post/api/v3/notification/webhooks

Create a new notification/webhooks

Input Schema

Typescript

object
data:
object
type: string
attributes:
object
id?: integer
account_id?: integer
name?: string
url?: string
secret?: string
events?: array
scopes?: open struct
created_at?: datetime
updated_at?: datetime

delete/api/v3/notification/webhooks/:resource_id

Delete the notification/webhooks

Input Schema

Typescript

object
resource_id: integer

get/api/v3/notification/webhooks/:resource_id

Show a specific notification/webhooks

Input Schema

Typescript

object
resource_id: integer
included?:
array
Elements: string
fields?:
dictionary
Values: array

Output Schema

Typescript

object
data:
object
type: string
id?: string
attributes?:
object
id?: integer
account_id?: integer
name?: string
url?: string
secret?: string
events?: array
scopes?: open struct
created_at?: datetime
updated_at?: datetime
relationships?: open struct
included?:
array
Elements: open struct

patch/api/v3/notification/webhooks/:resource_id

Update a notification/webhooks

Input Schema

Typescript

object
resource_id: integer
data:
object
type: string
attributes:
object
id?: integer
name?: string
url?: string
secret?: string
events?: array

get/api/v3/notification/webhooks/events

Returns a list of available events that can be subscribed to via webhooks.


post/api/v3/notification/webhooks/test/:id

Sends a test notification to the webhook to verify it’s working correctly.

Input Schema

Typescript

object
id: integer

Output Schema

Typescript

object
success: boolean
message: string