Skip to main content
POST
/
api
/
v4
/
sub-account
/
api-key
/
create
Create Sub-Account API Key
curl --request POST \
  --url https://whitebit.com/api/v4/sub-account/api-key/create \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --data '
{
  "type": 1,
  "subAccountId": "<string>",
  "title": "<string>"
}
'
{
  "subAccountId": "<string>",
  "id": "<string>",
  "title": "<string>",
  "isEnabled": true,
  "apiKey": "<string>",
  "apiSecret": "<string>",
  "type": 123,
  "lastActivity": 123,
  "restrictAccess": true,
  "accessEndpoints": [
    {
      "name": "<string>",
      "title": "<string>"
    }
  ]
}

Authorizations

X-TXC-APIKEY
string
header
required

API key authentication using signed requests

Body

application/json
type
enum<integer>
required

Type of API key (1 - info and trading; 2 - info, trading, deposits, withdraws)

Available options:
1,
2
subAccountId
string
required

ID of the sub-account to create the API key for

title
string

Custom title/name for the API key

Response

API key created successfully

subAccountId
string
id
string
title
string
isEnabled
boolean
apiKey
string
apiSecret
string
type
integer
lastActivity
integer
restrictAccess
boolean
accessEndpoints
object[]