List conversations

Threads from Messaging > Conversations, filterable by state, topic and sentiment.

GET https://cotlet.dev/api/v1/postscript/conversations

read

Returns subscriber threads with the last message, the topic Postscript assigned (for example Shipping or Payment) and the sentiment. Filters match the dashboard's Thread State, Last Response Topic and Last Response Sentiment and can be combined. Two-way messaging works for US and Canadian subscribers.

Parameters

Parameters: list_conversations
NameTypeDescription
thread_state enum enum all, unresolved or resolved. Default: all.
topic string string Last Response Topic, for example Shipping or Payment.
sentiment enum enum negative or positive.

Request

cURL
curl https://cotlet.dev/api/v1/postscript/conversations \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("postscript", "list_conversations")
Node.js
const result = await cotlet.call('postscript', 'list_conversations');
CLI
cotlet call postscript list_conversations

Example response

JSON

{
  "conversations": [
    {
      "conversation_id": "c_90412",
      "subscriber_id": "7740215",
      "subscriber_name": "Dana R.",
      "last_message": "Where is my order?",
      "topic": "Shipping",
      "sentiment": null,
      "thread_state": "unresolved"
    },
    {
      "conversation_id": "c_90377",
      "subscriber_id": "7712968",
      "subscriber_name": "Chris M.",
      "last_message": "I want a refund",
      "topic": "Payment",
      "sentiment": "negative",
      "thread_state": "unresolved"
    }
  ]
}

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.