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: checking capabilities, deriving tokens, listing active tokens, and revoking them.
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.
Creating an HMAC-authenticated client
After deriving a token, create a newClient with the HMAC credentials:
Scopes is omitted, the token defaults to ["trading"]. Requested scopes must be a subset of the partner’s AllowedScopes.
List active tokens
Returns all non-revoked tokens for the authenticated partner.Revoke a token
Immediately invalidates a token. This cannot be undone.Scope constants
The SDK exports typed scope constants:| Constant | Value |
|---|---|
ScopeTrading | "trading" |
ScopeAccountCreation | "account_creation" |
ScopeDelegatedSigning | "delegated_signing" |