Vue SDK
Collect result (JSON-shaped)
Request JSON to your backend
{ "event_id": "…" } — full response in POST /v2/verify.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Vue 3 plugin and composables
npm install @keverdjs/vue
import { createApp } from 'vue';
import { KeverdPlugin } from '@keverdjs/vue';
import App from './App.vue';
createApp(App)
.use(KeverdPlugin, { apiKey: import.meta.env.VITE_KEVERD_PUBLIC_KEY })
.mount('#app');
<script setup>
import { useVisitorData } from '@keverdjs/vue';
const { getData, isLoading } = useVisitorData({ immediate: false });
async function onCheckout() {
const result = await getData();
await fetch('/api/checkout', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ eventId: result.event_id }),
});
}
</script>
{
"event_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"fingerprint": "kvd_…",
"action": "allow",
"risk_score": 12
}
{
"eventId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
{ "event_id": "…" } — full response in POST /v2/verify.
