Skip to main content
POST
Make a document type

Authorizations

Authorization
string
header
required

A firm API key, shown once when it is made, or a connected app’s OAuth access token. Each operation lists the scope it needs, such as clients:write.

Body

application/json
label
string
required
Required string length: 1 - 80
description
string
required

What kind of document it is, in a sentence or two. The reader is told this when it sorts a file, so say how to recognise one.

Required string length: 1 - 300
group
enum<string>
required

The heading it is picked under: banking (Banking and loans), income (Income and tax), investments (Investments and super), property (Property and insurance), structure (Entities and structure), other (Other).

Available options:
banking,
income,
investments,
property,
structure,
other
holds
enum<string>
required

values: values on the page are read into its fields. file: kept as a file, nothing read. Fixed once made.

Available options:
values,
file
fields
object[] | null
Maximum array length: 40
read_document_id
string · null · null

A document id, from list_documents.

Required string length: 1 - 60
sort_unplaced_since_days
integer · null · null

1 to 365.

Required range: 1 <= x <= 365
suggestion_id
string · null · null

The suggestion it was made from, from suggest_document_type.

Required string length: 1 - 60

Response

Created.

object
enum<string>
required
Available options:
document_type
id
string | null
required

Null for a built-in type.

key
string
required

Such as payslip or super_statement, or firm_ and a slug for the firm's own.

label
string
required
description
string
required
group
enum<string>
required

The heading it is picked under: banking (Banking and loans), income (Income and tax), investments (Investments and super), property (Property and insurance), structure (Entities and structure), other (Other).

Available options:
banking,
income,
investments,
property,
structure,
other
origin
enum<string>
required

redbark for Redbark's own, which cannot be changed; firm for the firm's own.

Available options:
redbark,
firm
holds
enum<string>
required

values: values on the page are read into its fields. file: kept as a file, nothing read. Fixed once made.

Available options:
values,
file
archived
boolean
required

A firm type no longer sorted into or offered. Documents already read as it keep it.

field_count
number
required

Fields read from new documents: built-in and the firm’s, archived ones left out.

fact_keys
string[]
required

The client facts its fields fill.

read_last_30_days
number
required

Documents of this type read in the last 30 days.

sections
object[]
required
read_document
object | null
required

The document read again as the new type, when one was named.

unplaced_queued
number | null
required

How many unplaced documents were queued to be sorted again, when sort_unplaced_since_days was given.