Skip to main content
POST
Create a contact

Authorizations

apiKey
string
header
required

API key from Settings → API keys.

apiSecret
string
header
required

Secret shown once when the API key is created.

Path Parameters

accountId
string
required

Your Gallabox account ID. Must be the API key's own account. A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

Query Parameters

excludePII
boolean

true leaves contacts' personal details, such as phone numbers and email addresses, out of the response.

Body

application/json
name
string
required

The contact's name.

Minimum string length: 1
visitorId
string

A web chat visitor to link to this contact.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

companyId
string

The company the contact belongs to.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

phone
string[]

Phone numbers with country code, digits only.

Phone number with country code, digits only.

email
string<email>[]

Email addresses.

messageOptIn
boolean

Whether the contact agreed to receive marketing messages.

contactOwnerId
string

The user who owns the contact.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

tags
object[]

Tags to add, by name. Tags that don't exist are created.

address
object

Postal address.

social
object

Social profiles.

instagram
object

Instagram details.

fieldValues
object[]

Custom field values. Set the value… property that matches type.

marketingOptIn
boolean

Marketing opt-in. Stored as messageOptIn; an explicit messageOptIn wins. Omit to keep the stored value.

Response

The new contact.

A contact. Main fields only; others may be present.

id
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

accountId
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

name
string
phone
string[]

Phone numbers with country code, digits only.

email
string<email>[]
tags
object[]
fieldValues
object[]
messageOptIn
boolean
contactOwnerId
string

A 24-character hexadecimal ID.

Pattern: ^[a-fA-F0-9]{24}$
Example:

"6650a1b2c3d4e5f6a7b8c9d0"

address
object
createdAt
string<date-time>
updatedAt
string<date-time>