Skip to main content
POST
Bulk-create unlinked accounts with import keys

Authorizations

Authorization
string
header
required

JWT Bearer token for user session auth. Format: "Bearer {token}". Used by User and Organization endpoints.

Body

application/json
count
integer
required

How many unlinked accounts to create (1-100 per call)

Required range: 1 <= x <= 100
Example:

25

type
enum<string>
required

Account type for every account in the batch

Available options:
evaluation,
sim_funded,
competition
Example:

"evaluation"

tradingPlanId
string
required

Trading plan for every account in the batch

Example:

"550e8400-e29b-41d4-a716-446655440000"

tradingRuleId
string

Override the plan's default rule (optional)

initialBalance
number

Starting balance (defaults to the plan's account size)

Example:

50000

customerIdPrefix
string

REQUIRED. Each account gets customerId {prefix}-001, {prefix}-002, ... — one placeholder customer per account (right for giveaways where every key goes to a different winner). PATCH the real customerId onto an account once you know who it belongs to.

Maximum string length: 200
Example:

"promo-summer"

externalRefPrefix
string

DEPRECATED alias for customerIdPrefix — accepted for backward compatibility only.

Maximum string length: 200
Example:

"promo-summer"

metadata
object

Custom metadata applied to every account in the batch

Example:

Response

Success - batch created

success
boolean
Example:

true

message
string
Example:

"25 unlinked account(s) created — hand each importKey to its trader"

data
object