Get Template Details
Retrieves the input fields schema, types, rules, and validators for a specific template. See the Template Schema and TemplateInputField Schema for details on the objects returned.
Scope Required
read:templates
Path Parameters
| Field | Type | Description |
|---|---|---|
| uuid | string | The unique UUID of the verification template. |
Example Request
curl -X GET https://api.internal.gettru.app/public/v1/templates/6f39727a-8a9e-44a6-97aa-2542456c855e \
-H "Authorization: Bearer <ACCESS_TOKEN>"
Response
200 OK
{
"success": true,
"data": {
"uuid": "6f39727a-8a9e-44a6-97aa-2542456c855e",
"name": "File/Photo/Receipt Verification",
"slug": "file-photo-receipt-verification",
"description": "Attach proof and verify capture/device",
"fields": [
{
"uuid": "e7317414-5232-4915-a2fb-c01d8758a149",
"displayOrder": 0,
"label": "Attach file or photo",
"isRequired": true,
"fileValidation": {
"viewValidation": true,
"allowedExtensions": ["jpg", "png", "pdf"]
}
},
{
"uuid": "b4d288b9-8e6d-443e-8764-b9c162357216",
"displayOrder": 1,
"label": "Your Message",
"isRequired": false,
"fileValidation": null
}
]
}
}