Docs

Get the webhook settings (the operator's, or with a client's admin key that client's own)

  • In the sandbox

In plain words

Shows where status events are delivered.
GET
/webhook

Since 0.16.0 the operator's key reads one client's settings with client. A client's admin key may name only its own client; any other answers 404. An unknown or repeated parameter, or client given empty, answers 400. Setting and testing a webhook take no query parameters at all (400): they stay with the webhook's own key.

Authorization

apiKey
headerAuthorizationBearer <token>

Send your key as a bearer token: Authorization: Bearer <your-api-key>. Health is the only call that needs no key.

Query parameters

client?string

The operator's choice of client. Another shape answers 400.

Match^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$

Response body

Current settings. The secret is never returned. With nothing set, url is null and active false.

application/json
  1. response
url*|
Match^https://
Formaturi
active*boolean
secret_rotated_at?|
Formatdate-time
contact_email?|

Who to tell when deliveries die.

last_delivery?|null
curl -X GET "https://example.com/webhook" \  -H "Authorization: Bearer <your-api-key>"
{  "url": "http://example.com",  "active": true,  "secret_rotated_at": "2019-08-24T14:15:22Z",  "contact_email": "string",  "last_delivery": {    "at": "2019-08-24T14:15:22Z",    "http_status": 0  }}