Skip to main content
POST
/
leads
/
{leadId}
/
tags
cURL
curl --request POST \
  --url https://api.attent.app/v1/leads/{leadId}/tags \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "tagIds": [
    "tag4",
    "tag5"
  ]
}'
{
  "tags": [
    {
      "id": "tag1",
      "name": "VIP Customer"
    },
    {
      "id": "tag2",
      "name": "Interested"
    },
    {
      "id": "tag4",
      "name": "New Tag"
    },
    {
      "id": "tag5",
      "name": "Another Tag"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

leadId
string
required

The ID of the lead to add tags to

Body

application/json

Array of tag IDs to add to the lead

tagIds
string[]
required

Array of tag IDs to add to the lead

Response

Tags successfully added.

tags
object[]

Array of all tags now assigned to the lead

I