Function: getWebhook()
ts
function getWebhook(
client,
parameters,
options?
): Promise<{
[key: string]: unknown;
active?: boolean;
configuration?: Record<string, any>;
createdDate?: number;
events?: string[];
id: number;
name: string;
scopeType?: string;
sslVerificationRequired?: boolean;
statistics?: {
[key: string]: unknown;
counts?: {
[key: string]: unknown;
errors?: number;
failures?: number;
successes?: number;
window?: {
[key: string]: unknown;
duration?: number;
start?: number;
};
};
lastError?: Record<string, any>;
};
updatedDate?: number;
url: string;
}>;Defined in: src/server/api/webhooks.ts:67
Returns a registered webhook. Requires administrator permission.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { webhookId: number; } | - |
parameters.webhookId | number | The id of the webhook. |
options? | RequestOptions | - |
Returns
Promise<{ [key: string]: unknown; active?: boolean; configuration?: Record<string, any>; createdDate?: number; events?: string[]; id: number; name: string; scopeType?: string; sslVerificationRequired?: boolean; statistics?: { [key: string]: unknown; counts?: { [key: string]: unknown; errors?: number; failures?: number; successes?: number; window?: { [key: string]: unknown; duration?: number; start?: number; }; }; lastError?: Record<string, any>; }; updatedDate?: number; url: string; }>