Reference

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

MethodEndpointDescription
GET/v1/healthHealth check — no auth required
POST/v1/auth/loginExchange OAuth code for token
POST/v1/auth/logoutRevoke current token
GET/v1/labsList all available labs
GET/v1/labs/:idGet lab metadata
POST/v1/progress/startRecord lab start
POST/v1/progress/completeRecord lab completion and award XP
GET/v1/profileGet current user profile and XP