curl --request POST \
--url https://api.example.com/v1/contacts/:id/tags \
--header 'Content-Type: application/json' \
--data '
{
"tags": [
{}
]
}
'{
"data": {
"contact_id": "<string>",
"tags": [
{}
]
}
}Add tags to a contact (merges with existing tags, no duplicates)
curl --request POST \
--url https://api.example.com/v1/contacts/:id/tags \
--header 'Content-Type: application/json' \
--data '
{
"tags": [
{}
]
}
'{
"data": {
"contact_id": "<string>",
"tags": [
{}
]
}
}Authorization: Bearer wbk_your_api_key_here
Content-Type: application/json
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"] }'
{
"data": {
"contact_id": "123e4567-e89b-12d3-a456-426614174000",
"tags": ["existing-tag", "vip", "legal"]
}
}
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Missing or invalid tags array |
| 404 | not_found | Contact not found |
| 403 | insufficient_permissions | Missing contacts:write permission |