API Architecture
The SkyTeam ROBLOX API is built with Express.js and provides RESTful endpoints for managing airlines, flights, users, and miles. All routes are protected with API key authentication except for the/health endpoint.
Base URL
Technology Stack
- Framework: Express.js with TypeScript
- Database: PostgreSQL with Drizzle ORM
- Security: Helmet.js for HTTP headers, CORS enabled
- Authentication: API key-based authentication via
x-api-keyheader
Request Format
All requests should include:Your airline’s API key for authentication. Required for all endpoints except
/health.Set to
application/json for POST requests with body data.Example Request
Response Format
All API responses return JSON data with appropriate HTTP status codes.Success Response
Error Response
HTTP Status Codes
Request succeeded
Invalid request parameters or insufficient miles
Missing or invalid API key
Resource not found (flight, user, product, etc.)
Server error occurred