Skip to main content

Consent management API v2

Download OpenAPI (YAML)Version v2

Base URL: /t/carbon.super/api/identity/consent-mgt/v2.0

The WSO2 Identity Server Consent Management REST API v2 (version v2).

Download the OpenAPI definition (YAML)

Security schemes​

BasicAuth: HTTP basic

OAuth2: oauth2

authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize

Purposes​

Consent purposes (use cases)

List all purposes​

GET /purposes

Retrieve all purposes with optional filtering.
Scope(Permission) required: internal_consent_mgt_purpose_view

Parameters

NameInTypeRequiredDescription
filterquerystring

Filter purposes by supported attributes: name, type. Supports 'sw' (starts with), 'co' (contains), 'ew' (ends with), and 'eq' (equals) operations. Combine multiple conditions with the 'and' logical operator. Examples:

  • filter=name eq Marketing
  • filter=type co Policy
  • filter=name sw Data and type eq Policy
limitqueryinteger

Maximum number of records to return.

Default: 10

afterquerystring

Base64 encoded cursor value for forward pagination.

beforequerystring

Base64 encoded cursor value for backward pagination.

Responses

CodeDescriptionSchema
200

List of purposes

PurposeListResponse
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
500

Server Error

ErrorDTO

Create a new purpose​

POST /purposes

Create a new consent purpose (e.g., "Privacy Policy", "Marketing").
Scope(Permission) required: internal_consent_mgt_purpose_create

Request body (required): application/json

Schema: PurposeCreateRequest

6 properties
NameTypeRequiredDescription
namestringYes

Name of the purpose

descriptionstring

Human-readable description of the purpose

typestringYes

Purpose type classification

versionstringYes

Initial version label for the purpose (e.g., "v1.0")

elementsarray of PurposeElementBinding

Consent elements associated with this purpose

propertiesobject

Free-form key-value properties applied to the initial version snapshot; these properties are persisted with the initial version.

Responses

CodeDescriptionSchema
201

Purpose created successfully

PurposeDTO
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
409

Conflict

ErrorDTO
500

Server Error

ErrorDTO

Get a purpose​

GET /purposes/{purposeId}

Retrieve a specific purpose by ID.
Scope(Permission) required: internal_consent_mgt_purpose_view

Parameters

NameInTypeRequiredDescription
purposeIdpathstringYes

ID of the purpose.

Responses

CodeDescriptionSchema
200

Purpose details

PurposeDTO
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
404

Not Found

ErrorDTO
500

Server Error

ErrorDTO

Delete a purpose​

DEL /purposes/{purposeId}

Delete a purpose by ID.
Scope(Permission) required: internal_consent_mgt_purpose_delete

Parameters

NameInTypeRequiredDescription
purposeIdpathstringYes

ID of the purpose.

Responses

CodeDescriptionSchema
204

Purpose deleted successfully

400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
404

Not Found

ErrorDTO
409

Conflict

ErrorDTO
500

Server Error

ErrorDTO

List purpose versions​

GET /purposes/{purposeId}/versions

Retrieve all versions of a specific purpose with pagination support.
Scope(Permission) required: internal_consent_mgt_purpose_view

Parameters

NameInTypeRequiredDescription
purposeIdpathstringYes

ID of the purpose.

limitqueryinteger

Maximum number of records to return.

Default: 10

afterquerystring

Base64 encoded cursor value for forward pagination.

beforequerystring

Base64 encoded cursor value for backward pagination.

Responses

CodeDescriptionSchema
200

List of purpose versions

PurposeVersionListResponse
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
404

Not Found

ErrorDTO
500

Server Error

ErrorDTO

Create a new purpose version​

POST /purposes/{purposeId}/versions

Add a new version to an existing purpose.
Scope(Permission) required: internal_consent_mgt_purpose_update

Parameters

NameInTypeRequiredDescription
purposeIdpathstringYes

ID of the purpose.

Request body (required): application/json

Schema: PurposeVersionCreateRequest

5 properties
NameTypeRequiredDescription
versionstringYes

Version label (e.g., "v2.0", "2024-Q1")

setAsLatestboolean

Whether to set this version as the latest version upon creation

Default: false

descriptionstring

Description of changes in this version

elementsarray of PurposeElementBinding

Updated list of consent elements for this version

