管理
發送測試 Webhook
需要 Workspace Management Token (mt-...),請至 Dashboard > API > Management Tokens 建立。請發送 Authorization: Bearer mt-....。不接受 Inference API keys (sk-...) 和 webhook 簽章密鑰 (whsec_...)。僅可存取該 token 所屬的 workspace。透過相同的簽章傳送路徑發送 webhook.test。HTTP 200 表示已持久化嘗試;請檢查 outcome 和 http_status 以確定接收端是否成功。測試前請先恢復已暫停的端點。
POSThttps://api.tokenlab.sh/v1/management/webhooks/{webhookId}/test
請使用工作區 Management Token (mt-...),而非推理 API 金鑰 (sk-...) 或簽章密鑰 (whsec_...)。請前往 Dashboard → API → Management Tokens 建立一個,並發送 Authorization: Bearer mt-...。存取權限僅限於該工作區。
關於事件、驗證、重試與疑難排解,請參閱 Webhook 管理 API 指南。
curl -X POST "https://example.com/v1/management/webhooks/string/test"{ "id": "string", "webhook_id": "string", "delivery_id": "string", "event_type": "string", "outcome": "delivered", "http_status": 0, "attempts": 0, "delivered_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z"}授權
ManagementTokenAuth AuthorizationBearer <token>
管理權杖驗證。請在 Dashboard > API > Management Tokens 建立或管理管理權杖。
位置: header
路徑參數
webhookId*string
長度
1 <= length <= 128回應
application/json
application/json
application/json
application/json
application/json
application/json