OverviewPlatformsAPI Reference
Alerts

Rotate the signing secret

Gives a webhook channel a new signing secret, shown only in this response. The old secret stops working at once.


POST
/v1/channels/{id}/rotate-secret

Authorization

bearerAuth
AuthorizationBearer <token>

An API key from POST /v1/api-keys. Keys start with ref_.

In: header

Path Parameters

id*string

The channel's id (dest_...).

Length1 <= length

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/channels/dest_abc123/rotate-secret"
{  "id": "string",  "label": "string",  "stats": {    "alerts": 0,    "activeAlerts": 0,    "lastDeliveryAt": "string",    "last7d": {      "total": 0,      "failed": 0    }  },  "createdAt": "string",  "kind": "slack",  "config": {    "channelId": "string",    "channelName": "string",    "events": [      "mention.spike"    ]  }}
Was this page helpful?