Skip to main content
POST
/
v1
/
operational-webhook
/
endpoint
/
{id}
/
secret
/
rotate
TypeScript SDK
import { Solifyn } from 'solifyn';

const solifyn = new Solifyn({ apiKey: 'your_private_api_key_here' });

// Rotate operational endpoint signing secret
await solifyn.webhookEndpoint.rotateSecret('ep_1srOrx2ZWZBpBUvZwXKQmoEYga2');
console.log('Signing secret rotated successfully');

Path Parameters

id
string
required

The endpoint ID or UID

Body

application/json
key
string

Optional custom endpoint signing secret (base64 encoded random bytes optionally prefixed with whsec_). If not set, a new random secret is generated.

Example:

"whsec_C2FVsBQIhrscChlQIMV+b5sSYspob7oD"

Response

204

Secret rotated