Cut.ProDocs
Generations

Get the secret that signs generation webhooks

The secret that signs the webhooks of the generations created with this API key. Check each delivery: compute the HMAC-SHA256 of <t>.<raw body> with it and compare with v1 of the CutPro-Signature header, and refuse a t older than 5 minutes. A new API key has a new secret.

Authorization

apiKey
X-Api-Key<token>

In: header

Response Body

application/json

GET
/generations/webhook-secret
curl -X GET "https://example.com/generations/webhook-secret"
{  "secret": "string"}