De Valtres REST API geeft je programmatische toegang tot alle platform functionaliteit. Authenticeer met een JWT token of API key.
POST /api/auth/login — Login met e-mail + wachtwoord
POST /api/auth/register — Registreer nieuw account
POST /api/auth/refresh — Vernieuw access token
POST /api/auth/logout — Uitloggen
GET /api/agents — Lijst van agents
POST /api/agents — Nieuwe agent aanmaken
GET /api/agents/:id — Agent details
PATCH /api/agents/:id — Agent updaten
DELETE /api/agents/:id — Agent verwijderen
GET /api/billing/plans — Alle plannen
GET /api/billing/invoices — Factuurlijst
POST /api/billing/checkout — Nieuwe betaling
POST /api/billing/cancel — Abonnement opzeggen
GET /api/usage — Huidig tokenverbruik
GET /api/usage/history — Verbruik geschiedenis