Skip to content

查询Webhook投递记录

GET
/v1/webhooks/getDeliveries

授权

apiKey
类型
API Key (header: Authorization)

参数

请求头参数

X-Atk-User-Token

强通道:系统自签的不透明用户会话 token,用于 Client 代表用户调用。 与 X-Atk-Act-As-Source / X-Atk-Act-As-Source-Id 互斥,同时携带服务端返回 400 INVALID_DELEGATION_HEADERS。

类型
string
X-Atk-Act-As-Source

弱通道:身份 source 主张(要求 Client 已开启 actAsAllowed)。 必须与 X-Atk-Act-As-Source-Id 成对携带,缺一服务端返回 400 INCOMPLETE_ACT_AS_HEADERS;与 X-Atk-User-Token 互斥,同时携带服务端返回 400 INVALID_DELEGATION_HEADERS。

类型
string
X-Atk-Act-As-Source-Id

弱通道:身份 sourceId 主张(要求 Client 已开启 actAsAllowed)。 必须与 X-Atk-Act-As-Source 成对携带,缺一服务端返回 400 INCOMPLETE_ACT_AS_HEADERS;与 X-Atk-User-Token 互斥,同时携带服务端返回 400 INVALID_DELEGATION_HEADERS。

类型
string

查询参数

webhookId*
类型
string
必填
page
类型
integer
格式
"int32"
默认
1
pageSize
类型
integer
格式
"int32"
默认
20

响应

OK

*/*
JSON
{
  
"code": 0,
  
"data": {
  
  
"totalElements": 0,
  
  
"content": [
  
  
  
{
  
  
  
  
"deliveryId": "string",
  
  
  
  
"webhookId": "string",
  
  
  
  
"eventId": "string",
  
  
  
  
"eventType": "string",
  
  
  
  
"resourceType": "string",
  
  
  
  
"resourceId": "string",
  
  
  
  
"status": "string",
  
  
  
  
"attemptCount": 0,
  
  
  
  
"maxAttempts": 0,
  
  
  
  
"nextRetryAt": "string",
  
  
  
  
"lastResponseCode": 0,
  
  
  
  
"lastResponseBody": "string",
  
  
  
  
"lastError": "string",
  
  
  
  
"createTime": "string",
  
  
  
  
"completedAt": "string"
  
  
  
}
  
  
]
  
},
  
"ts": 0,
  
"rid": "string",
  
"msg": "string",
  
"success": true
}

试验场

服务器
授权
请求头
变量

示例

技术支持 VitePress OpenAPI