Skip to main content

Reveal a specific Webhook Endpoint signing secret

This endpoint reveals the secret associated with this endpoint

info

This operation requires authentication and admin role.

HTTP Request

POST /api/v2/webhook/endpoint/{id}/secret/reveal/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this endpoint
passwordbodystringfalseLogged user password. It is used for security check

Example Body Parameters

{
"password": "string"
}

Example Request

const inputBody = '{
"password": "string"
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/webhook/endpoint/{id}/secret/reveal/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
201CreatedResponse status codeEndpoint Secret

Example responses

{
"signing_secret": "string"
}