API 參考
輪換籤名金鑰
輪換指定 StableOps Webhook 端點的簽名金鑰並取得新金鑰;舊金鑰會繼續有效二十四小時,便於接收端逐步更新設定,在不中斷事件驗籤與投遞的情況下完成安全切換。查閱呼叫參數、回應欄位與雙金鑰過渡要求,規劃可回滾的定期輪換流程。
POST
/v1/webhook-endpoints/{id}/rotate-secretAuthorization
bearerAuth AuthorizationBearer <token>
Paste your API key from the dashboard.
In: header
Path Parameters
id*unknown
Webhook endpoint id.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/webhook-endpoints/{id}/rotate-secret"{
"id": "string",
"url": "http://example.com",
"description": "string",
"enabled_events": [
"payment_order.created"
],
"redact_metadata": true,
"disabled_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"secret": "string"
}{
"statusCode": -9007199254740991,
"message": "string",
"error": "string"
}{
"statusCode": -9007199254740991,
"message": "string",
"error": "string"
}這篇文件怎麼樣?
最後更新