Skip to main content
PATCH
List contacts with filters

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

limit
integer

Items per page: 20 by default, at most 100.

page
integer

Page number, starting at 1.

sort
string

Field to sort by; prefix with - for descending, for example -createdAt. Ignored when the body has searchQuery. Default: newest first.

getCount
string

true returns { contacts, count } with the total number of matches.

conversation
integer

1 adds each contact's latest conversation (lastConversation).

populatePaths
string

Comma-separated names of related records to include in the response, for example contactOwner.

source
enum<string>

Used by the Gallabox app. Leave it out.

Available options:
contact-list,
segment,
broadcast,
views
excludePII
boolean

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

Body

application/json
filter
object

Which contacts to return. Leave it out to list all contacts.

searchQuery
string

Text to look for in contacts' name, phone and email.

limit
integer

Items per page: 20 by default, at most 100.

supportedChannels
array

Only contacts reachable on these channels: whatsapp, web, instagram. Default: whatsapp and web.

page
integer

Page number, starting at 1.

Response

One page of contacts.

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>