Get a webhook signing secret
Returns the endpoint's current signing secret and when a rotated-out secret stops verifying. It needs the same permission as rotating the secret.
GET
Returns the endpoint's current signing secret and when a rotated-out secret stops verifying. It needs the same permission as rotating the secret.
apiKeyheader
x-api-key<token>id*stringMatch
^wep_[0-9a-hjkmnp-tv-z]{16,24}$WebhookSigningSecret
application/json- response
secret*stringcreatedAt*stringpreviousExpiresAt*string|nullimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.webhooks.getSecret({
"id": "example"
});Example Response
{
"secret": "string",
"createdAt": "string",
"previousExpiresAt": "string"
}