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