TheDocumentation Index
Fetch the complete documentation index at: https://limitless-docs-ws-settlement-events.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
ApiTokenService handles the partner self-service token lifecycle: capability checks, token derivation, listing active tokens, and revocation.
Token derivation and capability queries require a Privy identity token. The SDK does not obtain this token for you — your application must authenticate the partner via Privy and pass the resulting token.
Access
The service is available on the rootClient:
Get partner capabilities
Check whether token management is enabled and which scopes are allowed:Derive a token
Create a new scoped API token. Thesecret is returned once — store it securely.
Create an HMAC-authenticated client
After deriving a token, create a new client with those HMAC credentials:scopes is omitted when deriving the token, the backend defaults it to ["trading"].
List active tokens
Returns all non-revoked tokens for the authenticated partner:Revoke a token
Immediately invalidate a token:Scope constants
The Rust SDK exports typed string constants:| Constant | Value |
|---|---|
SCOPE_TRADING | "trading" |
SCOPE_ACCOUNT_CREATION | "account_creation" |
SCOPE_DELEGATED_SIGNING | "delegated_signing" |
SCOPE_WITHDRAWAL | "withdrawal" |