Webhook Subscriptions
List Webhook 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.
get/v1/webhooks/secrets
Request
- Base URLhttps://api.brex.com
- AuthOAuth 2Authorization codehttps://accounts-api.brex.com/oauth2/default/v1/authorizeClient credentialsToken URLhttps://accounts-api.brex.com/oauth2/default/v1/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Success
Example response
[
{
"secret": "whsec_123"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.