v1
latestOpenAPI 3.0.12026-07-26171200932.8 KBAgent Portfolios
Create User Token (v2)
Rate limit: 60 requests per 60 seconds. This is the default shared quota — it is shared with every other endpoint that has no dedicated limit, so requests across those endpoints all draw from the same budget.
Creates a new user token for the specified agent-portfolio using scope names. Scopes are specified by name (scopeNames); scope ids are not supported in v2.
post/api/v2/agent-portfolios/{agentPortfolioId}/user-tokens
Path parameters
agentPortfolioIdstring uuid required
The unique identifier of the agent-portfolio.
Headers
x-request-idstring uuid required
Example:0745bdea-020c-4e12-821d-c4c118710597
A unique request identifier.
x-api-keystring password required
Example:lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663
API key for authentication.
x-user-keystring password required
Example:eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_
User-specific authentication key.
Request body
Example request
{
"userTokenName": "my-trading-token",
"scopeNames": [
"etoro-public:trade.real:read",
"etoro-public:trade.real:write"
],
"ipsWhitelist": [
"192.168.1.1"
],
"expiresAt": "2026-12-31T23:59:59Z"
}Response
User token created successfully
Example response
{
"userTokenId": "f9e8d7c6-b5a4-3210-fedc-ba9876543210",
"userToken": "sk_live_a1b2c3d4e5f6...",
"userTokenName": "my-trading-token",
"clientId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ipsWhitelist": [
"192.168.1.1"
],
"scopeNames": [
"etoro-public:trade.real:read"
],
"expiresAt": "2026-12-31T23:59:59Z",
"createdAt": "2026-03-06T12:00:00Z"
}