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 post /api/v3/notification/webhooks delete /api/v3/notification/webhooks/:resource_id get /api/v3/notification/webhooks/:resource_id patch /api/v3/notification/webhooks/:resource_id get /api/v3/notification/webhooks/events post /api/v3/notification/webhooks/test/:id
get/api/v3/notification/webhooks
Return a paginated list of notification/webhooks
Input Schema
object
object
object
The key is the resource type and the value is an array of fields.
dictionary
Typescript
type InputSchema = {
page?: {
// The page number, default to 1
number?: number;
// The number of items per page, default to 1000
size?: number;
};
// 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?: {
id?: any;
account_id?: any;
name?: any;
url?: any;
secret?: any;
events?: any;
scopes?: any;
created_at?: any;
updated_at?: any;
};
// The fields to include in the response.
// The key is the resource type and the value is an array of fields.
fields?: { [key: string]: Array<any> };
};
Output Schema
object
array
object
object
array
Typescript
type OutputSchema = {
data: Array<{
type: string;
id?: string;
attributes?: {
id?: number;
account_id?: number;
name?: string;
url?: string;
secret?: string;
events?: Array<any>;
scopes?: Record<string, any>;
created_at?: Date;
updated_at?: Date;
};
relationships?: Record<string, any>;
}>;
included?: Array<Record<string, any>>;
};
post/api/v3/notification/webhooks
Create a new notification/webhooks
Input Schema
object
object
object
Typescript
type InputSchema = {
data: {
type: string;
attributes: {
id?: number;
account_id?: number;
name?: string;
url?: string;
secret?: string;
events?: Array<any>;
scopes?: Record<string, any>;
created_at?: Date;
updated_at?: Date;
};
};
};
delete/api/v3/notification/webhooks/:resource_id
Delete the notification/webhooks
Input Schema
object
Typescript
type InputSchema = { resource_id: number };
get/api/v3/notification/webhooks/:resource_id
Show a specific notification/webhooks
Input Schema
object
array
dictionary
Typescript
type InputSchema = {
resource_id: number;
included?: Array<string>;
fields?: { [key: string]: Array<any> };
};
Output Schema
object
object
object
array
Typescript
type OutputSchema = {
data: {
type: string;
id?: string;
attributes?: {
id?: number;
account_id?: number;
name?: string;
url?: string;
secret?: string;
events?: Array<any>;
scopes?: Record<string, any>;
created_at?: Date;
updated_at?: Date;
};
relationships?: Record<string, any>;
};
included?: Array<Record<string, any>>;
};
patch/api/v3/notification/webhooks/:resource_id
Update a notification/webhooks
Input Schema
object
object
object
Typescript
type InputSchema = {
resource_id: number;
data: {
type: string;
attributes: {
id?: number;
name?: string;
url?: string;
secret?: string;
events?: Array<any>;
};
};
};
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
object
Typescript
type InputSchema = { id: number };
Output Schema
object
Typescript
type OutputSchema = { success: boolean; message: string };