Skip to main content
POST
Add a tag to 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"

contactId
string
required

ID of the contact.

Query Parameters

excludePII
boolean

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

Body

application/json
id
string

An existing tag's ID. Give id or name.

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

"6650a1b2c3d4e5f6a7b8c9d0"

name
string

A tag name. Created if it doesn't exist. Give id or name.

Response

The contact, with the tag added.

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>