BlackRoad API

Mock API Service - Development Mode

POST /api/auth/register

Register a new user

{ "username": "...", "email": "...", "password": "..." }

POST /api/auth/token

Login and get JWT token

FormData: username, password

GET /api/auth/me

Get current user

Headers: Authorization: Bearer {token}

POST /api/ai-chat/chat

Send message to AI

{ "message": "..." }

⚠️ Development Mode

This is a mock API for development. Deploy the full backend to Railway for production use.

Backend repo: BlackRoad-Operating-System/backend