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}/contentPath Parameter
Section titled “Path Parameter”| Parameter | Type | Description |
|---|---|---|
id | string | The template ID. |
Authentication
Section titled “Authentication”Authorization: Bearer bp_sk_live_YOUR_KEYResponse
Section titled “Response”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.
Example
Section titled “Example”curl -H "Authorization: Bearer bp_sk_live_YOUR_KEY" \ https://api.binderypress.dev/v1/templates/abc123/contentErrors
Section titled “Errors”| Status | Code | Cause |
|---|---|---|
401 | AUTH_REQUIRED | Missing or invalid API key. |
404 | NOT_FOUND | Template not found or not published. |