Your organization's webhooks, each with its latest delivery
GET
/webhooks
const url = 'https://api.global.stillbox.example/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.global.stillbox.example/v1/webhooks \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The webhooks
Media typeapplication/json
object
webhooks
required
Array<object>
object
id
required
string
url
required
string
events
required
Array<string>
created_at
required
string format: date-time
created_by
string
last_delivery
object
event_id
required
string
type
required
string
state
required
pending includes deliveries waiting to be retried.
string
attempts
required
integer
status
The HTTP status of the latest attempt.
integer
error
string
created_at
required
string format: date-time
delivered_at
string format: date-time
secrets_ready
required
Whether this region can keep webhook secrets; without that, webhooks can’t be added.
boolean
Example
{ "webhooks": [ { "events": [ "sandbox.state_changed" ], "last_delivery": { "state": "pending" } } ]}The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}