API ReferenceAPI keys
Register an API key's public key
POST
header
x-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
application/json- body
label*stringLength
1 <= length <= 120publicKey*stringLength
43 <= length <= 43scopes*array<>expiresAt?stringFormat
date-timeResponse for status 201
application/json- response
id*stringFormat
uuidappId*stringFormat
uuidlabel*stringpublicKey*stringscopes*array<>lastUsedAt*|Format
date-timerevokedAt*|Format
date-timeexpiresAt*|Format
date-timecreatedAt*stringFormat
date-timeupdatedAt*stringFormat
date-timecurl -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"}