GET /v1/templates
Returns a list of all published templates available to your team.
Endpoint:
GET /v1/templatesAuthentication
Section titled “Authentication”Authorization: Bearer bp_sk_live_YOUR_KEYResponse
Section titled “Response”Status: 200 OK
{ "templates": [ { "_id": "abc123", "name": "Shipping Label", "status": "published", "teamId": "team_xyz", "createdAt": 1711843200000 }, { "_id": "def456", "name": "Invoice", "status": "published", "teamId": "team_xyz", "createdAt": 1711756800000 } ]}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
templates | array | Array of template metadata objects. |
templates[]._id | string | Template ID. Use this as templateId in render requests. |
templates[].name | string | Template name. |
templates[].status | string | Always "published" for API key access. |
templates[].teamId | string | Owning team ID. |
templates[].createdAt | number | Creation timestamp (milliseconds since epoch). |
Example
Section titled “Example”curl -H "Authorization: Bearer bp_sk_live_YOUR_KEY" \ https://api.binderypress.dev/v1/templatesErrors
Section titled “Errors”| Status | Code | Cause |
|---|---|---|
401 | AUTH_REQUIRED | Missing or invalid API key. |