Roosevelt Docs

Endpoints

Beschikbare API endpoints

API Endpoints

Base URL

Production:  https://api.roosevelt.dev
Staging:     https://staging.api.roosevelt.dev

Health

GET /health

Response:

"OK"

Time Tracking

Logs ophalen

GET /api/v1/time-logs
Authorization: Bearer <token>

Query parameters:

ParameterTypeBeschrijving
projectIdstringFilter op project
fromISO 8601Startdatum
toISO 8601Einddatum
pagenumberPaginanummer (default: 1)
limitnumberItems per pagina (default: 50)

Response:

{
  "success": true,
  "data": [
    {
      "id": "uuid",
      "projectId": "uuid",
      "duration": 3600,
      "description": "Feature development",
      "createdAt": "2026-03-19T10:00:00Z"
    }
  ],
  "meta": {
    "total": 42,
    "page": 1,
    "limit": 50
  }
}

Log aanmaken

POST /api/v1/time-logs
Authorization: Bearer <token>
Content-Type: application/json

Body:

{
  "projectId": "uuid",
  "duration": 3600,
  "description": "Feature development",
  "date": "2026-03-19"
}

Errors

Alle errors volgen hetzelfde formaat:

{
  "success": false,
  "error": "VALIDATION_ERROR",
  "message": "duration must be a positive number"
}

On this page