Create Sub-Account User Token
Generates a non-interactive user token for the sub-account identified by the x-sub-account-id header. The secret token value is returned only once, in this response.
Authorizations
eToro OAuth2. Each operation lists the scopes that grant access as separate security requirements (OpenAPI OR semantics): the caller's token only needs ONE of them — you do NOT need all of them. The same scopes back the x-api-key/x-user-key credential pair.
Headers
A unique request identifier.
"8608a750-6d36-4f85-98b1-1dd829224548"
API key for authentication.
"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"
User-specific authentication key.
"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"
The encrypted sub-account identifier. The backend validates that it decrypts to a sub-account owned by the caller's token gcid and generates the token for the sub-account's gcid.
Body
A friendly display name for the user token.
"my-trading-bot"
The scope names to assign. Must be a subset of the scopes returned by GET /api/v1/sub-accounts/etoro-trading/user-tokens/scopes.
[
"etoro-public:trade.real:read",
"etoro-public:trade.real:write"
]
An optional IPv4 whitelist for the token.
["192.168.1.1"]
An optional UTC expiration for the token.
"2026-12-31T23:59:59Z"
Response
User token created successfully
The unique identifier of the created user token.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The secret token value. Returned only once, on creation.
"ut_live_9f8c7b6a5d4e3f2a1b0c"
The friendly display name assigned to the token.
"my-trading-bot"
The OAuth client id associated with the token.
"7c9e6679-7425-40de-944b-e07fc1f90ae7"
The IPv4 addresses the token is restricted to, if any.
["192.168.1.1"]
The scopes granted to the token.
The UTC expiration of the token, if one was set.
"2026-12-31T23:59:59Z"
When this user token was created.
"2026-06-06T10:15:00Z"