Skip to main content
GET
/
api
/
v1
/
conversations
cURL
curl --request GET \
  --url https://backend.wassist.app/api/v1/conversations/ \
  --header 'X-API-Key: <api-key>'
{
  "count": 123,
  "results": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "contact": "<string>",
      "agent": "<string>",
      "chatWindowRemainingTime": "<string>",
      "lastMessage": "<string>",
      "isHumanTakeover": "<string>",
      "active": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "credits": -1
    }
  ],
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100"
}

Authorizations

X-API-Key
string
header
required

API key authentication. Pass your API key in the X-API-Key header.

Query Parameters

agent
string<uuid>
contact
string
Minimum string length: 1
hasUnread
boolean
lastMessageAfter
string<date-time>
lastMessageBefore
string<date-time>
limit
integer

Pagination limit (default 20, max 100)

offset
integer

Pagination offset (default 0)

status
enum<string>
  • active - active
  • closed - closed
Available options:
active,
closed
Minimum string length: 1

Response

200 - application/json
count
integer
required
Example:

123

results
object[]
required
next
string<uri> | null
Example:

"http://api.example.org/accounts/?offset=400&limit=100"

previous
string<uri> | null
Example:

"http://api.example.org/accounts/?offset=200&limit=100"