API Documentatie
Bouw krachtige integraties met de Faciliteitje API
Endpoints
Quick Links
Getting Started
De Faciliteitje API is een RESTful API die JSON gebruikt voor requests en responses. Alle API calls moeten geauthenticeerd worden met een API key.
Base URL
https://api.faciliteitje.nl/v1Authenticatie
Include je API key in de Authorization header:
Authorization: Bearer YOUR_API_KEYAuthenticatie
POST /auth/token
Genereer een access token
{
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"grant_type": "client_credentials"
}Response
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGc...",
"token_type": "Bearer",
"expires_in": 3600
}Code Voorbeelden
const response = await fetch('https://api.faciliteitje.nl/v1/invoices', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
const invoices = await response.json();
console.log(invoices);