OntwikkelaarsVoorbeelden
HTTP-voorbeelden
cURL en request-voorbeelden voor de Tillor API
API-request met cURL
curl -X GET "https://app.tillor.eu/api/orgs/org_abc123/customers" \
-H "x-api-key: tkn_xxx" \
-H "X-Tillor-Org-Id: org_abc123" \
-H "Content-Type: application/json"API-sleutel aanmaken
curl -X POST "https://app.tillor.eu/api/api-keys" \
-H "Cookie: session=..." \
-H "Content-Type: application/json" \
-d '{"name": "Mijn integratie", "description": "Optionele beschrijving"}'Webhook aanmaken
curl -X POST "https://app.tillor.eu/api/orgs/org_abc123/webhooks" \
-H "x-api-key: tkn_xxx" \
-H "X-Tillor-Org-Id: org_abc123" \
-H "Content-Type: application/json" \
-d '{
"url": "https://jouw-server.com/webhooks/tillor",
"subscribedEventKeys": ["invoice:created", "invoice:paid", "customer:updated"],
"enabled": true
}'