Templates
List templates
GET /v1/templates
Scope: jobs:read
Print one with POST /v1/jobs and { templateId, data }.
Responses
| Status | Description |
|---|---|
200 | Every template of the organization (one page). |
Fields of the 200 response:
| Field | Type | Required | Description |
|---|---|---|---|
data | object[] | yes | |
data[].id | string | yes | Use as templateId when creating jobs |
data[].name | string | yes | |
data[].type | "zpl" | "epl" | "receipt" | "html" | yes | |
data[].content | string | yes | Template text with {{variables}} |
data[].paper | string | null | yes | |
data[].createdAt | string | yes | ISO 8601 date-time |
data[].updatedAt | string | yes | ISO 8601 date-time |
nextCursor | string | null | yes | Pass as ?cursor= for the next page |
curl "https://api.jodaprint.dev/v1/templates" \
-H "Authorization: Bearer $JODAPRINT_API_KEY"
Get a template
GET /v1/templates/{id}
Scope: jobs:read
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Responses
| Status | Description |
|---|---|
200 | The template. |
404 | NOT_FOUND |
Fields of the 200 response:
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | Use as templateId when creating jobs |
name | string | yes | |
type | "zpl" | "epl" | "receipt" | "html" | yes | |
content | string | yes | Template text with {{variables}} |
paper | string | null | yes | |
createdAt | string | yes | ISO 8601 date-time |
updatedAt | string | yes | ISO 8601 date-time |
curl "https://api.jodaprint.dev/v1/templates/<id>" \
-H "Authorization: Bearer $JODAPRINT_API_KEY"