Skip to main content

Template Service (2.0.0)

Download OpenAPI specification:Download

Template Service API

List Styles

Get all styles

header Parameters
tenant
required
string (Tenant)

Responses

Response samples

Content type
application/json
{
  • "data": [
    ]
}

Get Style

Get style

path Parameters
style_name
required
string (Style Name)
header Parameters
tenant
required
string (Tenant)

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Put Style

Update style

path Parameters
style_name
required
string (Style Name)
header Parameters
content-type
required
any (ContentTypeHeader)
Value: "application/json"

An enumeration.

tenant
required
string (Tenant)
Request Body schema: application/json
style_name
string (Style Name)

Name of the style

content
required
string (Content)

Content of the style

Responses

Request samples

Content type
application/json
{
  • "style_name": "string",
  • "content": "string"
}

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

List Templates

Get all templates

header Parameters
tenant
required
string (Tenant)

Responses

Response samples

Content type
application/json
{
  • "data": [
    ]
}

Get Template Sample Data

Get template sample data

path Parameters
template_id
required
string (Template Id)

Responses

Response samples

Content type
application/json
{ }

Put Sample Data

Update sample data by locale

path Parameters
template_id
required
string (Template ID)
locale
required
string (Locale)
header Parameters
Tenant
required
string (Tenant)
Request Body schema: text/plain

The sample data as plain text.

string

Responses

Response samples

Content type
application/json
null

Get Sample Data

Get sample data by locale

path Parameters
template_id
required
string (Template Id)
locale
required
string (Locale)
header Parameters
Tenant
required
string (Tenant)

Responses

Response samples

Content type
application/json
{ }

Get Template Documentation

Get template documentation

path Parameters
template_id
required
string (Template Id)
header Parameters
tenant
required
string (Tenant)

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Render Template

Render template

path Parameters
template_id
required
string (Template Id)
header Parameters
content-type
required
any (ContentTypeHeader)
Value: "application/json"

An enumeration.

tenant
required
string (Tenant)
Request Body schema: application/json
locale
string (Locale)

Locale to use for rendering. If not specified, the default locale (en_US) will be used. A locale is defined by a language and country separated by an underscore. Example locales are en_US, en_UK, de_DE, de_AT, fr_FR, fr_CA, da_DK, jp_JP.

data
required
object (Data)

Data to use for rendering

content_type
string (ContentTypes)
Enum: "html" "pdf" "text"

Can be either pdf, html or text

ttl
string (Time to live)

Time to live in days, will be kept indefinitely if not set.

Responses

Request samples

Content type
application/json
{
  • "locale": "en_US",
  • "data": { },
  • "content_type": "html",
  • "ttl": "string"
}

Response samples

Content type
application/json
{
  • "content_type": "html",
  • "output": "string",
  • "permanent_link": "string",
  • "s3_params": { },
  • "vault_data_id": null
}

Preview Template

Preview template

path Parameters
template_id
required
string (Template Id)
header Parameters
content-type
required
any (ContentTypeHeader)
Value: "application/json"

An enumeration.

tenant
required
string (Tenant)
Request Body schema: application/json
locale
string (Locale)

Locale to use for rendering. If not specified, the default locale (en_US) will be used. A locale is defined by a language and country separated by an underscore. Example locales are en_US, en_UK, de_DE, de_AT, fr_FR, fr_CA, da_DK, jp_JP.

data
object (Data)

Template data

content_type
any (ContentTypes)
Enum: "html" "pdf" "text"

Can be either pdf, html or text

template
string (Template)

Template id

style
string (Style)

Style to use in the template

Responses

Request samples

Content type
application/json
{
  • "locale": "en_US",
  • "data": { },
  • "content_type": "html",
  • "template": "string",
  • "style": "string"
}

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Get Template

Get template by locale

path Parameters
template_id
required
string (Template Id)
locale
required
string (Locale)
header Parameters
tenant
required
string (Tenant)

Responses

Response samples

Content type
application/json
{
  • "detail": [
    ]
}

Put Template

Update template by locale

path Parameters
template_id
required
string (Template Id)
locale
required
string (Locale)
header Parameters
content-type
required
any (ContentTypeHeader)
Value: "application/json"

An enumeration.

tenant
required
string (Tenant)

Responses

Response samples

Content type
application/json
null

Delete Template

Delete template by locale

path Parameters
template_id
required
string (Template Id)
locale
required
string (Locale)
header Parameters
content-type
required
any (ContentTypeHeader)
Value: "application/json"

An enumeration.

tenant
required
string (Tenant)

Responses

Response samples

Content type
application/json
null