Get template
Returns a template's metadata, JSON Schema, sample data, schemaLocked state and tenant scopePath. Use schema to know which keys your render data must include. Published templates are visible to the whole organization; drafts only to their owner. Pass version to get the schema and sampleData of the version a render with that selector compiles, instead of the working copy.
Request
- Base URL: https://api.pdfs.build
- URL: https://api.pdfs.build/v2/organizations/{organizationId}/templates/{externalId}
- Auth: HTTP bearer
Query parameters
When true, image references in sampleData are resolved to fetchable URLs. Always on for templates built on a base template.
Answer with the schema and sampleData of the content a render with this selector compiles: a version number, a channel name such as latest (the promoted version), or draft (the working copy). Omitted returns the working copy. An unknown version or channel fails with 400.
Response
The template.
Example response
{
"scopePath": "acct_9f3/entity_dubai/",
"createdAt": "2026-08-30T12:00:00.123456",
"updatedAt": "2026-08-30T12:00:00.123456"
}Changes
No recorded changes to this operation across all 1 revision of this API.