Skip to main content
POST
Rotate webhook signing secret

Authorizations

x-api-key
string
header
required

Your ps_ API key

Headers

x-whatsapp-number-id
string

Scopes to a single number (required for per-number OAuth grants).

x-workspace-id
string

Only with an account key (ps_account_): the workspace to act on, from GET /v1/workspaces. Without it an account key gets 400 WORKSPACE_ID_REQUIRED.

Path Parameters

id
string
required

Webhook id.

Response

New secret, in clear, once

id
string

Webhook id.

hasSecret
boolean

true when deliveries are signed (x-pilot-status-signature). The secret itself is never returned by a read.

secret
string

The signing secret (64 hex characters), in clear. Returned only here and by rotate-secret.