Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
API ReferenceComputeWebhooks

Regenerate a webhook secret (returned once)

Replaces the webhook's signing secret and returns the new whsec_ secret once. Later deliveries, retries included, are signed with the new secret.

Required permission

Requires the webhook.write permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl webhooks secret regenerate <id>
POST
/v1/orgs/{orgId}/webhooks/{id}/regenerate-secret

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

orgId*string
id*string

Response Body

Regenerated

application/json
  1. response
id*string
secret*string
secretPrefix*string
Example Request
curl -X POST 'https://api.openrelay.inc/v1/orgs/string/webhooks/string/regenerate-secret'
Example Response
{  "id": "string",  "secret": "string",  "secretPrefix": "string"}