Get Template Details
Get Template Details
This API retrieves detailed information about a template, including its sections and the input fields within each section.
Endpoint
GET /v2/global/template-details/{template_id}
Base URL:
https://prodnode.unizooks.com
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
template_id | string | ✅ | The unique identifier (UUID) of the template |
Headers
| Key | Value | Required | Description |
|---|---|---|---|
Authorization | Bearer <JWT_TOKEN> | ✅ | Provide a valid JWT token for authentication |
Response
Success (200 OK)
{
"status": true,
"message": "Template details fetched successfully",
"data": {
"template_id": "505c631b-826c-11f0-b592-bc2411f4d589",
"sections": [
{
"section_id": "7b549d85-8323-11f0-b592-bc2411f4d589",
"section_name": "Section 1",
"fields": [
{
"field_id": "f5837551-f431-4f36-bb07-e9c78d919a42",
"field_name": "field_1",
"field_type": "text"
},
{
"field_id": "06e2eb9f-c5fa-4610-977b-87ce37260f39",
"field_name": "field_2",
"field_type": "number"
}
]
},
{
"section_id": "8498a26d-8323-11f0-b592-bc2411f4d589",
"section_name": "Section 2",
"fields": [
{
"field_id": "74c5b62d-27c1-4468-875f-6e776b96e458",
"field_name": "field_3",
"field_type": "number"
}
]
}
]
}
}
Error (401 Unauthorized)
{
"success": false,
"message": "Invalid or expired token"
}
Example (cURL)
curl --location 'https://prodnode.unizooks.com/v2/global/template-details/505c631b-826c-11f0-b592-bc2411f4d589' \
--header 'Authorization: Bearer <JWT_TOKEN>'
✅ Use this API when you need full template details, including all sections and their input fields.