Templates / Public
Get a public template
Fetch one published template (with its pages) by ID. Only templates with publicOn are returned; private IDs 404. No authentication required.
Templates / Public
Get a public template
Fetch one published template (with its pages) by ID. Only templates with publicOn are returned; private IDs 404. No authentication required.
GET
/api/templates/public/:idQuery / Path parameters
| Name | In | Required | Description |
|---|---|---|---|
| id | path | Yes | Template ID |
Responses
200
JSON { doc } — the template including published pages
404
Template not found or not public
Request
curl -X GET "https://bannx.com/api/templates/public/:id" \
-H "Authorization: Bearer YOUR_API_TOKEN"Response
// JSON { doc } — the template including published pages
{
"success": true,
"data": { ... }
}