API Reference
Complete API documentation for all Tenzro Platform services. All endpoints require authentication and return JSON responses.
Base URL
https://api.platform.tenzro.comAuthentication
All requests require these headers:
Authorization: Bearer <api_key>
X-Tenant-ID: <tenant_id>
Content-Type: application/jsonResponse Format
Successful responses return a JSON object:
{
"data": { ... },
"meta": {
"requestId": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
}
}Error Format
{
"error": {
"code": "validation_error",
"message": "Invalid request parameters",
"details": [
{ "field": "amount", "message": "Must be positive" }
]
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
}
}Services
| Service | Base Path | Description |
|---|---|---|
| Auth | /api/auth | Authentication and session management |
| Wallet | /api/wallet | Multi-chain wallet management |
| Token | /api/token | Token operations and transfers |
| Bridge | /api/bridge | Cross-chain asset transfers |
| Custody | /api/custody | MPC key management and signing |
| Ledger | /api/ledger | Double-entry accounting |
| AI | /api/ai | TEE-secured AI inference |
| Anchor | /api/anchor | Blockchain data anchoring |
| API Keys | /api/apikeys | API key management |
| Provision | /api/provision | Tenant provisioning |
| Events | /api/events | Real-time event streaming |
Pagination
List endpoints support cursor-based pagination:
GET /api/wallet/list?limit=20&cursor=eyJpZCI6MTIzfQ
Response:
{
"data": [...],
"meta": {
"cursor": "eyJpZCI6MTQzfQ",
"hasMore": true
}
}Rate Limiting
Rate limit information is included in response headers:
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per window |
X-RateLimit-Remaining | Requests remaining |
X-RateLimit-Reset | Unix timestamp when window resets |
Idempotency
For mutation operations, include an X-Idempotency-Key header to prevent duplicate operations:
POST /api/token/transfer
X-Idempotency-Key: unique-request-id-123
{
"from": "wallet_abc",
"to": "0x...",
"amount": "1000000000"
}