API Reference
REST API endpoints for the TLD backend.
Pre-stable API
The TLD REST API is pre-stable. Endpoints may change between minor versions until v1.0.0.Authentication
All API requests require a Bearer token in the Authorization header.
bash
$ curl https://api.thelastdeploy.com/v1/labs -H 'Authorization: Bearer <your-token>'
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/health | Health check — no auth required |
| POST | /v1/auth/login | Exchange OAuth code for token |
| POST | /v1/auth/logout | Revoke current token |
| GET | /v1/labs | List all available labs |
| GET | /v1/labs/:id | Get lab metadata |
| POST | /v1/progress/start | Record lab start |
| POST | /v1/progress/complete | Record lab completion and award XP |
| GET | /v1/profile | Get current user profile and XP |
