API Quickstart
This guide walks through the essential Zen Mesh API operations. You will need a valid API key.
Prerequisites
- An active Zen Mesh tenant
- An API key assigned to your tenant
curlor any HTTP client
1. Obtain Your API Key
Your API key is provided during tenant onboarding. Include it in every request:
export ZEN_API_KEY="zpk_abc123..."
export ZEN_TENANT_ID="ten_..."
2. Verify Connectivity
curl -s -H "Authorization: Bearer $ZEN_API_KEY" \
-H "X-Tenant-ID: $ZEN_TENANT_ID" \
https://api.zen-mesh.io/v1/health | jq .
Expected response:
{"status": "ok", "version": "1.0.0"}
3. List Webhook Sources
curl -s -H "Authorization: Bearer $ZEN_API_KEY" \
-H "X-Tenant-ID: $ZEN_TENANT_ID" \
https://api.zen-mesh.io/v1/sources | jq .
4. Inspect Delivery Attempts
curl -s -H "Authorization: Bearer $ZEN_API_KEY" \
-H "X-Tenant-ID: $ZEN_TENANT_ID" \
https://api.zen-mesh.io/v1/deliveries?limit=5 | jq .
5. Read an Evidence Proof
curl -s -H "Authorization: Bearer $ZEN_API_KEY" \
-H "X-Tenant-ID: $ZEN_TENANT_ID" \
https://api.zen-mesh.io/v1/evidence/<delivery-id> | jq .
Next Steps
- See API Examples for complete workflows
- Read Authentication for details on key scopes and tenants
- Read Errors for error handling patterns