List webhook endpoints
GET
/v1/webhooks
const url = 'https://api-staging.asqary.com/v1/webhooks';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-staging.asqary.com/v1/webhooks \ --header 'Authorization: Bearer <token>'Endpoints in the key’s environment. Requires webhooks:read.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The endpoints, newest first
Media typeapplication/json
object
webhooks
required
Array<object>
object
webhook_id
required
string
url
required
string
description
required
string | null
events
required
Array<string>
status
required
string
disabled_reason
required
string | null
failing_since
required
When deliveries started failing. The endpoint is disabled after three days of failures.
string | null format: date-time
environment
required
string
previous_secret_expires_at
Set after a rotation while the old secret still signs deliveries.
string | null format: date-time
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example
{ "webhooks": [ { "events": [ "*" ], "status": "enabled", "environment": "live" } ]}Missing scope or role, IP not allowed, or monthly quota exceeded (quota_exceeded).
Media typeapplication/json
object
error_code
required
Invalid_request, unauthorized, key_expired, key_revoked, forbidden, ip_not_allowed, quota_exceeded, not_found, method_not_allowed, conflict, policy_in_use, policy_active, policy_archived, idempotency_key_reused, validation_failed, rule_not_available, backtest_invalid_rows, backtest_too_large, rate_limited, internal_error
string
message
required
string
retryable
required
boolean
request_id
string
details
One of:
Array<object>
object
field
required
string
message
required
string
code
string
object
Example generated
{ "error_code": "example", "message": "example", "retryable": true, "request_id": "example", "details": {}}