Үндсэн агуулга руу алгасах
API reference

Set/replace the webhook URL — returns a NEW signing secret once

PUT/webhook

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/webhook" \  -H "Content-Type: application/json" \  -d '{    "url": "http://example.com"  }'
{  "webhook": {    "url": "http://example.com",    "status": "active",    "consecutive_failures": 0,    "delivered_count": 0,    "failed_count": 0,    "last_delivered_at": "2019-08-24T14:15:22Z",    "last_error": "string",    "updated_at": "2019-08-24T14:15:22Z"  },  "secret": "string"}