A version's details: fields, sample values, fonts, warnings
GET
/v1/templates/{template}/versions/{version}
const url = 'https://example.com/v1/templates/example/versions/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/templates/example/versions/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”template
required
string
version
required
string
Responses
Section titled “Responses”The answer.
Media typeapplication/json
object
template
required
string
version
required
integer
sha256
required
string
size
required
integer
name
required
string
pages
required
integer
fields
required
The template’s fields, by name.
object
key
additional properties
A field of the template: its type, whether a value is required, its settings by type (a number’s min, max, step and decimals; a choice’s options) and the group it is in (PAP-134).
object
type
required
string
required
boolean
group
string
fieldGroups
required
The groups the fields are shown in, in order (PAP-134).
Array<object>
object
id
required
string
label
required
string
sampleValues
required
Values that render the template, by field name: text, a number, an option’s value or true or false.
object
key
additional properties
string | number | boolean
images
required
Array<string>
fonts
required
Array<object>
object
id
required
string
sha256
required
string
family
required
string
rights
required
object
warnings
required
Array
libraryFonts
required
Array
createdAt
required
string
createdBy
required
string
publishedWith
required
object
build
required
string
version
required
string
brandKit
The brand kit it was published with, its revision then and the kit items it uses (PAP-131).
object
id
string
revision
integer
items
object
Example
{ "fields": { "additionalProperty": { "type": "text" } }}No key, or not a valid one.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}The key lacks the scope, or its tenant is suspended or deleted.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}