Skip to main content

Schemas & Entities

This page documents the core data models (entities) returned by the GetTru Public API. Instead of documenting these properties on every single API endpoint, developers can refer to this page for object definitions, types, and field meanings.


1. User Entity​

Represents an organization member profile.

Fields​

FieldTypeDescription
idintegerThe unique internal identifier for the user.
usernamestringThe unique handle/username of the user (e.g. sagar).
emailstringThe unique email address of the user.
statusstringThe account status (e.g., PENDING_PROFILE, ACTIVE, INACTIVE).
isActivebooleanIndicates if the user account is active.
rolestringThe authorization role (e.g., USER, ADMIN).
createdAtstringTimestamp (ISO 8601) when the user was created.
updatedAtstringTimestamp (ISO 8601) when the user was last updated.
contactobjectNested contact information details.
contact.firstNamestringUser's first name.
contact.lastNamestringUser's last name.
contact.phonestringUser's phone number without country code.
contact.phoneCountryCodestringUser's country code prefix (e.g. +91).
isInPersonVerifiedbooleanA computed field showing if the user has completed in-person identity verification.

JSON Representation​

{
"id": 4,
"username": "sagar",
"email": "sagar@trueapp.co",
"status": "ACTIVE",
"isActive": true,
"role": "USER",
"createdAt": "2026-08-04T08:00:00.000Z",
"updatedAt": "2026-08-04T08:15:00.000Z",
"contact": {
"firstName": "Sagar",
"lastName": "Sharma",
"phone": "9988776655",
"phoneCountryCode": "+91"
},
"isInPersonVerified": false
}

2. Template Entity​

Represents a verification request blueprint that dictates which fields and attachments are collected.

Fields​

FieldTypeDescription
idintegerThe unique internal identifier for the template.
uuidstringThe unique UUID of the verification template.
namestringDisplay name of the template.
slugstringUnique machine-readable slug identifier.
descriptionstringDetail description of the template scope.
applicationPolicyintegerApplication rule policy (e.g. 1 = STRICTEST_WINS).
typeintegerTemplate type flag (e.g., 1 = SYSTEM, 2 = CUSTOM).
isActivebooleanWhether the template is currently active and selectable.
requiresInPersonVerificationbooleanWhether this template requires verification checks to be completed physically/in-person.
fieldsarrayList of input fields mapped to this template (see TemplateInputField Entity).

JSON Representation​

{
"id": 105,
"uuid": "6f39727a-8a9e-44a6-97aa-2542456c855e",
"name": "File/Photo/Receipt Verification",
"slug": "file-photo-receipt-verification",
"description": "Attach proof and verify capture/device",
"applicationPolicy": 1,
"type": 2,
"isActive": true,
"requiresInPersonVerification": false,
"fields": []
}

3. TemplateInputField Entity​

Defines an individual input field element configured inside a verification template.

Fields​

FieldTypeDescription
idintegerInternal field identifier.
uuidstringThe unique UUID of the field instance.
displayOrderintegerThe order in which the field is displayed in forms.
labelstringThe display text label for the field shown to users.
fieldScopeintegerField boundary context scope enum.
isRequiredbooleanWhether the field requires input value before submission.
fileValidationobjectContains rules for file uploads (e.g., allowed extensions). Null if not a file field.
fileValidation.viewValidationbooleanWhether file preview validation is enabled.
fileValidation.allowedExtensionsarrayAllowed file extension suffixes (e.g., ["jpg", "png", "pdf"]).

JSON Representation​

{
"id": 12,
"uuid": "e7317414-5232-4915-a2fb-c01d8758a149",
"displayOrder": 0,
"label": "Attach file or photo",
"fieldScope": 1,
"isRequired": true,
"fileValidation": {
"viewValidation": true,
"allowedExtensions": ["jpg", "png", "pdf"]
}
}

4. VerificationRequest Entity​

Represents an identity check request sent to a user containing values and uploaded media.

Fields​

FieldTypeDescription
idintegerInternal identifier.
verificationUuidstringUnique public-facing UUID of the verification request.
titlestringTitle/name of the verification request.
descriptionstringInstruction description for the request.
statusstringRequest status. e.g. PENDING, APPROVED, REJECTED.
isSuspiciousbooleanSafety flag indicating if the verification triggered anti-tampering heuristics.
metadataobjectJSON map containing arbitrary key-value custom metadata.
createdAtstringTimestamp when the request was initiated.
updatedAtstringTimestamp when the request was last updated.
responseValuesarrayFilled responses matching text fields of the template.
responseMediaarrayUploaded media mapping file objects to fields.
attachmentsarrayList of uploaded files attached to this request.

JSON Representation​

{
"id": 148,
"verificationUuid": "6fc1dabb-6c88-4676-a7cc-fb71c7ceb5ca",
"title": "Verify Invoice Number",
"description": "Please review the attached invoice.",
"status": "PENDING",
"isSuspicious": false,
"metadata": {
"department": "Finance"
},
"createdAt": "2026-08-04T08:00:00.000Z",
"updatedAt": "2026-08-04T08:00:00.000Z",
"responseValues": [
{
"fieldUuid": "b4d288b9-8e6d-443e-8764-b9c162357216",
"label": "Your Message",
"value": "Initial placeholder text message"
}
],
"attachments": [
{
"mediaUuid": "9b1deb4d-3b7d-4ba6-8c43-da583d736db2",
"fileName": "invoice.pdf",
"publicUrl": "http://localhost:3000/uploads/invoice.pdf",
"mimeType": "application/pdf",
"fileSize": 124500
}
],
"responseMedia": [
{
"fieldUuid": "e7317414-5232-4915-a2fb-c01d8758a149",
"label": "Attach file or photo",
"mediaUuid": "9b1deb4d-3b7d-4ba6-8c43-da583d736db2",
"fileName": "invoice.pdf",
"publicUrl": "http://localhost:3000/uploads/invoice.pdf"
}
]
}