Bulk Conversation Statuses

You may want to occasionally query the total state of conversations in your (or a connected orgs) account without having to scroll through the conversation API.

The following endpoint will return a count of conversations by status in the current account.

GET https://driftapi.com/conversations/stats

{
    "conversationCount": {
        "CLOSED": (optional int),
        "OPEN": (optional int),
        "PENDING": (optional int)
    }
}

🚧

A note on optional count status values

Note that each property will be absent if the count is 0. i.e. a response with "conversationCount" : {} indicates no conversations.

Example response:

{
    "conversationCount": {
        "CLOSED": 282,
        "OPEN": 125
    }
}

Did this page help you?