Ravenwits API Documentation

Welcome to the Ravenwits API documentation. This API provides endpoints for data ingestion and strategy management.

Ingestion API

Endpoints for uploading and managing data files (outages, etc.).

View Ingestion API Documentation

Strategies API

Endpoints for retrieving user strategies and submitting purchase requests.

View Strategies API Documentation

Health Check

Health check endpoint for monitoring and load balancers:

GET /health/ → { "status": "healthy" }

Base URL

All API endpoints are available at:

https://api.ravenwits.com/api/v0/

Authentication

Most endpoints require authentication using a Bearer token in the Authorization header:

Authorization: Bearer <your_token>

Login endpoint (POST /api/v0/auth/login/)

Obtain a Bearer token by sending a POST request with JSON body:

Request:

POST /api/v0/auth/login/ Content-Type: application/json { "email": "your_email@example.com", "password": "your_password" }

Success (200):

{ "token": "...", "expires_at": "...", "customer_name": "...", "customer_email": "..." }