Documentation Index
Fetch the complete documentation index at: https://docs.useaxra.com/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Quick start
from axra import Axra
client = Axra(api_key="sk_test_...")
# Create a payment
payment = client.payments.create(
amount=5000,
currency="usd",
)
print(payment.id)
Configuration
| Option | Type | Default | Description |
|---|
api_key | str | required | Your secret API key |
base_url | str | https://api.useaxra.com | API base URL |
api_version | str | 2026-04-15 | Sent as Axra-Version header |
max_network_retries | int | 2 | Automatic retries on 5xx |
timeout_seconds | float | 60.0 | Request timeout |
Webhook signature verification
from axra.webhooks import construct_event
@app.route("/webhooks", methods=["POST"])
def handle_webhook():
signature = request.headers.get("Axra-Signature")
event = construct_event(
payload=request.data,
signature_header=signature,
secret="whsec_your_signing_secret",
)
if event["type"] == "payment.completed":
# handle payment
pass
return "ok", 200
Full API access
The Python SDK includes a fully generated API client for all endpoints:
# Access the full generated client
response = client.http.get("/api/v1/treasury/whoami")