Skip to content

Nominees

Nominees are individuals authorized to act on a data principal’s behalf when exercising privacy rights — for example, a legal guardian, spouse, or attorney. Each nominee record captures the relationship, contact details, and purpose of appointment. Nominees start with a "pending" status and can be updated or removed at any time.

All endpoints authenticate with X-API-Key.


List nominees for a user

GET /nominee/user/{user_id}

Retrieve all nominees registered for a specific user, ordered by creation date descending.

Path parameters

ParameterTypeRequiredDescription
user_idstringYesThe client_user_id of the user whose nominees you want to retrieve

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour tenant API key

Response

200 OK — an array of UserNominee objects. Returns an empty array if the user has no registered nominees.

FieldTypeDescription
idstringUUID of the nominee record
client_user_idstringYour application’s identifier for the data principal
nominee_namestringFull name of the nominee
nominee_emailstringEmail address of the nominee
nominee_mobilestringMobile phone number of the nominee
relationshipstringRelationship to the data principal (for example, "spouse" or "legal_guardian")
purpose_of_appointmentstring or nullDescription of why this nominee was appointed
statusstringVerification status: "pending", "verified", or "rejected"
verified_atstring or nullISO 8601 timestamp of when the nominee was verified
created_atstringISO 8601 creation timestamp
updated_atstringISO 8601 timestamp of the most recent update
Terminal window
curl --request GET \
--url https://api.truConsent.io/nominee/user/usr_abc123 \
--header "X-API-Key: YOUR_API_KEY"
[
{
"id": "d4e5f6a7-b8c9-0123-defg-345678901234",
"client_user_id": "usr_abc123",
"nominee_name": "Jane Doe",
"nominee_email": "jane.doe@example.com",
"nominee_mobile": "+919876543210",
"relationship": "spouse",
"purpose_of_appointment": "Acting on behalf during medical treatment",
"status": "pending",
"verified_at": null,
"created_at": "2024-10-15T09:00:00",
"updated_at": "2024-10-15T09:00:00"
}
]

Register a nominee

POST /nominee

Register a new nominee for a data principal. The record is created with a status of "pending" pending verification.

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour tenant API key

Body

FieldTypeRequiredDescription
user_idstringYesYour application’s identifier for the data principal. Stored as client_user_id.
nominee_namestringYesFull name of the nominee
nominee_emailstringYesEmail address of the nominee
nominee_mobilestringYesMobile phone number of the nominee
relationshipstringYesRelationship between the nominee and the data principal
purpose_of_appointmentstringNoOptional description of why this nominee is being appointed

Response

201 Created — the newly created UserNominee record. status is always "pending" and verified_at is always null on creation.

Terminal window
curl --request POST \
--url https://api.truConsent.io/nominee \
--header "X-API-Key: YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"user_id": "usr_abc123",
"nominee_name": "Jane Doe",
"nominee_email": "jane.doe@example.com",
"nominee_mobile": "+919876543210",
"relationship": "spouse",
"purpose_of_appointment": "Acting on behalf during medical treatment"
}'
{
"id": "d4e5f6a7-b8c9-0123-defg-345678901234",
"client_user_id": "usr_abc123",
"nominee_name": "Jane Doe",
"nominee_email": "jane.doe@example.com",
"nominee_mobile": "+919876543210",
"relationship": "spouse",
"purpose_of_appointment": "Acting on behalf during medical treatment",
"status": "pending",
"verified_at": null,
"created_at": "2024-10-15T09:00:00",
"updated_at": "2024-10-15T09:00:00"
}

Update a nominee

PUT /nominee/{nominee_id}

Update one or more fields on an existing nominee record. Only the fields listed below are accepted. At least one valid field must be provided.

Path parameters

ParameterTypeRequiredDescription
nominee_idstringYesUUID of the nominee record to update

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour tenant API key

Body

All fields are optional — provide only the fields you want to change.

FieldTypeDescription
nominee_namestringUpdated full name
nominee_emailstringUpdated email address
nominee_mobilestringUpdated mobile number
relationshipstringUpdated relationship description
purpose_of_appointmentstringUpdated purpose of appointment
statusstringUpdated verification status

Response

200 OK — the full updated UserNominee record.

Terminal window
curl --request PUT \
--url https://api.truConsent.io/nominee/d4e5f6a7-b8c9-0123-defg-345678901234 \
--header "X-API-Key: YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{ "status": "verified" }'
{
"id": "d4e5f6a7-b8c9-0123-defg-345678901234",
"client_user_id": "usr_abc123",
"nominee_name": "Jane Doe",
"nominee_email": "jane.doe@example.com",
"nominee_mobile": "+919876543210",
"relationship": "spouse",
"purpose_of_appointment": "Acting on behalf during medical treatment",
"status": "verified",
"verified_at": null,
"created_at": "2024-10-15T09:00:00",
"updated_at": "2024-10-15T10:15:00"
}

Delete a nominee

DELETE /nominee/{nominee_id}

Permanently remove a nominee record. This action cannot be undone.

Path parameters

ParameterTypeRequiredDescription
nominee_idstringYesUUID of the nominee record to delete

Headers

HeaderTypeRequiredDescription
X-API-KeystringYesYour tenant API key

Response

200 OK

Terminal window
curl --request DELETE \
--url https://api.truConsent.io/nominee/d4e5f6a7-b8c9-0123-defg-345678901234 \
--header "X-API-Key: YOUR_API_KEY"
{ "message": "Nominee deleted successfully" }

Errors

StatusDescription
400Request body failed validation, or no valid fields were provided for an update
404No nominee with the given UUID exists (PUT and DELETE only)
500Unexpected server error