list()
List customer webhooks
Returns webhook destinations configured by the authenticated account, including delivery timeouts and retry settings.
Signature
client.webhooks.list(options: WebhooksListOptions = {}): Promise<WebhooksListResponse>Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
limit | number | Optional | Number of results to return per page. |
offset | number | Optional | The initial index from which to return the results. |
acceptLanguage | string | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
const result = await client.webhooks.list();Returns
PaginatedWebhookListListThe operation completed successfully.
typePaginatedWebhookListList4fields
countnumbernextstringpreviousstringresultsWebhookList[]typeWebhookList8fields
idstringtypeWebhookScopeEnumenumWebhookScopeEnum0fields
* `user` - User * `reseller` - Reseller * `system` - System
No fields.
endpointstringread_timeoutnumberwrite_timeoutnumberretriesnumberretry_timeoutnumbercreatedstringThrows
ApiErrorNormalized API, transport, and response processing failure.
kind: "validation"The request arguments or business rules are invalid.kind: "authentication"Authentication credentials are missing, expired, or invalid.kind: "permission"The authenticated account cannot perform this operation.kind: "network"The request could not reach ProxyRequest.kind: "unexpected"The response could not be decoded or did not match the SDK contract.
Advanced variants
client.webhooks.listWithResponse(options): Promise<ApiResponse<WebhooksListResponse>>Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
client.webhooks.list(*, limit: int | Unset=UNSET, offset: int | Unset=UNSET, accept_language: str | Unset=UNSET) -> PaginatedWebhookListawait async_client.webhooks.list(*, limit: int | Unset=UNSET, offset: int | Unset=UNSET, accept_language: str | Unset=UNSET) -> PaginatedWebhookListParameters
| Name | Type | Requirement | Description |
|---|---|---|---|
limit | int | Optional | Number of results to return per page. |
offset | int | Optional | The initial index from which to return the results. |
accept_language | str | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
result = client.webhooks.list()Async example
result = await async_client.webhooks.list()Returns
PaginatedWebhookListThe operation completed successfully.
classPaginatedWebhookList4fields
countintresultslist[WebhookList]classWebhookList8fields
endpointstrcreateddatetime.datetimeidstrtype_WebhookScopeEnumenumWebhookScopeEnum0fields
No fields.
read_timeoutintwrite_timeoutintretriesintretry_timeoutintnext_None | strpreviousNone | strThrows
ApiErrorNormalized API, transport, and response processing failure.
ErrorKind.AUTHENTICATIONAuthentication credentials are missing, expired, or invalid.ErrorKind.PERMISSIONThe authenticated account cannot perform this operation.ErrorKind.VALIDATIONThe request arguments or business rules are invalid.ErrorKind.NETWORKThe request could not reach ProxyRequest.ErrorKind.UNEXPECTEDThe response could not be decoded or did not match the SDK contract.
Advanced variants
client.webhooks.list_with_response(*, limit: int | Unset=UNSET, offset: int | Unset=UNSET, accept_language: str | Unset=UNSET) -> ApiResponse[PaginatedWebhookList]Returns response status, headers, ETag and idempotency metadata with the decoded data.
Signature
$client->webhooks()->list($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
limit | int | Optional | Number of results to return per page. |
offset | int | Optional | The initial index from which to return the results. |
acceptLanguage | string | Optional | Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English. |
Example
$result = $client->webhooks()->list();Returns
PaginatedWebhookListThe operation completed successfully.
classPaginatedWebhookList4fields
countintnextstringpreviousstringresults[WebhookList[]](WebhookList.md)classWebhookList8fields
idstringtypeWebhookScopeEnumenumWebhookScopeEnum0fields
* `user` - User * `reseller` - Reseller * `system` - System
No fields.
endpointstringreadTimeoutintwriteTimeoutintretriesintretryTimeoutintcreatedDateTimeThrows
ApiExceptionNormalized API, transport, and response processing failure.
ErrorKind::AuthenticationAuthentication credentials are missing, expired, or invalid.ErrorKind::PermissionThe authenticated account cannot perform this operation.ErrorKind::ValidationThe request arguments or business rules are invalid.ErrorKind::NetworkThe request could not reach ProxyRequest.ErrorKind::UnexpectedThe response could not be decoded or did not match the SDK contract.
InvalidArgumentExceptionA required argument is missing or violates a local SDK constraint.
local validationThe request was rejected before it was sent.
Advanced variants
$client->webhooks()->listWithResponse($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0]): \ProxyRequest\ApiResponseReturns an ApiResponse with decoded data and HTTP metadata.
$client->webhooks()->listWithHttpInfo($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns the OpenAPI Generator response tuple.
$client->webhooks()->listAsync($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns a Guzzle promise for the decoded result.
$client->webhooks()->listAsyncWithHttpInfo($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Returns a Guzzle promise for the response tuple.
$client->webhooks()->listRequest($limit = null, $offset = null, $acceptLanguage = null, string $contentType = self::contentTypes['list'][0])Builds the PSR-7 request without sending it.