NoviuzNoviuz Docs
API NexiuzTry API

Rotacionar segredo do webhook

POST/api/public/v1/webhook-endpoints/{endpoint_id}/rotate-secret

Rotaciona o segredo de assinatura; o valor novo é retornado apenas uma vez.

Required application scope: webhooks:write.

Authorization

BearerAuth RequestSignature
AuthorizationBearer <token>

In: header

X-Signature<token>

HMAC-SHA256 calculado com signing_secret sobre timestamp.nonce.METHOD.path.sha256(body). O Try API não recebe nem armazena o segredo: calcule a assinatura no seu ambiente e cole o valor aqui.

In: header

Path Parameters

endpoint_id*Endpoint Id
Formatuuid

Header Parameters

X-Timestamp*string

Timestamp Unix em segundos.

Match^[0-9]{1,12}$
X-Nonce*string

Nonce único por requisição (16–128 caracteres).

Match^[A-Za-z0-9_-]{16,128}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/public/v1/webhook-endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret" \  -H "X-Timestamp: string" \  -H "X-Nonce: string"
{  "id": "string",  "url": "string",  "description": "string",  "events": [    "string"  ],  "status": "string",  "created_at": "string",  "updated_at": "string",  "secret": "string"}