myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Add tags

POST

/api/v1/ext/contacts/{id}/tags

Add one or more tags to a contact.

Auth: Bearer access_token
Scope: contacts.write

Tags already on the contact are kept; adding one it has is a no-op. Up to 50 tags per call, 100 characters each. Adding a tag can start workflows that trigger on it, as in the dashboard. AI agent tags. A contact can carry one AI agent tag. Adding a different one answers 409 agent_tag_conflict; send agent_tag_resolution "replace" to swap it or "skip" to keep the old one.

Parameters

NameInTypeRequiredDescription
id
path
number
yes
The contact id.
tags
body
array<string>
yes
Tag names.
agent_tag_resolution
body
enumnoOnly when the request adds an AI agent tag and the contact has a different one.

Responses

StatusWhen
200
OK — the contact's tags now
400
No tags
401
Missing or invalid token
403
Missing scope
404
Contact does not exist or is not owned by the installer (same response for both)
409
A different AI agent tag is already on the contact
Request
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/contacts/{id}/tags" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "tags": [
    "vip",
    "demo-booked"
  ]
}'
Responses
OK — the contact's tags now
{
  "success": true,
  "message": "Tags added",
  "data": {
    "contact_id": 1234,
    "tags": [
      "lead",
      "vip",
      "demo-booked"
    ]
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

The contact id.

Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/contacts/%7Bid%7D/tags
Previous

« Check iMessage

Next

Remove tags »