Kite
API ReferenceAPI keys

Register an API key's public key

POST
/api/api-key

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
label*string
Length1 <= length <= 120
publicKey*string
Length43 <= length <= 43
scopes*array<>
expiresAt?string
Formatdate-time

Response Body

Response for status 201

application/json
  1. response
id*string
Formatuuid
appId*string
Formatuuid
label*string
publicKey*string
scopes*array<>
lastUsedAt*|
Formatdate-time
revokedAt*|
Formatdate-time
expiresAt*|
Formatdate-time
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://testnet.usekite.site/api/api-key' \  -H 'Content-Type: application/json' \  -d '{  "label": "string",  "publicKey": "stringstringstringstringstringstringstrings",  "scopes": [    "Apikey:Write"  ]}'
Example Response201
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "appId": "28c365d5-df94-4a54-8217-3ce51d068868",  "label": "string",  "publicKey": "string",  "scopes": [    "Apikey:Write"  ],  "lastUsedAt": "2019-08-24T14:15:22Z",  "revokedAt": "2019-08-24T14:15:22Z",  "expiresAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}