Skip to main content
Preview a templates import file

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
dataDelimiter
string

Character separating the columns of a CSV file. Ignored for JSON.

Example:

","

escapeChar
string

Character that escapes a quote inside a quoted CSV field. Ignored for JSON.

Example:

"\""

fileEncoding
string

Character encoding the file is written in. Wrong encoding shows up as mangled accented characters rather than as an error.

Example:

"utf8"

fileHash
string | null

Hash of the file to read, as returned when the file was uploaded.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

Response

Returns the sample records and the column names found in the file.

data
object[]

Sample of the leading records, as an import would read them - so keyed by target property names rather than by the file's own column names.

fields
string[]

Column names the file itself carries. These are the keys a mapping is written against.

invalidFields
string[]

Field names from the file that collide with a reserved, server-managed property and are therefore never taken from the file. Columns that simply match no importable property are dropped as well, but are not reported here.