propertiesobject

Free-form key-value properties for this version. Immutable after creation.

Responses

CodeDescriptionSchema
201

Purpose version created successfully

PurposeVersionDTO
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
404

Not Found

ErrorDTO
409

Conflict

ErrorDTO
500

Server Error

ErrorDTO

Set the latest version of a purpose​

PUT /purposes/{purposeId}/versions/latest

Designate a specific version as the "latest" version of a purpose. The latest version is returned in GET /purposes/{purposeId} and used when creating new consents.
Scope(Permission) required: internal_consent_mgt_purpose_update

Parameters

NameInTypeRequiredDescription
purposeIdpathstringYes

ID of the purpose.

Request body (required): application/json

Schema: SetLatestVersionRequest

1 property
NameTypeRequiredDescription
idstringYes

ID of the purpose version to set as the latest version

Responses

CodeDescriptionSchema
204

Latest version updated successfully

400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
404

Not Found

ErrorDTO
500

Server Error

ErrorDTO

Get a purpose version​

GET /purposes/{purposeId}/versions/{versionId}

Retrieve a specific version of a purpose.
Scope(Permission) required: internal_consent_mgt_purpose_view

Parameters

NameInTypeRequiredDescription
purposeIdpathstringYes

ID of the purpose.

versionIdpathstringYes

ID of the purpose version.

Responses

CodeDescriptionSchema
200

Purpose version details

PurposeVersionDTO
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
404

Not Found

ErrorDTO
500

Server Error

ErrorDTO

Delete a purpose version​

DEL /purposes/{purposeId}/versions/{versionId}

Delete a specific version of a purpose.
Scope(Permission) required: internal_consent_mgt_purpose_delete

Parameters

NameInTypeRequiredDescription
purposeIdpathstringYes

ID of the purpose.

versionIdpathstringYes

ID of the purpose version.

Responses

CodeDescriptionSchema
204

Purpose version deleted successfully

400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
404

Not Found

ErrorDTO
409

Conflict

ErrorDTO
500

Server Error

ErrorDTO

Elements​

Consent data elements

List consent elements​

GET /elements

Retrieve all consent elements with optional filtering.
Scope(Permission) required: internal_consent_mgt_element_view

Parameters

NameInTypeRequiredDescription
filterquerystring

Filter elements by supported attributes: name. Supports 'sw' (starts with), 'co' (contains), 'ew' (ends with), and 'eq' (equals) operations. Combine multiple conditions with the 'and' logical operator. Examples:

  • filter=name eq email_address
  • filter=name co email
  • filter=name sw phone
limitqueryinteger

Maximum number of records to return.

Default: 10

afterquerystring

Base64 encoded cursor value for forward pagination.

beforequerystring

Base64 encoded cursor value for backward pagination.

Responses

CodeDescriptionSchema
200

List of elements

ElementListResponse
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
500

Server Error

ErrorDTO

Create a consent element​

POST /elements

Create a new consent element (e.g., "email_address", "phone_number").
Scope(Permission) required: internal_consent_mgt_element_create

Request body (required): application/json

Schema: ElementCreateRequest

4 properties
NameTypeRequiredDescription
namestringYes

Identifier/name of the consent element

displayNamestring

Human-readable display name

descriptionstring

Detailed description of the element

propertiesobject

Free-form key-value properties for this element.

Responses

CodeDescriptionSchema
201

Element created successfully

ElementDTO
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
409

Conflict

ErrorDTO
500

Server Error

ErrorDTO

Get a consent element​

GET /elements/{elementId}

Retrieve a specific consent element by ID.
Scope(Permission) required: internal_consent_mgt_element_view

Parameters

NameInTypeRequiredDescription
elementIdpathstringYes

ID of the consent element.

Responses

CodeDescriptionSchema
200

Element details

ElementDTO
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
404

Not Found

ErrorDTO
500

Server Error

ErrorDTO

Delete a consent element​

DEL /elements/{elementId}

Delete a consent element by ID.
Scope(Permission) required: internal_consent_mgt_element_delete

Parameters

NameInTypeRequiredDescription
elementIdpathstringYes

ID of the consent element.

Responses

CodeDescriptionSchema
204

Element deleted successfully

400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
404

Not Found

ErrorDTO
409

Conflict

