Skip to main content
POST
/
v1
/
contacts
/
:id
/
tags
Add Tags to Contact
curl --request POST \
  --url https://api.example.com/v1/contacts/:id/tags \
  --header 'Content-Type: application/json' \
  --data '
{
  "tags": [
    {}
  ]
}
'
{
  "data": {
    "contact_id": "<string>",
    "tags": [
      {}
    ]
  }
}

Request

Path Parameters

id
string
required
Contact ID (UUID)

Body Parameters

tags
array
required
Array of tag strings to add

Headers

Authorization: Bearer wbk_your_api_key_here
Content-Type: application/json

Response

data
object
curl -X POST https://data.leadlex.com/functions/v1/api-gateway/v1/contacts/123e4567-e89b-12d3-a456-426614174000/tags \
  -H "Authorization: Bearer wbk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{ "tags": ["vip", "legal"] }'

Example Response

{
  "data": {
    "contact_id": "123e4567-e89b-12d3-a456-426614174000",
    "tags": ["existing-tag", "vip", "legal"]
  }
}

Errors

StatusCodeDescription
400validation_errorMissing or invalid tags array
404not_foundContact not found
403insufficient_permissionsMissing contacts:write permission