API & Integration Guide

Base URL

All API requests are made to:

https://api.econsent.org

The API is served through CloudFront for low-latency global access.

Authentication

All API requests require a Bearer token passed in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

Generate or rotate your API token from your dashboard under Settings > API Keys.

Verification API

Verify a consent certificate by submitting a phone number or email to confirm a consumer provided consent.

Verify a Certificate

POST https://api.econsent.org/api/events/verify

Request body:

{
"phone": "+15551234567"
}

Response:

{
"success": true,
"certificate": {
"id": "cert_abc123",
"url": "https://app.econsent.org/certificate/cert_abc123",
"created_at": "2025-01-15T14:30:00Z",
"ip_address": "192.168.1.1",
"consent_text": "I agree to be contacted...",
"has_replay": true,
"hash": "sha256:a1b2c3d4..."
}
}

Webhooks

Configure webhooks in your dashboard under Channels > Webhooks to receive real-time notifications when new certificates are created.

Webhook Signing

All webhook payloads are signed with HMAC-SHA256. Verify the signature using the X-EConsent-Signature header and your webhook signing secret:

X-EConsent-Signature: sha256=<hmac_signature>

Compare this signature against the HMAC-SHA256 hash of the raw request body using your signing secret. Always validate signatures before processing webhook data.

Webhook Requirements

  • Your endpoint must use HTTPS
  • Your endpoint must return a 2xx status code within 10 seconds
  • Failed deliveries are retried with exponential backoff

Available Integrations

eConsent supports the following integrations, billed through your wallet balance:

IntegrationDescription
OTP VerificationSend one-time passcodes to verify consumer identity
Identity VerificationVerify consumer identity against authoritative data sources
Carrier LookupValidate phone line type and carrier information
Fraud DetectionScore leads for fraud risk signals
Debt Soft PullSoft credit inquiry for debt-related consent flows
Email ValidationVerify email deliverability and validity
Phone ValidationVerify phone number format, type, and reachability

Meta Lead Ads Integration

eConsent integrates with Meta Lead Ads to capture consent from Facebook and Instagram lead forms. Configure the integration in your dashboard under Channels > Meta Lead Ads to automatically generate certificates for leads submitted through Meta’s platform.

Rate Limits

API requests are rate-limited based on your plan:

PlanRate Limit
Starter100 requests/minute
Growth500 requests/minute
Enterprise2,000 requests/minute
High VolumeCustom

Full API Documentation

For detailed endpoint references, code examples, and SDK information, visit our full API documentation.

Support

For integration assistance, contact support@econsent.org.

Did this answer your question?

See eConsent in action. Schedule a live demo
Schedule a demo