Installation
httpx (HTTP client) and pydantic (type validation).
Initialize the client
The SDK provides both async and sync clients:Configuration options
| Option | Type | Default | Description |
|---|---|---|---|
client_id | str | required | Auth0 M2M client ID |
client_secret | str | required | Auth0 M2M client secret |
base_url | str | https://api.keystoneos.xyz | API base URL |
auth_domain | str | auth.keystoneos.xyz | Auth0 domain |
audience | str | https://api.keystoneos.xyz | Auth0 audience |
timeout | float | 30.0 | Request timeout in seconds |
retry | RetryConfig | 3 retries, 0.5s base | Retry configuration |
Resources
Submit a bilateral instruction
List settlements
Webhook signature verification
Error handling
Compliance decisions
The compliance resource provides convenience methods:Idempotency
API Reference
See the full API reference for all available endpoints and parameters.