Conversations

The Conversations API provides operations for creating, retrieving, searching, assigning, resolving, pinning, and managing conversation history.

The API supports both authenticated workspace operations and public visitor operations used by Web Chat.

Endpoints

MethodPathPurpose
POST/conversationsCreate a Conversation
GET/conversationsList active Conversations
GET/conversations/MyconversationList assigned Conversations
GET/conversations/closedList resolved and legacy closed conversations.
GET/conversations/searchSearch Conversations
GET/api/public/conversations/:id/statusReturns whether the public conversation resource has been deleted.
GET/conversations/:idGet Conversation
DELETE/conversations/:idDelete Conversation
PATCH/conversations/:id/assign-agentAssign Conversation
PATCH/conversations/:id/unassign-agentUnassign Conversation
GET/conversations/available-agentsList assignable Agents
PATCH/conversations/:id/mark-seenMark Conversation as seen
GET/conversations/:id/assignment-historyGet assignment history
PATCH/conversations/:id/closeClose Conversation
PATCH/conversations/:id/pinPin Conversation
PATCH/conversations/:id/unpinUnpin Conversation
GET/conversations/unread-countGet unread counts
GET/conversations/counts/reconcileReconcile unread counts
GET/conversations/guest/:guestId/historyGet Guest conversation history
GET/conversations/:id/downloadDownload transcript
POST/conversations/:id/transcriptEmail transcript
GET/api/public/conversations/:id/agentGet public assigned Agent summary
GET/api/public/conversations/:id/metaGet public Conversation status metadata

Listing Conversations

GET /conversations?limit=20&cursor=<CURSOR>

Common filters include:

channelId

unassignedOnly

readStatus

sortBy

sortOrder

Assignment

Assign:

PATCH /conversations/:id/assign-agent

Body:

{

  “agentId”: “<AGENT_ID>”

}

Unassign:

PATCH /conversations/:id/unassign-agent

Conversation Status

The audit currently reports these implementation values:

OPEN

RESOLVED

This is a publication blocker to verify against the current product terminology before this page is considered final.

Need Help?

Email: support@ysdesk.com

Documentation: ttps://docs.ysplugins.com/ys-desk

Next