Skip to main content
POST
/
api
/
v1
/
sub-accounts
Create Account
curl --request POST \
  --url https://public-api.etoro.com/api/v1/sub-accounts \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-request-id: <x-request-id>' \
  --header 'x-user-key: <x-user-key>' \
  --data '
{
  "status": "Pending",
  "accountId": "12345-abcde",
  "accountType": "Trading",
  "accountVisibility": "Visible",
  "accountCurrencies": [
    "USD",
    "EUR"
  ],
  "additionalData": {
    "key1": "value1",
    "key2": "value2"
  },
  "additionalParams": {
    "param1": "value1",
    "param2": "value2"
  }
}
'

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"1be91b80-a49e-42a4-a758-c803ee72c0f8"

x-api-key
string<password>
required

API key for authentication.

Example:

"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"

x-user-key
string<password>
required

User-specific authentication key.

Example:

"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"

Body

application/json
status
enum<string>
required

The current status of the sub-account.

Available options:
Pending,
MissingKyc,
InvalidKyc,
RejectedByThirdParty,
Approved
Example:

"Pending"

accountId
string
required

Unique identifier for the account.

Example:

"12345-abcde"

accountType
enum<string>
required

Type of the account.

Available options:
Trading,
Cash,
ISA
Example:

"Trading"

accountVisibility
enum<string>
required

Visibility status of the account.

Available options:
Visible,
NotVisible
Example:

"Visible"

accountCurrencies
string[]
required

List of currencies associated with the account.

Example:
["USD", "EUR"]
additionalData
object
required

Additional data related to the account.

Example:
{ "key1": "value1", "key2": "value2" }
additionalParams
object

Additional parameters for the account.

Example:
{ "param1": "value1", "param2": "value2" }

Response

Account created successfully