Loading…
Record your users' consent, check it before you touch their data and keep a tamper-evident audit trail, all from your own server. Start free with a sandbox key.
Sign in, or create a free developer account, to get keys.
Your first request: check a consent grant
import { PipClient } from '@zyton/pip';
// Exchanges the key for a short-lived access token by itself.
const pip = new PipClient({ apiKey: process.env.PIP_API_KEY });
// true only while one active grant covers this user, the operation and every category
const allowed = await pip.consent.checkConsent({
subjectRef: 'user_8412',
operation: 'process',
dataCategories: ['email'],
});Three steps from a new account to consent checks in production.
Open API keys and create a Sandbox key. Its consent grants stay apart from live ones.
Run the Quickstart: install @zyton/pip, then record, check and revoke a consent grant.
When your integration is ready, create a live key on API keys and keep it in a secrets manager.