Skip to main content

Get All Global Templates

Get All Global Templates​

This API retrieves a list of all global templates available in the system.


Endpoint​

GET /v2/global/template

Base URL:
https://prodnode.unizooks.com


Headers​

KeyValueRequiredDescription
AuthorizationBearer <JWT_TOKEN>✅Provide a valid JWT token for authentication

Response​

Success (200 OK)​

{
"success": true,
"message": "Templates fetched successfully",
"data": [
{
"id": "341a5ab6-826c-11f0-b592-bc2411f4d589",
"template_name": "Template 1",
"created_at": "2025-08-26T11:02:49.000Z",
"is_deployed": 0,
"updated_at": "2025-09-09T07:55:01.000Z",
"created_by": "11111",
"updated_by": "Harsh Gupta",
"section_count": 0
},
{
"id": "505c631b-826c-11f0-b592-bc2411f4d589",
"template_name": "Template 2",
"created_at": "2025-08-26T11:03:36.000Z",
"is_deployed": 0,
"updated_at": "2025-08-26T11:03:36.000Z",
"created_by": "11111",
"updated_by": "11111",
"section_count": 2
},
{
"id": "0b976b93-8d6a-11f0-b592-bc2411f4d589",
"template_name": "Template 3",
"created_at": "2025-09-09T10:45:04.000Z",
"is_deployed": 0,
"updated_at": "2025-09-09T10:45:04.000Z",
"created_by": "Harsh Gupta",
"updated_by": "Harsh Gupta",
"section_count": 0
}
]
}

Error (401 Unauthorized)​

{
"success": false,
"message": "Invalid or expired token"
}

Example (cURL)​

curl --location 'https://prodnode.unizooks.com/v2/global/template' \
--header 'Authorization: Bearer <JWT_TOKEN>'

✅ Use this API when you need to fetch the list of all reusable global templates.