WatificationDocs
Contacts

Add a label to a contact

Applies an existing label by labelId, or by its name without regard to case. Labels are not created by this request. Requires the contacts.write scope. An unknown label returns LABEL_NOT_FOUND.

Responses

StatusMeaning and codes
200Label applied.
401undefined
403undefined
404undefined
422undefined
429undefined

Success and handled error responses send Cache-Control: no-store and X-Correlation-ID (the resolved/generated UUID). Errors use application/problem+json and the reusable ProblemDetails schema below. Retry-After: 1 is sent only for RATE_LIMITED. Request examples read your key from a server environment variable; replace all fictional values.

Schemas and examples

POST
/contacts/{contactId}/labels

Authorization

ApiKey
headerAuthorizationBearer <token>

Server-side API key. publicId is 12 lowercase base32 characters (a-z, 2-7); secret is 43 base64url characters from 32 random bytes. Use Authorization: Bearer <complete key>. The API key determines the workspace; requests cannot select another workspace. All public routes share 20 requests per second per key. See API-key authentication.

Path Parameters

contactId*string

Contact ID.

Formatuuid

Header Parameters

X-Correlation-ID?string

Optional tracing ID. A UUID-shaped value is echoed in the response. Missing or invalid values are replaced with a generated UUID, not rejected.

Request Body

application/json
  1. body

Send labelId or labelName.

labelId?string
Formatuuid
labelName?string
Length1 <= length <= 100

Response Body

Label applied.

application/json
  1. response
labelId*string
Formatuuid