ErrorDTO
500

Server Error

ErrorDTO

Consents​

User consent records

List consent records​

GET /consents

Retrieve consent records with optional filtering.
Scope(Permission) required: internal_consent_mgt_consent_view

Parameters

NameInTypeRequiredDescription
userIdquerystring

Username whose consents are retrieved. Involvement is set by relation. Requires relation.

relationquerystring

Relation of userId to the retrieved consents. SUBJECT returns consents given by the user, AUTHORIZER returns consents the user is listed as an authorizer of, ANY returns both. Requires userId.

Allowed values: SUBJECT, AUTHORIZER, ANY

serviceIdquerystring

Filter by service ID.

statequerystring

Filter consents by state.

Allowed values: PENDING, ACTIVE, REJECTED, REVOKED, EXPIRED

purposeIdquerystring

Filter consents by purpose ID.

purposeVersionIdquerystring

Filter consents by specific purpose version ID.

filterquerystring

Filter consents by custom properties using dot notation properties.<key>, and by timestamp (milliseconds since epoch). Properties support 'sw' (starts with), 'co' (contains), 'ew' (ends with), and 'eq' (equals) operations. timestamp supports 'ge' (greater than or equals) and 'le' (less than or equals) operations. Combine multiple conditions with the 'and' logical operator. Examples:

  • filter=properties.dataCategory eq personal
  • filter=properties.region eq EU and properties.dataCategory eq personal
  • filter=timestamp ge 1744000000000 and timestamp le 1766383796000
attributesquerystring

Specifies the required attributes in the response as a comma-separated string. Supported values: purposes, authorizations, properties. Example: attributes=purposes,properties

limitqueryinteger

Maximum number of records to return.

Default: 10

afterquerystring

Base64 encoded cursor value for forward pagination.

beforequerystring

Base64 encoded cursor value for backward pagination.

Responses

CodeDescriptionSchema
200

List of consents

ConsentListResponse
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
500

Server Error

ErrorDTO

Create a consent record​

POST /consents

Record a consent on behalf of a subject user.
Scope(Permission) required: internal_consent_mgt_consent_create

Request body (required): application/json

Schema: ConsentCreateRequest

8 properties
NameTypeRequiredDescription
subjectIdstringYes

Username of the user giving consent.

serviceIdstringYes

Service requesting consent

languagestring

Language code for the consent

purposesarray of ConsentPurposeBindingYes

List of purposes and associated elements

statestring

Initial state of the consent. Use ACTIVE when the user accepts (default). Use REJECTED when the user explicitly declines an optional policy — this records that the user saw and skipped this version so it is not shown again until a new version is published. PENDING is set automatically when authorizations are provided and cannot be specified here.

Allowed values: ACTIVE, REJECTED. Default: ACTIVE

expiryTimeinteger (int64)

Milliseconds since epoch until which the consent is valid. If omitted, the consent does not expire.

authorizationsarray of AuthorizationEntry

Optional list of users who are expected to authorize this consent.

propertiesobject

Optional properties as key-value pairs

Responses

CodeDescriptionSchema
201

Consent recorded successfully

ConsentResponseDTO
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
409

Conflict

ErrorDTO
500

Server Error

ErrorDTO

Get a consent record​

GET /consents/{consentId}

Retrieve a specific consent record by consent ID.
Scope(Permission) required: internal_consent_mgt_consent_view

Parameters

NameInTypeRequiredDescription
consentIdpathstringYes

ID of the consent.

Responses

CodeDescriptionSchema
200

Consent record details

ConsentDTO
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
404

Not Found

ErrorDTO
500

Server Error

ErrorDTO

Update a consent record​

PATCH /consents/{consentId}

Update an existing consent record's expiry time, properties, and authorizations. All fields in the request body are optional; omit a field to leave that aspect of the consent unchanged. expiryTime sets or clears the expiry, properties replaces the full property map, and authorizations upserts the listed users — adding them as authorizers if absent or overriding their state if present.
Scope(Permission) required: internal_consent_mgt_consent_update

Parameters

NameInTypeRequiredDescription
consentIdpathstringYes

ID of the consent.

Request body (required): application/json

Schema: ConsentUpdateRequest

3 properties
NameTypeRequiredDescription
expiryTimeinteger (int64)

