Assign message as case
Assign a Smart Inbox message to a queue and a person as a case.
POST https://cotlet.dev/api/v1/sprout-social/messages/{message_id}/case/assign
Creates a case from the message with the queue, assignee and priority you give. Priority is Medium unless you set it. Tags and an internal comment are optional, and complete_message set to true also removes the message from the feed while keeping it in the assignee's Open Cases. The assignee gets an email and a notification with the case ID. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| message_id string required | string | Message ID from list_inbox_messages. |
| queue string | string | Queue name from list_case_assignees. |
| assignee string | string | User ID from list_case_assignees, or 'me'. |
| priority string | string | Priority as the case form shows it. Medium by default. |
| tags string[] | string[] | Tag names to put on the case. |
| comment string | string | Internal comment for the assignee. |
| complete_message boolean | boolean | Also mark the message complete. Default false. |
Request
curl -X POST https://cotlet.dev/api/v1/sprout-social/messages/msg_88a1f4/case/assign \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"queue":"Customer care","assignee":"u_204","priority":"Medium","tags":["Billing"],"comment":"Customer says they were charged twice in October."}' result = client.call("sprout-social", "assign_case", {"message_id":"msg_88a1f4","queue":"Customer care","assignee":"u_204","priority":"Medium","tags":["Billing"],"comment":"Customer says they were charged twice in October."}) const result = await cotlet.call('sprout-social', 'assign_case', {"message_id":"msg_88a1f4","queue":"Customer care","assignee":"u_204","priority":"Medium","tags":["Billing"],"comment":"Customer says they were charged twice in October."}); cotlet call sprout-social assign_case --data '{"message_id":"msg_88a1f4","queue":"Customer care","assignee":"u_204","priority":"Medium","tags":["Billing"],"comment":"Customer says they were charged twice in October."}' Example response
{
"case_id": "case_1182",
"message_id": "msg_88a1f4",
"queue": "Customer care",
"assignee": "u_204",
"priority": "Medium",
"tags": [
"Billing"
],
"comment": "Customer says they were charged twice in October.",
"message_completed": false
}