v1
Messages

List a contact's conversations

GET/api/v1/messages/contact/{contactId}/conversations

Returns the conversations the company has with a contact, one per channel and number.

The API key needs the scopeRead messagesmessages.read

Parameters

NameInDescription
contactIdrequiredstring (uuid)pathContact id.

Responses

200The contact's conversations.
application/json
[
  {
    "conversationId": "3c8e1a5d-7b2f-4d6a-9e0c-5a1f8b3d7e29",
    "isGroup": false,
    "contact": {
      "id": "af147888-ebb0-4ec9-92e5-da66cd561461",
      "name": "Fulano de Tal",
      "phoneNumber": "5511988887777",
      "profileImageUrl": null,
      "email": "[email protected]"
    },
    "provider": "MetaWaba",
    "isServiceWindowOpen": true,
    "serviceWindowExpiresAt": "2026-11-26T17:38:50Z",
    "unreadCount": 0,
    "lastActivityAt": "2026-11-25T17:40:06Z",
    "createdAt": "2026-11-18T10:12:33.870254Z",
    "assignedUserId": "5a3dc17c-3dc5-4770-bb35-0bff55f3151b",
    "assignedUserName": "Sicrano de Tal",
    "assignmentStatus": "assigned"
  }
]
401Missing or invalid credentials. The response is the same for a key that does not exist and for a wrong secret; without the X-API-KEY header, it comes with no body.
application/json
{
  "error": "unauthorized",
  "message": "Credenciais de API inválidas."
}
403The key authenticated, but it lacks the scope the route requires, or the plan does not include the feature.
application/json
{
  "error": "forbidden",
  "message": "A chave de API não tem acesso a esta rota: falta o escopo exigido, ou a rota não aceita chave de API."
}
404The record does not exist in this company.
application/json
{
  "error": "not_found",
  "message": "Registro não encontrado."
}
429The requests-per-minute limit was reached. Wait for the time given in the Retry-After header.
application/json
{
  "error": "too_many_requests",
  "message": "Muitas requisições com esta chave de API. Aguarde o fim da janela e tente novamente."
}
curl -X GET "https://api.guria.io/api/v1/messages/contact/{contactId}/conversations" \
  -H "X-API-KEY: $GURIA_API_KEY" \
  -H "X-API-SECRET: $GURIA_API_SECRET"
Response · 200
[
  {
    "conversationId": "3c8e1a5d-7b2f-4d6a-9e0c-5a1f8b3d7e29",
    "isGroup": false,
    "contact": {
      "id": "af147888-ebb0-4ec9-92e5-da66cd561461",
      "name": "Fulano de Tal",
      "phoneNumber": "5511988887777",
      "profileImageUrl": null,
      "email": "[email protected]"
    },
    "provider": "MetaWaba",
    "isServiceWindowOpen": true,
    "serviceWindowExpiresAt": "2026-11-26T17:38:50Z",
    "unreadCount": 0,
    "lastActivityAt": "2026-11-25T17:40:06Z",
    "createdAt": "2026-11-18T10:12:33.870254Z",
    "assignedUserId": "5a3dc17c-3dc5-4770-bb35-0bff55f3151b",
    "assignedUserName": "Sicrano de Tal",
    "assignmentStatus": "assigned"
  }
]