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
| Field | Type | Description |
|---|---|---|
id | integer | The unique internal identifier for the user. |
username | string | The unique handle/username of the user (e.g. sagar). |
email | string | The unique email address of the user. |
status | string | The account status (e.g., PENDING_PROFILE, ACTIVE, INACTIVE). |
isActive | boolean | Indicates if the user account is active. |
role | string | The authorization role (e.g., USER, ADMIN). |
createdAt | string | Timestamp (ISO 8601) when the user was created. |
updatedAt | string | Timestamp (ISO 8601) when the user was last updated. |
contact | object | Nested contact information details. |
contact.firstName | string | User's first name. |
contact.lastName | string | User's last name. |
contact.phone | string | User's phone number without country code. |
contact.phoneCountryCode | string | User's country code prefix (e.g. +91). |
isInPersonVerified | boolean | A 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
| Field | Type | Description |
|---|---|---|
id | integer | The unique internal identifier for the template. |
uuid | string | The unique UUID of the verification template. |
name | string | Display name of the template. |
slug | string | Unique machine-readable slug identifier. |
description | string | Detail description of the template scope. |
applicationPolicy | integer | Application rule policy (e.g. 1 = STRICTEST_WINS). |
type | integer | Template type flag (e.g., 1 = SYSTEM, 2 = CUSTOM). |
isActive | boolean | Whether the template is currently active and selectable. |
requiresInPersonVerification | boolean | Whether this template requires verification checks to be completed physically/in-person. |
fields | array | List 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
| Field | Type | Description |
|---|---|---|
id | integer | Internal field identifier. |
uuid | string | The unique UUID of the field instance. |
displayOrder | integer | The order in which the field is displayed in forms. |
label | string | The display text label for the field shown to users. |
fieldScope | integer | Field boundary context scope enum. |
isRequired | boolean | Whether the field requires input value before submission. |
fileValidation | object | Contains rules for file uploads (e.g., allowed extensions). Null if not a file field. |
fileValidation.viewValidation | boolean | Whether file preview validation is enabled. |
fileValidation.allowedExtensions | array | Allowed 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
| Field | Type | Description |
|---|---|---|
id | integer | Internal identifier. |
verificationUuid | string | Unique public-facing UUID of the verification request. |
title | string | Title/name of the verification request. |
description | string | Instruction description for the request. |
status | string | Request status. e.g. PENDING, APPROVED, REJECTED. |
isSuspicious | boolean | Safety flag indicating if the verification triggered anti-tampering heuristics. |
metadata | object | JSON map containing arbitrary key-value custom metadata. |
createdAt | string | Timestamp when the request was initiated. |
updatedAt | string | Timestamp when the request was last updated. |
responseValues | array | Filled responses matching text fields of the template. |
responseMedia | array | Uploaded media mapping file objects to fields. |
attachments | array | List 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"
}
]
}