Utopia PaymentsDocs
Webhooks

Retrieve an endpoint's signing secret

Returns the endpoint's `whsec_…` signing secret, for a server that has lost the copy it was given when the endpoint was created. Every delivery to this endpoint is signed with it, following the Standard Webhooks specification. The secret never changes: to rotate it, add a second endpoint, move your traffic across and delete the old one.

GET
/webhooks/{id}/secret

Returns the endpoint's whsec_… signing secret, for a server that has lost the copy it was given when the endpoint was created. Every delivery to this endpoint is signed with it, following the Standard Webhooks specification. The secret never changes: to rotate it, add a second endpoint, move your traffic across and delete the old one.

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/secret"
{  "secret": "string"}