Webhook发送测试事件

Webhook

发送测试事件

像其他事件一样投递带签名的 webhook.test 事件,无需等待接收方,便于校验签名。每分钟最多发送五次。

POSThttps://api.sofia-post.com/api/v1/webhooks/{id}/test
POST/v1/webhooks/{id}/test

此请求将作用于你的真实账户。

curl -X POST 'https://api.sofia-post.com/api/v1/webhooks/{id}/test' \
  -H "Authorization: Bearer $SOFIA_API_KEY"

授权

  • Authorizationstring必填

    你的个人密钥或 OAuth 访问令牌,以 Bearer <token> 发送。

路径参数

  • idstring必填

    webhook 的标识符。

响应

202application/json

测试事件已接受,并在请求之外投递。

  • deliveryIdstring必填

    webhook.test 的投递,在请求之外尝试

401

令牌缺失、未知、已过期或已被撤销。

403

令牌没有 webhooks:write scope。

404

webhook_not_found:未知,或属于其他应用。

429

一分钟内的测试事件超过五次。

4XXapplication/json

其他任何错误,以错误结构返回。