Get All Sections of a Template
Get All Sections of a Template
This API retrieves all sections belonging to a specific global template.
Endpoint
GET /v2/global/{template_id}/sections
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,
"data": [
{
"id": "965f2707-8323-11f0-b592-bc2411f4d589",
"section_name": "Section 1",
"template_id": "505c631b-826c-11f0-b592-bc2411f4d589",
"meta": {},
"is_active": 1,
"created_at": "2025-09-09T12:34:56Z"
},
{
"id": "a12f98dd-8324-11f0-b592-bc2411f4d589",
"section_name": "Section 2",
"template_id": "505c631b-826c-11f0-b592-bc2411f4d589",
"meta": { "order": 2 },
"is_active": 1,
"created_at": "2025-09-09T13:00:00Z"
}
]
}
Error (401 Unauthorized)
{
"success": false,
"message": "Invalid or expired token"
}
Example (cURL)
curl --location 'https://prodnode.unizooks.com/v2/global/505c631b-826c-11f0-b592-bc2411f4d589/sections' \
--header 'Authorization: Bearer <JWT_TOKEN>'
✅ Use this API when you need to fetch all sections of a given global template.