Inbox

The Inbox resource allows you to Retrieve and Update conversations and tags. The following actions can be performed on this resource...

Retrieve All Conversations

Retrieves all conversations associated with a specific brand.

GET https://dev.slicktext.com/v1/brands/{{brand_id}}/inbox-threads

You can include additional parameters in the request as described in the Query Parameters section. For instance, the request below will return only open conversations.

GET https://dev.slicktext.com/v1/brands/{{brand_id}}/inbox-threads?status=open

Example Response:

{ "data": [ { "_id": "6744a2ba587c8f2cf4028786", "_brand_id": 1234567983, "_contact_id": 111111, "status": "open", "_last_message_id": "6744a2ba97274144ab0cc232", "last_message": "Great Thanks!", "last_message_direction": "incoming", "last_message_sent": "2024-11-25 16:15:54", "_assigned_to_user_id": 3333, "created": "2024-11-25 16:15:54", "updated": "2024-11-26 18:48:11", "_inbox_tag_ids": [ 4, 5 ] } ] }

Retrieve a Specific Conversation

Retrieves a single conversation with the Conversation ID equal to {id}. The Conversation ID can be found using the retrieve all conversations endpoint.

GET https://dev.slicktext.com/v1/brands/{{brand_id}}/inbox-threads/{{id}}/content

Example Response:

{ "_id": "6744a2ba587c8f2cf4028786", "_brand_id": 1234567983, "_contact_id": 111111, "status": "open", "_last_message_id": "6744a2ba97274144ab0cc232", "last_message": "Great Thanks!", "last_message_direction": "incoming", "last_message_sent": "2024-11-25 16:15:54", "_assigned_to_user_id": 3333, "created": "2024-11-25 16:15:54", "updated": "2024-11-26 18:48:11", "_inbox_tag_ids": [ 4, 5 ] }

Edit a Specific Conversation

Allows you to edit an existing conversation. You can target an existing conversation by passing the Conversation ID in your PUT request. The Conversation ID can be found using the retrieve all conversations endpoint. At least one of the arguments below is required.

PUT https://dev.slicktext.com/v1/brands/{{brand_id}}/inbox-threads/{{id}}

Arguments

PARAMETER DESCRIPTION
_assigned_to_user_id Assign conversation to user
_inbox_tag_ids[] Tag conversation
status Update status of conversation (open, pending, closed)
unread Mark conversation as read/unread

Example Request Body:

{ "_assigned_to_user_id": 3333, "_inbox_tag_ids": [ 4, 5 ], "status": "open", "unread": 0 }

Example Response:

{ "data": [ { "_id": "6744a2ba587c8f2cf4028786", "_brand_id": 1234567983, "_contact_id": 111111, "status": "open", "_last_message_id": "6744a2ba97274144ab0cc232", "last_message": "Great Thanks!", "last_message_direction": "incoming", "last_message_sent": "2024-11-25 16:15:54", "_assigned_to_user_id": 3333, "created": "2024-11-25 16:15:54", "updated": "2024-11-26 18:48:11", "_inbox_tag_ids": [ 4, 5 ] } ] }

Retrieve Inbox Tags

Retrieves all inbox tags associated with a specific brand.

GET https://dev.slicktext.com/v1/brands/{{brand_id}}/inbox-tags

You can include additional parameters in the request as described in the Query Parameters section. For instance, the request below will return tags that will not untag when the thread is closed.

GET https://dev.slicktext.com/v1/brands/{{brand_id}}/inbox-tags?untag_on_thread_close=0

Example Response:

{ "data": [ { "inbox_tag_id": 4, "_brand_id": 3, "name": "Nashville", "description": null, "color": "#e69138", "untag_on_thread_close": 0, "created": "2024-10-31 15:23:00" } ] }

Retrieve a Specific Inbox Tag

Retrieves a single inbox tag with the Inbox Tag ID equal to {id}. The Inbox Tag ID can be found using the retrieve inbox tags endpoint.

GET https://dev.slicktext.com/v1/brands/{{brand_id}}/inbox-tags/{{id}}

Example Response:

{ "inbox_tag_id": 4, "_brand_id": 3, "name": "Nashville", "description": null, "color": "#e69138", "untag_on_thread_close": 0, "created": "2024-10-31 15:23:00" }

Edit a Specific Inbox Tag

Allows you to edit an existing inbox tag. You can target an existing inbox tag by passing the Inbox Tag ID in your PUT request. The Inbox Tag ID can be found using the retrieve inbox tags endpoint. At least one of the arguments below is required.

PUT https://dev.slicktext.com/v1/brands/{{brand_id}}/inbox-tags/{{id}}

Arguments

PARAMETER DESCRIPTION
name Name of the Inbox Tag.
description Description of your inbox tag.
active Indicate whether the Link is active (1 or 0).

Example Request Body:

{ "name": "Nashville", "description": “Visited Nashville Store”, "color": "#e69138", "untag_on_thread_close": 0 }

Example Response:

{ "inbox_tag_id": 4, "_brand_id": 3, "name": "Nashville", "description": “Visited Nashville Store”, "color": "#e69138", "untag_on_thread_close": 0, "created": "2024-10-31 15:23:00" }

Delete Inbox Tag

Delete an inbox tag with the Inbox Tag ID equal to {id}. The Inbox Tag ID can be found using the retrieve inbox tags endpoint.

DELETE https://dev.slicktext.com/v1/brands/{{brand_id}}/inbox-tags/{{id}}

Example Response:

[]