Base URL
All API requests should be made to:
https://api.consentproof.ioResponse Format
All responses follow a consistent format:
Success Response
{
"success": true,
"data": {
// Response data
}
}Error Response
{
"success": false,
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {} // Optional additional details
}
}Endpoints
Consent
Record and manage consent events
POST
/v1/consentGET
/v1/consent/:idGET
/v1/consent/verifyGET
/v1/consent/:id/pdfPOST
/v1/consent/batchPolicies
Manage policy versions
POST
/v1/policiesGET
/v1/policiesGET
/v1/policies/:idPATCH
/v1/policies/:idDELETE
/v1/policies/:idWebhooks
Configure webhook endpoints
POST
/v1/webhooksGET
/v1/webhooksGET
/v1/webhooks/:idPATCH
/v1/webhooks/:idDELETE
/v1/webhooks/:idPOST
/v1/webhooks/:id/testCommon Parameters
Pagination
List endpoints support pagination with these query parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
| page | integer | 1 | Page number |
| limit | integer | 20 | Items per page (max 100) |
Filtering
Many endpoints support filtering. Check individual endpoint docs for available filters.
# Filter consents by type
GET /v1/consent?consent_type=marketing&granted=true
# Filter policies by type
GET /v1/policies?type=privacy_policy&is_active=trueRate Limits
API requests are rate limited based on your plan:
| Plan | Requests/minute | Requests/day |
|---|---|---|
| Starter | 60 | 1,000 |
| Pro | 300 | 50,000 |
| Business | 600 | 200,000 |
| Enterprise | Custom | Custom |
Rate limit headers are included in all responses:
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 299
X-RateLimit-Reset: 1705312800Detailed Endpoint Documentation
Explore detailed documentation for each API endpoint: