ByDomuDevelopers

Mensajes de una conversación

GEThttps://api.bydomu.com/v1/conversations/{contactId}/messages

This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.

Mensajes con el contacto, del más reciente al más antiguo (pageSize por defecto 50, máximo 100).

Permission required

conversations:read

Required header

X-API-Key · secret key

Access level

Level 2 · automatic on Inmobiliaria Pro

Path parameters

1 · required
contactIdstring · required
ID del contacto

Query parameters

2 · all optional
pageinteger · optional
Página, desde 1default 1 · ≥ 1
pageSizeinteger · optional
Mensajes por página (máximo 100)default 50 · 1–100

Response 200

ConversationMessage[] · 7 fields
data[]id · body · direction · type · timestamp · mediaUrl · channel
idstring
bodystring
directionstringINBOUND, OUTBOUND
typestringTEXT, IMAGE, DOCUMENT, AUDIO, VIDEO, LOCATION
timestampstring
mediaUrlstring
channelstringWHATSAPP, INSTAGRAM, FACEBOOK, SMS, EMAIL, WEB
metaPaginación por número de página.
totalintegerTotal de registros
pageintegerPágina actual
pageSizeintegerRegistros por página
totalPagesintegerTotal de páginas

Possible errors

shaped as { "error": { "code", "message" } }
  • 400Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
  • 401UNAUTHORIZED
  • 403FORBIDDEN
  • 404NOT_FOUND
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
RequestGET/v1/conversations/{contactId}/messages
Official SDK · @bydomu/sdk · not on npm yet
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data, meta } = await bydomu.conversations.listMessages("clx1con001");
200 OK · example
{
  "data": [
    {
      "id": "clx1msg001",
      "body": "Hola, ¿sigue disponible el apartamento?",
      "direction": "INBOUND",
      "type": "TEXT",
      "timestamp": "2026-09-25T10:30:00.000Z",
      "mediaUrl": "https://cdn.bydomu.com/wa/media/abc.jpg",
      "channel": "WHATSAPP"
    }
  ],
  "meta": {
    "total": 150,
    "page": 1,
    "pageSize": 20,
    "totalPages": 8
  }
}