When present, sets or extends the consent's expiry time to the given milliseconds-since-epoch timestamp. Omit to leave the existing expiry unchanged.

propertiesobject

When present, replaces the consent's full property map. Omit to leave existing properties unchanged.

authorizationsarray of AuthorizationUpdateEntry

When present, upserts each listed user's authorization — adds the user as an authorizer if absent, or overrides the existing authorization state if present. Users not listed are left untouched.

Responses

CodeDescriptionSchema
200

Consent updated successfully

ConsentDTO
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
404

Not Found

ErrorDTO
500

Server Error

ErrorDTO

Revoke a consent​

POST /consents/{consentId}/revoke

Revokes the consent. Idempotent — if the consent is already revoked, returns 204 with no error.
Scope(Permission) required: internal_consent_mgt_consent_update

Parameters

NameInTypeRequiredDescription
consentIdpathstringYes

ID of the consent.

Responses

CodeDescriptionSchema
204

Consent revoked successfully

400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
404

Not Found

ErrorDTO
500

Server Error

ErrorDTO

Get the current state of a consent object​

GET /consents/{consentId}/validate

Returns the current state of a consent record, performing a lazy expiry check.
Scope(Permission) required: internal_consent_mgt_consent_view

Parameters

NameInTypeRequiredDescription
consentIdpathstringYes

ID of the consent.

Responses

CodeDescriptionSchema
200

Validation result

ConsentValidateResponse
400

Bad Request

ErrorDTO
401

Unauthorized

ErrorDTO
403

Forbidden

ErrorDTO
404

Not Found

ErrorDTO
500

Server Error

ErrorDTO

Schemas​

PurposeCreateRequest​

Type: object

6 properties
NameTypeRequiredDescription
namestringYes

Name of the purpose

descriptionstring

Human-readable description of the purpose

typestringYes

Purpose type classification

versionstringYes

Initial version label for the purpose (e.g., "v1.0")

elementsarray of PurposeElementBinding

Consent elements associated with this purpose

propertiesobject

Free-form key-value properties applied to the initial version snapshot; these properties are persisted with the initial version.

PurposeElementBinding​

Type: object

2 properties
NameTypeRequiredDescription
idstringYes

ID of the consent element

mandatoryboolean

Whether this element is mandatory for the purpose

PurposeVersionCreateRequest​

Type: object

5 properties
NameTypeRequiredDescription
versionstringYes

Version label (e.g., "v2.0", "2024-Q1")

setAsLatestboolean

Whether to set this version as the latest version upon creation

Default: false

descriptionstring

Description of changes in this version

elementsarray of PurposeElementBinding

Updated list of consent elements for this version

propertiesobject

Free-form key-value properties for this version. Immutable after creation.

SetLatestVersionRequest​

Type: object

1 property
NameTypeRequiredDescription
idstringYes

ID of the purpose version to set as the latest version

ElementCreateRequest​

Type: object

4 properties
NameTypeRequiredDescription
namestringYes

Identifier/name of the consent element

displayNamestring

Human-readable display name

descriptionstring

Detailed description of the element

propertiesobject

Free-form key-value properties for this element.

ConsentCreateRequest​

Type: object

8 properties
NameTypeRequiredDescription
subjectIdstringYes

Username of the user giving consent.

serviceIdstringYes

Service requesting consent

languagestring

Language code for the consent

purposesarray of ConsentPurposeBindingYes

List of purposes and associated elements

statestring

Initial state of the consent. Use ACTIVE when the user accepts (default). Use REJECTED when the user explicitly declines an optional policy — this records that the user saw and skipped this version so it is not shown again until a new version is published. PENDING is set automatically when authorizations are provided and cannot be specified here.

Allowed values: ACTIVE, REJECTED. Default: ACTIVE

expiryTimeinteger (int64)

Milliseconds since epoch until which the consent is valid. If omitted, the consent does not expire.

authorizationsarray of AuthorizationEntry

Optional list of users who are expected to authorize this consent.

propertiesobject

Optional properties as key-value pairs

ConsentPurposeBinding​

Type: object

2 properties
NameTypeRequiredDescription
idstringYes

ID of the purpose (will use latest version)

elementsarray of ElementTerminationInfoYes

Consent elements for this purpose

ElementTerminationInfo​

Type: object

