Skip to main content
POST
Create a field

Authorizations

x-conveyour-token
string
header
required

Your API key token. Contacts endpoints require a Server-only — Full API key — see Authentication.

Query Parameters

teams[]
string[]

Team scope for the request, as one or more team ObjectIds. The brackets are required: PHP keeps only the last value for a repeated plain key, so teams=A&teams=B silently resolves to B alone. On requests with a JSON body you may send teams (no brackets) in the body instead.

Values that are not valid ObjectIds are silently ignored — a mistyped team ID behaves as if no team was sent. See the teams section of the API conventions guide.

Body

application/json
name
string
required

The snake_case identifier for this field. Must be unique within your org. Used in Liquid templates as contact.badge_number.

label
string
required

Human-readable label shown in the ConveYour UI.

type
enum<string>
required

Field data type. There is no select type. An allowed-option list is values on a field that has values enabled. See Field types and formats.

Available options:
string,
int,
bool,
date,
email,
list,
textarea,
time,
related_contacts,
image,
relation,
user_list,
id_number,
related_custom_object,
secret
bucket_id
string

Optional. Fields are always created on your org's default bucket (Contact Info). Omit it and the field lands there automatically. If you do send it, it must name the default bucket — any other bucket is rejected.

values
string[]

Allowed option values. When the field has values enabled, a contact write must match one of these strings exactly, including case. Not limited to list.

Response

Success.

The common response envelope shared by all ConveYour endpoints.

status
enum<string>

ok on success, failed on error.

Available options:
ok,
failed
message
string

Human-readable description of the result.

data
object

Create returns only the new field ID — not the field record.