Usage

The Consent Directory API allows developers, consent managers, and compliance systems to seamlessly integrate standardized consent purpose statements, data elements, and compliance metadata aligned with the Digital Personal Data Protection Act (DPDPA), 2023. It is designed to simplify consent management, interoperability, and audit readiness across platforms.

🔧 Base URL

https://api.consentfoundation.org/v1

All API requests must be made over HTTPS. Authentication is handled through API keys issued by the Consent Foundation.

Authentication

Include your API key in the request header:

Authorization: Bearer <your_api_key>

API Endpoints

🧩 Base URL

https://api.consentfoundation.org/v1

🔑 Authentication

All endpoints require an API key. Include it in the request header:

Authorization: Bearer <your_api_key>

1. 🔹 Search by Industry, Category, and Data Element

Description

Retrieve standardized consent purposes filtered by industry, category, or data element. Useful for CMPs and compliance systems to dynamically populate sector-specific or activity-based purposes.

Query Parameters

Name
Type
Required
Description

industry

string

Optional

Filter by industry sector, e.g. finance, insurance, healthcare, telecom

category

string

Optional

Filter by purpose category, e.g. marketing, onboarding, analytics, kyc

data_element

string

Optional

Search purposes involving specific data elements like email, PAN, or biometric

language

string

Optional

ISO language code (default: en)

limit

integer

Optional

Results per page (default: 20)

page

integer

Optional

Page number (default: 1)

Example Request

Example Response


Search by Statement or keywords

Description

Search for the closest standardized consent purpose by submitting a free-text consent statement. This endpoint uses semantic similarity and keyword mapping to identify the best-matching purpose under DPDPA.

Request Body

Response

Error Response

Standard error format for all endpoints:

Developer Notes

  • Versioning: All APIs follow semantic versioning. Current version: v1.

  • Rate Limits: 500 requests per minute per API key.

  • Error Handling: Standard error response:

Last updated