Utopia PaymentsDocs
Webhooks

Retrieve a webhook endpoint

Returns one webhook endpoint: its URL, the event types it is subscribed to and whether it is disabled. The signing secret is not part of this response; read it with `GET /webhooks/{id}/secret`.

GET
/webhooks/{id}

Returns one webhook endpoint: its URL, the event types it is subscribed to and whether it is disabled. The signing secret is not part of this response; read it with GET /webhooks/{id}/secret.

Authorization

secretKey
AuthorizationBearer <token>

Your secret key: sk_live_… or sk_test_….

In: header

Path Parameters

id*string

The webhook endpoint's id, which starts with wh_.

Match^wh_[0-9a-f]{32}$

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/webhooks/wh_3f2b8c1e9a4d4e7b8c2a1d5e6f7a8b9c"
{  "object": "webhook",  "webhook_id": "wh_3f2b8c1e9a4d4e7b8c2a1d5e6f7a8b9c",  "url": "http://example.com",  "description": "string",  "event_types": [    "payment.succeeded"  ],  "disabled": true,  "livemode": true,  "created_at": "2019-08-24T14:15:22Z"}