RESTful API with 100+ endpoints. All requests use JSON. Authentication via Bearer JWT token.
/api/v1/auth/registerCreate a new user account/api/v1/auth/loginLogin and receive JWT tokens/api/v1/auth/refreshRefresh access token/api/v1/auth/logoutRevoke refresh token/api/v1/auth/meGet current user profilecurl -X POST /api/v1/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]", "password": "your-password"}'
# Response:
{
"success": true,
"data": {
"user": { "id": "...", "email": "...", "memberships": [...] },
"tokens": {
"accessToken": "eyJhbG...", // Use in Authorization header
"refreshToken": "eyJhbG..."
}
}
}
# Authenticated request:
curl /api/v1/api/v1/players?academyId=... \
-H "Authorization: Bearer eyJhbG..."