Developers / API-authenticatie
API-authenticatie
Dracily gebruikt één geheime API-key voor server-naar-server toegang. Je hebt geen aparte client ID nodig voor normale integraties.
Wanneer wat
| Methode | Gebruik |
|---|---|
| Sessiecookie (browser-app) | Ingelogde gebruikers op dracily.com |
Authorization: Bearer drac_… | Jouw backend, scripts, CI, integraties |
OAuth client ID + client secret is alleen nodig als je later een third-party OAuth-app bouwt. Voor de Dracily-API vanaf je server is één API-key genoeg.
Key maken
- Inloggen → Settings → API
- Key aanmaken en het secret één keer kopiëren
- Bewaar als environment variable (nooit in frontend-code)
Base URL
https://api.dracily.com
Zelfde API als https://dracily.com/v1/…. Gebruik bij voorkeur api.dracily.com.
Voorbeeldheader
Authorization: Bearer drac_xxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: application/json
Quota
Elke scan via API telt mee voor het abonnement (scans + opslag), net als de Detect-UI. Requestlogs staan onder Settings → API.
