Public API v1

Rotate the signing secret

Changed on

Issues a new signing secret and returns it once. The previous secret keeps verifying for 24 hours, and during that window every event carries one v1= signature per live secret — so you can deploy the new secret without dropping events signed with the old one.

post/api/v1/webhooks/{endpointId}/rotate-secret

Request

  • Base URL
    https://api.vieneu.io
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Path parameters

endpointIdstring required

Response

Rotated. secret is the new secret, shown only here.

idstring required
urlstring required
descriptionstring required
eventsstring[] required
status'ENABLED' | 'DISABLED' required
apiKeyIdstring nullable

Null when the endpoint receives events for every key.

secretPrefixstring required

First characters of the signing secret, so you can tell two secrets apart. The secret itself is returned ONCE, at creation and rotation.

secretRotatedAtstring date-time nullable
lastDeliveryAtstring date-time nullable
lastDeadLetterAtstring date-time nullable

When an event to this endpoint last gave up permanently.

createdAtstring date-time required
secretstring required

Signing secret. Shown ONCE — store it now, it cannot be retrieved again. Use it to verify the Vieneu-Signature header on every event.

Example response

{
  "id": "665f1a2b3c4d5e6f7a8b9c0d",
  "url": "https://api.example.com/hooks/vieneu",
  "description": "Production receiver",
  "events": [
    "tts.job.completed",
    "tts.job.failed"
  ],
  "status": "ENABLED",
  "apiKeyId": "665f1a2b3c4d5e6f7a8b9c0d",
  "secretPrefix": "whsec_a1b2c3",
  "secretRotatedAt": "2026-09-01T10:00:00Z",
  "lastDeliveryAt": "2026-09-01T10:00:00Z",
  "createdAt": "2026-09-01T10:00:00Z",
  "secret": "whsec_0000000000000000000000000000000000000000000000000000000000000000"
}

Changes

    • info

      added the optional property to the response with the status

    • breaking

      the response property became optional for the status

    • breaking

      response property message list-of-types was widened by adding types array to media type application/json of response 404

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status