API Gateway

circle-info

The API Gateway provides RESTful endpoints to access all Sand Framework features.

API Overview

Our FastAPI-based gateway provides:

  • OpenAPI documentation

  • Authentication & authorization

  • Rate limiting

  • Request validation

  • Async operation support

Authentication

# Get JWT token
curl -X POST http://localhost:8000/auth/token \
  -H "Content-Type: application/json" \
  -d '{"username": "user", "password": "pass"}'

# Use token
curl -X GET http://localhost:8000/api/v1/analyze \
  -H "Authorization: Bearer <token>"

Endpoints

AI Service

Analytics

Contract Analysis

Request Examples

Analyze Contract

Get Price Data

Error Handling

WebSocket Support

For real-time updates:

circle-info

Full API documentation is available at /api/docs when running the server.

Last updated