API & Integration Guide
Base URL
All API requests are made to:
https://api.econsent.orgThe 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_TOKENGenerate 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/verifyRequest 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:
| Integration | Description |
|---|---|
| OTP Verification | Send one-time passcodes to verify consumer identity |
| Identity Verification | Verify consumer identity against authoritative data sources |
| Carrier Lookup | Validate phone line type and carrier information |
| Fraud Detection | Score leads for fraud risk signals |
| Debt Soft Pull | Soft credit inquiry for debt-related consent flows |
| Email Validation | Verify email deliverability and validity |
| Phone Validation | Verify 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:
| Plan | Rate Limit |
|---|---|
| Starter | 100 requests/minute |
| Growth | 500 requests/minute |
| Enterprise | 2,000 requests/minute |
| High Volume | Custom |
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?