Complete developer API
Integrate Consentio into your tech stack. Client-side JavaScript API, server-side REST API, real-time events.
Consentio.hasConsent(category)→ booleanChecks if a category is consented
Consentio.getConsent()→ ConsentStateReturns the full consent state
Consentio.on(event, cb)→ () => voidListens for consent events
Consentio.reset()→ voidResets the visitor's consent
Consentio.show()→ voidManually displays the banner
Client-side JavaScript API
Interact with your visitors' consent directly from your JavaScript code. Check consent, listen for changes, reset choices.
"ready"Configuration loaded, widget ready
"show"Banner displayed to visitor
"consent"Visitor has made their choice
"hide"Banner hidden after choice
Real-time events
Consentio emits JavaScript events at every stage of the consent lifecycle. Ideal for triggering conditional actions in your application.
Simple integration
A single line of code in your HTML is all it takes. The widget auto-initializes and exposes its API on the global Consentio object.
- Async script, zero performance impact
- Auto-initialization via data-domain-id
- Compatible with all frameworks (React, Vue, Angular, etc.)
100% Swiss hosting
All data is processed and stored in Switzerland by Infomaniak, in ISO 27001 certified data centers. No data leaves Swiss territory.
Ready to simplify your compliance?
Install Consentio in 5 minutes and ensure nLPD/GDPR compliance for your website.