Logo
Brex Developer API Documentation

List Webhook Secrets

GET {{baseUrl}}/v1/webhooks/secrets

This endpoint returns a set of webhook signing secrets used to validate the webhook. Usually only one key will be returned in the response. After key rotation, this endpoint will return two keys: the new key, and the key that will be revoked soon. There will also be two signatures in the 'Webhook-Signature' request header. Your application should use all keys available to validate the webhook request. If validation passes for any of the keys returned, the webhook payload is valid.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

[ { "secret": "reprehenderit minim", "status": "ACTIVE" }, { "secret": "ullamco consectetur et aliqua", "status": "PENDING_REVOKE" } ]



Curl
curl -X GET 'https://platform.brexapis.com/v1/webhooks/secrets'

ENDPOINTS