Kite
API ReferenceCustomers

Create a customer, or update the one with this externalId

POST
/api/customers

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
externalId*string
Length1 <= length <= 255
name?|
Lengthlength <= 255
traits?|null

Response Body

Response for status 200

application/json
  1. response
id*string
Formatuuid
appId*string
Formatuuid
externalId*string
name*string|null
traits*|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://testnet.usekite.site/api/customers' \  -H 'Content-Type: application/json' \  -d '{  "externalId": "string"}'
Example Response200
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "appId": "28c365d5-df94-4a54-8217-3ce51d068868",  "externalId": "string",  "name": "string",  "traits": {},  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}