Kite
API ReferenceWebhooks

Create a webhook

POST
/api/webhooks

Authorization

headerx-kite-signature<token>

Base64url Ed25519 signature of timestamp nonce METHOD path?query sha256(body), sent with x-kite-api-key-id, x-kite-timestamp and x-kite-nonce

Request Body

application/json
  1. body
url*string
Match^https?://
Formaturi
Lengthlength <= 2048
label*string
Length1 <= length <= 120
categories*array<>
Items1 <= items
maxRetries?|
Range0 <= value <= 20
retryIntervalInSeconds?|
Range1 <= value <= 86400
timeoutInSeconds?|
Range1 <= value <= 120

Response Body

Response for status 201

application/json
  1. response
id*string
Formatuuid
appId*string
Formatuuid
url*string
label*string
categories*array<>
signingKeyHint*string
maxRetries*integer
retryIntervalInSeconds*integer
timeoutInSeconds*integer
deletedAt*|
Formatdate-time
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
signingKey*string
Example Request
curl -X POST 'https://testnet.usekite.site/api/webhooks' \  -H 'Content-Type: application/json' \  -d '{  "url": "http://example.com",  "label": "string",  "categories": [    "Transfer"  ]}'
Example Response201
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "appId": "28c365d5-df94-4a54-8217-3ce51d068868",  "url": "string",  "label": "string",  "categories": [    "Transfer"  ],  "signingKeyHint": "string",  "maxRetries": 0,  "retryIntervalInSeconds": 0,  "timeoutInSeconds": 0,  "deletedAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "signingKey": "string"}