1 property
NameTypeRequiredDescription
idstringYes

ID of the consent element

ConsentUpdateRequest​

Type: object

Admin update of an existing consent. All fields are optional; omit a field to leave that aspect of the consent unchanged.

3 properties
NameTypeRequiredDescription
expiryTimeinteger (int64)

When present, sets or extends the consent's expiry time to the given milliseconds-since-epoch timestamp. Omit to leave the existing expiry unchanged.

propertiesobject

When present, replaces the consent's full property map. Omit to leave existing properties unchanged.

authorizationsarray of AuthorizationUpdateEntry

When present, upserts each listed user's authorization — adds the user as an authorizer if absent, or overrides the existing authorization state if present. Users not listed are left untouched.

AuthorizationUpdateEntry​

Type: object

3 properties
NameTypeRequiredDescription
userIdstringYes

Username of the authorizer to add or update

typestring

Type of the authorization principal. Used when adding a new authorizer.

statestring

Authorization state to set. Required when overriding an existing authorizer; for a newly added authorizer, omit to leave it pending.

Allowed values: APPROVED, REJECTED, REVOKED

PurposeDTO​

Type: object

10 properties
NameTypeRequiredDescription
idstring

ID of the purpose

namestring

Name of the purpose

descriptionstring

Description of the purpose

typestring

Purpose type classification

latestVersionobject

Latest version of this purpose

latestVersion.idstring

ID of the latest version

latestVersion.versionstring

Version label

elementsarray of PurposeElementDTO

Consent elements associated with this purpose

propertiesobject

Properties from the latest version of this purpose.

tenantDomainstring

Tenant domain that owns this purpose

PurposeListResponse​

Type: object

3 properties
NameTypeRequiredDescription
totalResultsinteger

Number of results returned in the current page

linksarray of PaginationLink

Pagination links for next/previous pages

Purposesarray of PurposeSummaryDTO

List of purposes

PurposeSummaryDTO​

Type: object

Minimal purpose information for list responses

8 properties
NameTypeRequiredDescription
idstring
namestring
descriptionstring
typestring
latestVersionobject

Latest version of this purpose

latestVersion.idstring

ID of the latest version

latestVersion.versionstring

Version label

tenantDomainstring

Tenant domain that owns this purpose

PurposeElementDTO​

Type: object

5 properties
NameTypeRequiredDescription
idstring

ID of the element

namestringYes

Name/identifier of the element

displayNamestring

Human-readable display name

descriptionstring

Detailed description

mandatorybooleanYes

Whether this element is mandatory

PurposeVersionDTO​

Type: object

5 properties
NameTypeRequiredDescription
idstring

ID of the purpose version

versionstring

Version label

descriptionstring

Description of changes in this version

elementsarray of PurposeElementDTO

Consent elements in this version

propertiesobject

Free-form key-value properties stored with this version.

PurposeVersionSummaryDTO​

Type: object

Minimal purpose version information for list responses

3 properties
NameTypeRequiredDescription
idstring

ID of the purpose version

versionstring

Version label

descriptionstring

Description of changes in this version

PurposeVersionListResponse​

Type: object

Paginated list of purpose versions

3 properties
NameTypeRequiredDescription
totalResultsinteger

Number of results returned in the current page

linksarray of PaginationLink

Pagination links for next/previous pages

Versionsarray of PurposeVersionSummaryDTO

List of purpose versions

ElementDTO​

Type: object

6 properties
NameTypeRequiredDescription
idstring

ID of the element

namestringYes

Name/identifier of the element

displayNamestring

Human-readable display name

descriptionstring

Detailed description

propertiesobject

Free-form key-value properties for this element.

tenantDomainstring

Tenant domain that owns this element

ElementListResponse​

Type: object

3 properties
NameTypeRequiredDescription
totalResultsinteger

Number of results returned in the current page

linksarray of PaginationLink

Pagination links for next/previous pages

Elementsarray of ElementDTO

List of consent elements

ConsentResponseDTO​

Type: object

Response returned when consent is recorded

4 properties
NameTypeRequiredDescription
idstring

Unique identifier for this consent

languagestring

Language code of the consent

subjectIdstring

Username of the user giving consent

tenantDomainstring

Tenant domain

ConsentListResponse​

Type: object

