Installation
httpx (HTTP client) and pydantic (type validation).
Initialize
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
client_id | str | required | Auth0 M2M client ID |
client_secret | str | required | Auth0 M2M client secret |
environment | str | "production" | "development", "staging", or "production" |
base_url | str | per environment | Override API base URL |
auth_domain | str | per environment | Override Auth0 domain |
audience | str | per environment | Override Auth0 audience |
timeout | float | 30.0 | Request timeout in seconds |
retry | RetryConfig | 3 retries, 0.5s base | Retry configuration |
RetryConfig
Override retry behavior:Resources
Idempotency Keys
Pagination
All list methods returnPaginatedResponse[T] with convenience properties: