Skip to content

Create template

POST
/v2/document/template

Creates a new template based on the provided data, then returns the created template first version

X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
name
required

The Template Name

string
Japanese Invoice
description

The Template Description

string
Template used for extract data from japanese invoices received in Australia.
type
required

The Template Type

string
Invoice
tag
required

The Template Tag

string
Invoice
providerModelId

The Provider Model Id

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
prompts
required

A prompt array of strings

Array<object>
object
id
required

A prompt Id

string
a1b2c3d4-5678-4e2a-9c1a-2b3c4d5e6f7a
name
required

A prompt name

string
Summary
fieldType
required

A field type

string
text
format
required

A format

string
string
description
required

A description

string
Whats the summary of the document?
itemType

An item type

string
string
children
Array<object> recursive

The resource has been successfully created.

object
templateVersionId

A unique template Version Id

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
templateId

A template Id grouped on version

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
version

The Template Version

number
1
name

A template name

string
JapaneseInvoice
description

A template description

string
Used for extract all documents from the japanese providers.
type

Type of template, usually associated with the type of document, but you can set your own classification

string
invoice
tag

Identifies your templates in the dashboard UI

string
customer-template
prompts

Group of prompts or properties to be extracted or analyzed from the document

Array<object>
object
id
required

A prompt Id

string
a1b2c3d4-5678-4e2a-9c1a-2b3c4d5e6f7a
name
required

A prompt name

string
Summary
fieldType
required

A field type

string
text
format
required

A format

string
string
description
required

A description

string
Whats the summary of the document?
itemType

An item type

string
string
children
Array<object> recursive
providerModel

The provider model

object