Base URL
The Arcana API is available at:Authentication
Query Endpoint Authentication
The/query endpoint accepts payment verification via USDC transaction hash:
- Cost: $0.03 USDC per query
- The transaction hash is verified on-chain before processing
- Transaction must be confirmed (status: ‘success’)
Admin Endpoints Authentication
Protected admin endpoints require thex-admin-key header:
ADMIN_API_KEY environment variable.
Rate Limiting
Query Rate Limit
General Rate Limit
Most other endpoints are limited to 100 requests per 15 minutes per IP address. Exemptions:OPTIONSrequests (CORS preflight)GET /healthGET /providersGET /dashboard/*endpoints
Admin Policy Rate Limit
Admin policy endpoints (/admin/policy/*) have a dedicated limit of 30 requests per minute.
Response Format
All API responses follow a consistent JSON structure:Success Response
Error Response
CORS Configuration
The API accepts requests from the following origins by default:http://localhost:5173http://localhost:3000http://localhost:8080
ALLOWED_ORIGINS environment variable (comma-separated).
Health Check
Verify API availability:Next Steps
Query Endpoint
Send natural language queries to AI agents
Providers
Discover available agents and their capabilities
Dashboard
Access agent stats and activity feeds