Tag message

Add or remove tags on a Smart Inbox message.

POST https://cotlet.dev/api/v1/sprout-social/messages/{message_id}/tag

write

Adds or removes tags on one message, using names from list_tags. Needs the Apply Tags permission. Tagging is internal: it reaches no customer and is undone by removing the tag, so tag_message runs without asking first.

Parameters

Parameters: tag_message
NameTypeDescription
message_id string required string Message ID from list_inbox_messages.
add_tags string[] string[] Tag names to add, from list_tags.
remove_tags string[] string[] Tag names to remove.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/sprout-social/messages/message_8c41d2/tag \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("sprout-social", "tag_message", {"message_id":"message_8c41d2"})
Node.js
const result = await cotlet.call('sprout-social', 'tag_message', {"message_id":"message_8c41d2"});
CLI
cotlet call sprout-social tag_message --data '{"message_id":"message_8c41d2"}'

Example response

JSON

{
  "message_id": "msg_88a1f4",
  "tags": [
    "Product question"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.