Skip to main content
POST
Create a contact field

Authorizations

Authorization
string
header
required

An organization API key created in the Klatt console, sent as Authorization: Bearer <key>. The key belongs to one organization.

Path Parameters

list_uuid
string<uuid>
required

Unique identifier (UUID) of the contact list.

Body

application/json
key
string
required

Identifier of the field and key of its value in a contact's additional_fields. Starts with a letter, then letters, digits or underscores; up to 40 characters. It cannot be changed later.

Required string length: 1 - 40
Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
kind
enum<string>
required

Type of value the field holds: text, number, boolean or enum. It cannot be changed later.

Available options:
text,
number,
boolean,
enum
label
string
required

Name shown for the field, up to 80 characters.

Required string length: 1 - 80
description
string | null

Explains what the field holds, up to 500 characters. It guides the automatic extraction of the value from conversations.

Maximum string length: 500
is_extractable
boolean
default:true

Whether the analysis of a conversation may fill this field automatically.

options
string[] | null

Allowed values of an enum field: 1 to 50 distinct values of up to 80 characters. Not allowed for other kinds.

Required string length: 1 - 80
position
integer
default:0

Display order of the field, from 0 to 1000.

Required range: 0 <= x <= 1000
update_condition
string | null

When an extracted value may be applied, in plain words, up to 500 characters.

Maximum string length: 500
update_mode
enum<string>
default:overwrite

How an extracted value treats an existing one: overwrite replaces it, set_once only fills the field while it is empty.

Available options:
overwrite,
set_once

Response

Successful Response

description
string | null
required

Explains what the field holds. null when not set.

field_uuid
string<uuid>
required

Unique identifier (UUID) of the field.

is_extractable
boolean
required

Whether the analysis of a conversation may fill this field automatically.

key
string
required

Identifier of the field and key of its value in a contact's additional_fields.

kind
enum<string>
required

Type of value the field holds: text, number, boolean or enum.

Available options:
text,
number,
boolean,
enum
label
string
required

Name shown for the field.

options
string[] | null
required

Allowed values of an enum field. null for other kinds.

position
integer
required

Display order of the field.

update_condition
string | null
required

When an extracted value may be applied, in plain words. null when not set.

update_mode
enum<string>
required

How an extracted value treats an existing one: overwrite or set_once.

Available options:
overwrite,
set_once