Installation
fetch and crypto).
Initialize
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
clientId | string | required | Auth0 M2M client ID |
clientSecret | string | required | Auth0 M2M client secret |
environment | string | "production" | "development", "staging", or "production" |
baseUrl | string | per environment | Override API base URL |
auth0TokenUrl | string | per environment | Override Auth0 token endpoint |
auth0Audience | string | per environment | Override Auth0 audience |
maxRetries | number | 3 | Max retry attempts on 429/5xx |
retryBaseDelay | number | 500 | Base delay in ms for exponential backoff |
timeout | number | 30000 | Request timeout in ms |
Environment URLs
| Environment | API URL |
|---|---|
"production" | https://api.keystoneos.xyz |
"staging" | https://api-staging.keystoneos.xyz |
"development" | https://api-dev.keystoneos.xyz |
Resources
The client exposes typed resource namespaces:Idempotency Keys
Always use idempotency keys for create/submit operations. The SDK provides a helper:Pagination
All list methods returnPaginatedResponse<T>: