Alerts
Rotate a webhook secret
POST
Gives a webhook target a new signing secret, shown only in this answer. The old one stops working at once.
AuthorizationBearer <token>
An API token from POST /v2/tokens (at_live_...), or a project's secret key (sk_...) for server-side ingest.
In: header
Path Parameters
project*string
The project id, as listed by GET /v2/projects.
Length
1 <= lengthname*string
The target's name within the project, used in its paths; defaults to the channel name.
Match
^[a-z0-9][a-z0-9-]*$Length
1 <= length <= 40Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v2/projects/string/alerts/targets/string/rotate"{ "data": { "name": "string", "secret": "string" }}