Skip to main content
POST
Set or update the webhook URL for an existing API key. When a webhook URL is set, Magpipe sends a POST request to that URL whenever a call completes. A signing secret is auto-generated on first use. See Webhooks for payload format and signature verification.

Request Body

string
required
Must be update.
string
required
The UUID of the API key to update.
string
The HTTPS URL to receive webhook events. Must be a valid HTTP or HTTPS URL. Set to null or empty string to disable and clear the signing secret.

Response

boolean
Whether the update was successful.
string
The updated webhook URL, or null if cleared.
string
The signing secret for HMAC verification. Format: whsec_.... null if webhook was cleared.