Quickstart

Get started with governed data access in 5 minutes.

Get started

1. Get Your API Key

  1. Go to dashboard.xase.ai
  2. Create an account (free tier available)
  3. Navigate to Settings → API Keys
  4. Click Create API Key
  5. Copy the key (starts with xase_pk_...)

Warning: Store your API key securely. It won't be shown again.

Installation

2. Install SDK

pip install xase

Request access to data

3. Request Governed Access

Create an access session with specified purpose and duration:

access.pypython
import xase

client = xase.Client(api_key="xase_pk_...")

# Request access to data
session = client.access(
    dataset="medical-records-2025",
    purpose="model-training",
    model_id="diagnostic-model-v2",
    duration="30d"
)

print(f"Access granted! Session ID: {session.id}")

Policy evaluation happens automatically. If approved, a session is created. If rejected, an error with the specific policy violation is returned.

Use the data

4. Stream Data

Access and process data through the session interface:

stream.pypython
# Stream data in batches
for batch in session.stream(batch_size=32):
    # Train your model
    model.train_on_batch(batch)
    
    # All operations automatically tracked

Generate evidence

5. Get Evidence Bundle

Generate cryptographic proof of compliant data use:

evidence.pypython
# Get evidence bundle for session
bundle = session.get_evidence()

# Download the bundle
bundle.download("./evidence_bundle.zip")

Verify evidence

6. Verify the Bundle (Offline)

Verify the evidence bundle without depending on Xase infrastructure:

unzip evidence_bundle.zip
./verify.sh

# ✓ Signature valid
# ✓ Hash chain intact
# ✓ Timestamps consistent
# RESULT: Evidence is authentic

Next steps

© 2025 Xasefounders@xase.ai