Does anyone know the correct REST v2 API endpoint to apply tags to contacts?

**Does anyone know the correct REST v2 API endpoint to apply tags to contacts?

**Setup (all verified working):**

  • Contact ID: `1000`
  • Tag ID: `100` (GET /tags works)
  • OAuth Bearer token (With this token contact api already working)

Method 1**
POST /crm/rest/v2/tags/100/contacts
{“contact_ids”: [“1000”]}
→ 405 Method Not Allowed (Allow: GET)

Method 2
PATCH /crm/rest/v2/contacts/1000
{“tags”: }
→ 400 “Unrecognized property: tags”

Method 3
POST /crm/rest/v2/tags/100/contacts/applyTags
→ 404 Not Found

Method 4
POST /crm/rest/v2/contacts/1000/tags
→ 405 Method Not Allowed

I am following bellow doc for integrate API.

Thanks

Hi @Jay_Patel,

The correct endpoint to apply tags to contacts in the REST v2 API is:

POST https://api.infusionsoft.com/crm/rest/v2/tags/{tag_id}/contacts:applyTags

Here’s an example cURL:

curl -X POST "https://api.infusionsoft.com/crm/rest/v2/tags/103/contacts:applyTags" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
        "contact_ids":[41272,36749]
      }'

This will apply tag 103 to contacts 41272 and 36749.

Documentation: Apply tags to contacts

Let me know if you need any further clarification, I’d be happy to help!