Use POST /api/v1/create to render an image from a template, POST /api/v1/studio/create to create an editable design, and POST /api/v1/studio/create-and-render to do both in one call. Each takes a fields map that fills the template's dynamic layers.
Who can use this: Any API key for your organization; see API overview & authentication. The /api/v1/studio/ routes also require Studio to be enabled for your organization.
Choose an endpoint
| Goal | Endpoint |
|---|---|
| Render a finished image without saving an editable design | POST /api/v1/create |
| Create an editable design in Studio (no immediate render) | POST /api/v1/studio/create |
| Create an editable design and render it in one call | POST /api/v1/studio/create-and-render |
| Fill team photo slots one player at a time |
POST /api/v1/studio/create/team — see Create a team photo design with the API
|
POST /api/v1/create — render without a Studio design
Renders a template without saving a design. The call returns a job ID to poll, or the finished image with ?sync=true.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
template_id |
string | Yes | ID of the template to render. Retrieve IDs from GET /api/v1/templates. |
fields |
object | No | Dynamic content keyed by api_field_name. See Field-value map below. |
player_id |
string | No | Jersey number, student ID, or any short identifier. Stored on the job and included in webhook and export output. Metadata only on this endpoint. |
webhook_url |
string (HTTPS URL) | No | Receive a POST notification when the render completes. See Webhooks & callbacks. |
send_to |
string | No | Dispatch the finished render to a destination. See Send-To below. |
send_to_qty |
integer (1–99) | No | Number of copies to deliver (Dropbox only; default 1). Numeric strings such as "2" are accepted. Any other value returns 400 invalid_send_to_qty. |
send_to_overwrite |
boolean | No | When true (default), overwrite an existing file at the destination. When false, Dropbox auto-renames the upload instead. |
main_event_code |
string | No | GFcrew Pro only. Stored on the job and forwarded to outbound webhooks and the GFcrew destination. |
destination_event_code |
string | No | GFcrew Pro only. Paired with main_event_code; required when send_to is integration:gfcrew. |
Async mode (default)
Without ?sync=true, the endpoint returns 202 Accepted immediately:
POST /api/v1/create
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"template_id": "tpl_abc123",
"fields": {
"player_name": "Jordan Williams",
"jersey_number": "12",
"player_photo": "https://example.com/photos/jordan.jpg"
}
}
HTTP/1.1 202 Accepted
{
"job_id": "rj_xyz789",
"status": "pending",
"poll_url": "/api/v1/create/rj_xyz789"
}
Poll GET /api/v1/create/{job_id} until status is "complete", then read output_url. Status values are pending, processing, complete, and failed. See Async responses & polling.
Sync mode
Add ?sync=true to wait up to 25 seconds for a 200 OK with the result inline:
POST /api/v1/create?sync=true
HTTP/1.1 200 OK
{
"job_id": "rj_xyz789",
"status": "complete",
"template_id": "tpl_abc123",
"output_url": "https://cdn.templified.io/renders/rj_xyz789.jpg",
"render_ms": 4200,
"created_at": "2026-06-12T14:00:00Z",
"completed_at": "2026-06-12T14:00:04Z"
}
A render still running at 25 seconds falls back to 202 with a poll_url. Use sync mode for single renders; use async polling for batches.
Field-value map
The fields object maps each dynamic layer's API field name to its value for this render. API field names are set in the template editor and returned by GET /api/v1/templates/{id}/fields. An unknown key returns 400 with the list of valid names.
| Layer type | Value |
|---|---|
| Text (dynamic) | String — the text content to render |
| Photo | HTTPS URL of the image file (JPEG, PNG, WebP, GIF supported) |
| QR code | String — the URL or text to encode |
Note: A photo fetched from a URL must be 25 MB or smaller; larger files return 422. When you submit the same photo again through the API or a flow, Templified reuses the copy it already stored, so resubmitting a player's photo doesn't duplicate it.
Discover a template's fields
GET /api/v1/templates/tpl_abc123/fields
{
"template_id": "tpl_abc123",
"template_name": "5x7 Individual Plaque",
"pages": 1,
"fields": [
{ "name": "Player Name", "api_field_name": "player_name", "type": "text", "is_dynamic": true, "page": 1 },
{ "name": "Jersey Number", "api_field_name": "jersey_number", "type": "text", "is_dynamic": true, "page": 1 },
{ "name": "Player Photo", "api_field_name": "player_photo", "type": "dynamic_graphic", "is_dynamic": true, "page": 1 }
]
}
Two-page templates
Two-page templates render both pages and return a single PDF. The fields response lists layers from both pages with a page annotation (1 or 2). Supply values for both pages in the same fields object.
POST /api/v1/studio/create — create an editable design
Creates a Studio design from a template, optionally pre-filled. No render runs.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
template_id |
string | Yes | Source template ID. |
name |
string | Yes | Design name as it will appear in Studio. Must be unique within the target folder, ignoring letter case: "Smith" and "smith" are the same design. |
folder_id |
string | No | Existing Studio folder ID. Mutually exclusive with folder_path. |
folder_path |
string | No | Slash-separated path (e.g. "Clients/Acme/Q1"). Missing folders are created automatically. Mutually exclusive with folder_id. If neither is provided, the design lands in "Unsorted". Existing folders match ignoring letter case, so "clients/acme" uses an existing "Clients/Acme" folder and keeps its capitalization. |
fields |
object | No | Dynamic field values keyed by api_field_name. Photo values must be HTTPS URLs; the server downloads and stores the image. |
overwrite |
boolean | No | When true, replace the design with the same name (ignoring case) in the same folder, keeping its ID and stored name. Default false. |
player_id |
string | No | Stored on the design; surfaced in exports and webhook output. |
team_id |
string (up to 100 characters) | No | Team ID (such as your POS team ID). Links the design's folder to that team: exports report teamId, and the folder turns blue once the team is marked photographed. Not checked against the event's team list; a folder that already has a Team ID keeps it; linking never fails the create. See Events and teams API. |
main_event_code |
string | No | GFcrew Pro only. |
destination_event_code |
string | No | GFcrew Pro only. |
A successful call returns 201 Created with the new design's ID and folder:
HTTP/1.1 201 Created
{
"instance": {
"id": "inst_def456",
"name": "Jordan Williams",
"studioFolderId": "sf_ghi789",
"sourceTemplateId": "tpl_abc123",
"layerCount": 8,
"groupCount": 2,
"canvasWidth": 1500,
"canvasHeight": 2100,
"playerId": "12"
}
}
POST /api/v1/studio/create-and-render — create and render in one call
Creates an editable design and renders it in one call. Accepts every /studio/create field, plus the render options below.
Additional fields
| Field | Type | Description |
|---|---|---|
webhook_url |
string (HTTPS URL) | Notify this URL when the render completes. |
send_to |
string | Dispatch the finished render. See Send-To below. |
send_to_qty |
integer (1–99) | Number of copies (default 1). Same rules as on /api/v1/create. |
send_to_overwrite |
boolean | Whether to overwrite at the destination (default true). Propagates to every destination in a preset. |
Without ?sync=true, returns 202 Accepted with the design object and a job ID to poll:
HTTP/1.1 202 Accepted
{
"instance": { "id": "inst_def456", ... },
"job_id": "rj_xyz789",
"status": "queued",
"poll_url": "/api/v1/create/rj_xyz789"
}
With ?sync=true, the call blocks up to 25 seconds and returns 200 OK with output_url in the body when the render finishes on time.
To fill team photo slots one player at a time with POST /api/v1/studio/create/team, see Create a team photo design with the API.
Send-To on API renders
POST /api/v1/create and POST /api/v1/studio/create-and-render accept send_to as integration:<type> or preset:<id>.
| Value | Where it sends | Notes |
|---|---|---|
integration:dropbox |
Your connected Dropbox | On /v1/create, uploads to /Templified/<templateName>/<timestamp>.jpg. On /studio/create-and-render, uploads to /Templified/<designName>.jpg. Use a preset for a custom path. |
integration:webhook |
Your configured outbound webhook | Posts the standard studio.export JSON body. |
integration:gfcrew |
GFcrew Pro | Requires both main_event_code and destination_event_code. On /v1/create, each call creates a fresh GFcrew upload. On /studio/create-and-render, uses the design's ID for replace semantics. |
preset:<id> |
Every destination in the saved preset |
/studio/create-and-render only. Can include GFITpro Auto Print destinations. Get preset IDs from Settings → Send-To Presets or GET /api/v1/send-targets. |
Once the render completes, the poll response includes send_to_status (pending, delivering, delivered, or failed), plus send_to_error when it failed.
Note: To replace an athlete's earlier GFcrew upload instead of adding a new one, send through /studio/create-and-render, which ties the send to the design's ID. See Replace vs. create on GFcrew re-send.
Error codes
| Status | Meaning |
|---|---|
400 |
Validation error. The body names the invalid field; for unknown fields keys it lists the valid api_field_name values. |
402 |
Billing limit reached (trial render cap, or insufficient balance). |
403 |
Design billing block (trial design cap, or subscription suspended). |
404 |
Template or folder not found. |
409 |
Duplicate design name in the folder, ignoring case (use overwrite: true to replace), or the Send To integration is not connected. |
422 |
The image URL could not be downloaded, is not a valid image, or is over 25 MB. |
Comments
0 comments
Article is closed for comments.