Quickstart
Record your first AI decision in 5 minutes.
1. Get Your API Key
- Go to dashboard.xase.ai
- Create an account (free tier available)
- Navigate to Settings → API Keys
- Click Create API Key
- Copy the key (starts with xase_pk_...)
Store your API key securely. It won't be shown again.
2. Install SDK
pip install xase2.1 Use the CLI (optional)
npm i -g xase
xase --help
# point to production API
xase config set baseUrl https://api.xase.ai/api/xase/v1
# authenticate and run a quick check
xase auth login
xase metrics summaryPrefer commands? See the full guide: CLI
3. Record a Decision
first.pypython
import xase
client = xase.Client(api_key="xase_pk_...")
record = client.records.create(
model_id="credit-model-v1",
input={"customer_id": "cust_123", "income": 85000},
output={"decision": "APPROVED", "limit": 25000},
confidence=0.94
)
print(f"Recorded: {record.id}")4. Record Human Intervention
curl -X POST https://api.xase.ai/v1/records/rec_8a7f3b2c/intervene -H "Authorization: Bearer xase_pk_..." -H "Content-Type: application/json" -d '{
"actor_email": "analyst@company.com",
"action": "APPROVED",
"reason": "Documentation verified manually"
}'5. Export Evidence Bundle
export.pypython
bundle = client.exports.create(record_id=record.id)
# Download the ZIP file
bundle.download("./evidence_bundle.zip")6. Verify the Bundle (Offline)
unzip evidence_bundle.zip
./verify.sh
# ✓ Signature valid
# ✓ Hash chain intact
# ✓ Timestamps consistent
# RESULT: Evidence is authentic