Skip to content

GET /v1/templates/{id}/content

Returns the full template object including all elements, dimensions, and metadata. Useful for inspecting a template before rendering or for cloning templates programmatically.

Endpoint:

GET /v1/templates/{id}/content
ParameterTypeDescription
idstringThe template ID.
Authorization: Bearer bp_sk_live_YOUR_KEY

Status: 200 OK

{
"formatVersion": 1,
"meta": {
"name": "Shipping Label",
"description": "4x6 shipping label with barcode",
"tags": ["shipping"]
},
"dimensions": {
"width": "4in",
"height": "6in",
"safeMargin": "3mm"
},
"elements": [
{
"id": "title",
"type": "text",
"position": { "mode": "absolute", "x": "5mm", "y": "5mm" },
"width": "90mm",
"height": "10mm",
"content": { "expression": "data.recipientName" }
}
]
}

The response is the full template object as stored.

Terminal window
curl -H "Authorization: Bearer bp_sk_live_YOUR_KEY" \
https://api.binderypress.dev/v1/templates/abc123/content
StatusCodeCause
401AUTH_REQUIREDMissing or invalid API key.
404NOT_FOUNDTemplate not found or not published.