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

Sub-account identifier

id
string

API key identifier

title
string

API key title/name

isEnabled
boolean

Whether the API key is enabled

apiKey
string

API key

apiSecret
string

API secret

type
integer

API key type (1 - info and trading, 2 - info, trading, deposit and withdraw)

lastActivity
integer

Last activity timestamp

restrictAccess
boolean

Whether access is restricted

accessEndpoints
object[]

List of allowed endpoints