API Reference
Developer-friendly API
RESTful API with comprehensive documentation. Integrate Cookied into your applications and workflows.
API Features
RESTful API
Standard REST API with JSON responses. Easy to integrate with any language or framework.
API Keys
Secure API key authentication. Generate and manage keys from your dashboard.
Webhooks
Real-time notifications for consent events. Configure webhooks for your integrations.
Comprehensive Docs
Complete API documentation with examples, code snippets, and interactive testing.
Rate Limiting
Generous rate limits with clear documentation. Contact us for higher limits.
SDK Support
Official SDKs for popular languages. Community SDKs available for more languages.
API Endpoints
Complete control over your websites and consent data
/v1/websitesList all websites
/v1/websitesCreate a new website
/v1/websites/{id}Get website details
/v1/websites/{id}Update website settings
/v1/websites/{id}Delete a website
/v1/websites/{id}/consentsGet consent records
/v1/websites/{id}/analyticsGet analytics data
/v1/webhooksCreate a webhook
Example Request
// Get all websites
curl -X GET https://api.cookied.io/v1/websites \
-H "Authorization: Bearer YOUR_API_KEY"
// Create a new website
curl -X POST https://api.cookied.io/v1/websites \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "example.com",
"name": "My Website"
}'
// Get consent records
curl -X GET https://api.cookied.io/v1/websites/{id}/consents \
-H "Authorization: Bearer YOUR_API_KEY"