Skip to content

Reset a Webhook Secret

Request

Reset the secret for a webhook subscription by ID and return the new secret once.

Security
api_key
Path
idstringrequired

Unique identifier of the webhook for which to reset the secret

Example:01HQXYZ123ABC456DEF789GHI
Headers
x-managed-company-idstring

Optional: the ID of the managed company on behalf of which the request is made

curl -i -X POST \
  https://doc.acc.connect.easypost.eu/_mock/public-api/openapi/webhooks/01HQXYZ123ABC456DEF789GHI/reset-secret \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -H 'x-managed-company-id: string'

Responses

Bodyapplication/json
secretstringrequired

New secret key for the webhook. You should store this securely and not expose it publicly.

Response
{ "secret": "string" }