API Tokens
Derive scoped API token
Changed onCreates a new scoped API token for the authenticated partner. Requires Privy authentication (Bearer token). The token secret is returned once at creation — store it securely. Requested scopes must be a subset of the partner's allowed scopes.
post/auth/api-tokens/derive
Request
- Base URLhttps://api.limitless.exchange
- AuthAPI key in header lmts-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"label": "production-trading-bot",
"scopes": [
"trading",
"account_creation"
]
}Response
Token created successfully. The secret is only returned once.
Example response
{
"apiKey": "dGVzdC10b2tlbi0x",
"secret": "c2VjcmV0LWtleS1leGFtcGxlLWJhc2U2NC1lbmNvZGVk",
"tokenId": "dGVzdC10b2tlbi0x",
"scopes": [
"trading",
"account_creation"
],
"profile": {
"id": 42,
"account": "0x27b4afBD88fE7c88c6897BB0b4ADE338D0401E37"
}
}Changes
- info
the endpoint scheme security
HmacAuthwas added to the API - info
the endpoint scheme security
ApiKeyAuthwas removed from the API
- info
- info
endpoint added
- info