API 参考
Rotate the signing secret
轮换指定 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"
}这篇文档怎么样?
最后更新