← Terug naar documentatie

API Documentatie

De Valtres REST API geeft je programmatische toegang tot alle platform functionaliteit. Authenticeer met een JWT token of API key.

Authenticatie

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

Agents

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

Billing

GET /api/billing/plans — Alle plannen

GET /api/billing/invoices — Factuurlijst

POST /api/billing/checkout — Nieuwe betaling

POST /api/billing/cancel — Abonnement opzeggen

Usage

GET /api/usage — Huidig tokenverbruik

GET /api/usage/history — Verbruik geschiedenis