Label a conversation
postkey_label_conversationPostkey: Puts an Inbox label on one conversation or takes it off, and returns its labels. Labels are for the team only; the contact is not changed and nothing is sent. To tag the person themselves (seen on every conversation and in contacts) use postkey_tag_contact.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"conversation_id": "<conversation_id>",
"label": "<label>",
"on": "<on>"
},
"name": "postkey_label_conversation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | true puts the label on, false takes it off. | |
| label | Yes | "favorites" (every plan), "hot_leads" or "partnerships" (plans with all Inbox labels), or a custom label's id as shown in labels by postkey_get_conversation. 1 to 60 characters. | |
| conversation_id | Yes | The conversation id from postkey_list_conversations (or conversation_id in postkey_get_contact), as it was given. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: refused (isError; code, message, guide_topic, url); no change. | |
| labels | No | The conversation's labels now. | |
| conversation_id | No | The conversation id. |