3 properties
NameTypeRequiredDescription
totalResultsinteger

Number of results returned in the current page

linksarray of PaginationLink

Pagination links for next/previous pages

Consentsarray of ConsentSummaryDTO

List of consent records

ConsentSummaryDTO​

Type: object

Minimal consent information for list responses

9 properties
NameTypeRequiredDescription
idstring

Unique identifier for the consent

subjectIdstring

Username of the user giving consent.

serviceIdstring
statestring

Allowed values: PENDING, ACTIVE, REJECTED, REVOKED, EXPIRED

timestampinteger (int64)

Milliseconds since epoch when the consent was created.

expiryTimeinteger (int64)

Milliseconds since epoch until which the consent is valid. Null if no expiry.

purposesarray of ConsentedPurposeSummaryDTO

Purposes in this consent. Returned only when requested via attributes.

authorizationsarray of AuthorizationDTO

Authorization records associated with this consent. Returned only when requested via attributes.

propertiesobject

Properties associated with this consent. Returned only when requested via attributes.

ConsentDTO​

Type: object

Complete consent details

10 properties
NameTypeRequiredDescription
timestampinteger (int64)

Timestamp of consent (milliseconds since epoch)

idstring

Unique identifier of the consent

languagestring

Language code

subjectIdstring

Username of the user giving consent

serviceIdstring

Service name

statestring

PENDING if awaiting approvals, ACTIVE if all accepted, REJECTED if any rejected before activation, REVOKED if any user revoked after activation, EXPIRED if expiryTime has passed.

Allowed values: PENDING, ACTIVE, REJECTED, REVOKED, EXPIRED

expiryTimeinteger (int64)

Milliseconds since epoch until which the consent is valid. Null if no expiry.

purposesarray of ConsentedPurposeDTO

Purposes and elements in this consent

authorizationsarray of AuthorizationDTO

Authorization records associated with this consent

propertiesobject

Properties associated with this consent

ConsentedPurposeDTO​

Type: object

Purpose information within a consent

7 properties
NameTypeRequiredDescription
namestring
idstring
typestring

Purpose type classification

versionIdstring

UUID of the purpose version that was consented

versionstring

Human-readable version label (e.g. "2"). Null for pre-versioning consents.

elementsarray of ConsentedElementDTO

Consented elements for this purpose

propertiesobject

Key-value properties from the consented purpose version

ConsentedPurposeSummaryDTO​

Type: object

Minimal consented purpose information for list responses

5 properties
NameTypeRequiredDescription
namestring
idstring
typestring

Purpose type classification

versionIdstring

UUID of the purpose version that was consented

versionstring

Human-readable version label (e.g. "2"). Null for pre-versioning consents.

ConsentedElementDTO​

Type: object

Element information within a consented purpose

3 properties
NameTypeRequiredDescription
idstringYes
namestringYes
displayNamestring

AuthorizationCreateRequest​

Type: object

1 property
NameTypeRequiredDescription
statestring

Authorization state.

Allowed values: APPROVED, REJECTED. Default: APPROVED

AuthorizationEntry​

Type: object

2 properties
NameTypeRequiredDescription
userIdstringYes

Username of the user expected to authorize this consent

typestring

Type of the authorization principal

AuthorizationDTO​

Type: object

3 properties
NameTypeRequiredDescription
userIdstring

Username of the user who performed this authorization

statestring

Current state of this authorization

Allowed values: PENDING, APPROVED, REJECTED, REVOKED, EXPIRED

updatedTimeinteger (int64)

Milliseconds since epoch when this authorization was last updated

ConsentValidateResponse​

Type: object

2 properties
NameTypeRequiredDescription
statestring

Current state of the consent object.

Allowed values: PENDING, ACTIVE, REJECTED, REVOKED, EXPIRED

expiryTimeinteger (int64)

Milliseconds since epoch until which the consent is valid. Null if no expiry.

Type: object

2 properties
NameTypeRequiredDescription
relstring

Relationship — "next" for forward pagination, "previous" for backward

hrefstring

URL to retrieve the linked page

ErrorDTO​

Type: object

Error response

4 properties
NameTypeRequiredDescription
codestring

Error code

messagestring

Human-readable error message

descriptionstring

Detailed error description

traceIdstring

Trace ID for correlating errors in server logs

Was this page helpful?