Overview
Consenza exposes a consent API for regulated digital identity and data-sharing workflows across business, enterprise, and partner integrations.
A secure and structured API for creating, reviewing, and auditing consent decisions across regulated digital environments.
Authorization: Bearer <oauth2-access-token>Content-Type: application/jsonX-Correlation-ID: unique-request-idcurl https://api.consenza.com/v1/consents -H "Authorization: Bearer <oauth2-access-token>" -H "Content-Type: application/json" -H "X-Correlation-ID: unique-request-id" -d '{
"subject": "subject-identifier",
"subjectMobileNumber": "255700000000",
"requester": "consent-requester",
"provider": "provider-code",
"purpose": {
"code": "ACCOUNT_ACCESS"
}
}'{
"consentId": "CNZ-4C800607",
"status": "PENDING",
"message": "Consent request created successfully.",
"correlationId": "3f3f5d4c-1c0d-4b99-8a57-8b7d9d1b31f9"
}Consenza provides a secure, auditable API that connects applications, enterprise teams, and partners to manage consent decisions in a compliant and consistent way.
Consenza exposes a consent API for regulated digital identity and data-sharing workflows across business, enterprise, and partner integrations.
The API allows authorized systems to create, review, revoke, and audit consent records while preserving a traceable compliance trail.
This reference is intended for developers, product teams, operations engineers, and compliance stakeholders implementing or verifying consent workflows.
Use the following flow to obtain credentials, authenticate, submit a request, and monitor the consent lifecycle.
Contact the Consenza team to obtain OAuth2 credentials and your environment-specific base URL.
Exchange your client credentials for a bearer token and send it in every protected request.
Create a consent record using the JSON payload structure shown in the examples below.
Monitor request status, audit entries, and revocation events to maintain operational visibility.
These methods are the foundation of the consent workflow and are designed to remain consistent across internal and external implementations.
Authorization: Bearer <oauth2-access-token>Content-Type: application/jsonX-Correlation-ID: unique-request-idcurl https://api.consenza.com/v1/consents -H "Authorization: Bearer <oauth2-access-token>" -H "Content-Type: application/json" -H "X-Correlation-ID: unique-request-id" -d '{
"subject": "subject-identifier",
"subjectMobileNumber": "255700000000",
"requester": "consent-requester",
"provider": "provider-code",
"purpose": {
"code": "ACCOUNT_ACCESS"
}
}'{
"consentId": "CNZ-4C800607",
"status": "PENDING",
"message": "Consent request created successfully.",
"correlationId": "3f3f5d4c-1c0d-4b99-8a57-8b7d9d1b31f9"
}Create consent
Create a new consent record with subject, provider, purpose, and scope details.
List consents
Fetch the active or historical consent record set for a known subject.
Revoke consent
End an active consent and store the decision alongside the audit trail.
curl -X POST https://api.consenza.com/v1/consents -H "Authorization: Bearer <token>" -H "Content-Type: application/json" -H "X-Correlation-ID: trace-123" -d '{
"subject": "subject-identifier",
"provider": "provider-code",
"purpose": { "code": "ACCOUNT_ACCESS" }
}'const response = await fetch("https://api.consenza.com/v1/consents", {
method: "POST",
headers: {
Authorization: "Bearer <token>",
"Content-Type": "application/json",
"X-Correlation-ID": "trace-123"
},
body: JSON.stringify({
subject: "subject-identifier",
provider: "provider-code",
purpose: { code: "ACCOUNT_ACCESS" }
})
});import requests
response = requests.post(
"https://api.consenza.com/v1/consents",
headers={
"Authorization": "Bearer <token>",
"Content-Type": "application/json",
"X-Correlation-ID": "trace-123",
},
json={
"subject": "subject-identifier",
"provider": "provider-code",
"purpose": {"code": "ACCOUNT_ACCESS"},
},
)The bearer token is missing, expired, or rejected by the gateway.
Required payload fields are missing or the JSON schema does not match the contract.
The calling client is authenticated but not permitted to perform this operation.
The API rate limit was exceeded; retry after the interval returned in the response headers.
Added stronger audit traceability and improved consent status synchronization.
Improved request validation and standardized correlation ID handling for all consent operations.
Introduced revoke and restore flows for enterprise lifecycle management.