GET
/
v2
/
workspace
/
{workspaceId}
/
chats
curl --request GET \
  --url https://api.gptmaker.ai/v2/workspace/{workspaceId}/chats \
  --header 'Authorization: Bearer <token>'
[
  {
    "humanTalk": true,
    "userPicture": "<string>",
    "messageUserName": "<string>",
    "read": true,
    "role": "<string>",
    "agentName": "<string>",
    "agentId": "<string>",
    "whatsappPhone": "<string>",
    "finished": true,
    "avatar": "<string>",
    "title": "<string>",
    "type": "<string>",
    "userName": "<string>",
    "userId": "<string>",
    "picture": "<string>",
    "conversationType": "<string>",
    "createdAt": 123,
    "name": "<string>",
    "recipient": "<string>",
    "id": "<string>",
    "time": 123,
    "unReadCount": 123,
    "conversation": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

ID do workspace

Query Parameters

agentId
string

ID do agente para filtrar os chats

page
integer

Número da página

pageSize
integer

Tamanho da página

query
string

Filtro para o nome do chat

Response

200
application/json

Lista de chats

The response is of type object[].