# Chat Estrutura de dados do contrato OpenAPI. ## Campos | Campo | Tipo | Presença | Descrição | |---|---|---|---| | `id` | `string` | obrigatório | — | | `wa_chatid` | `string` | obrigatório | — | | `name` | `string` | opcional | — | | `wa_name` | `string` | opcional | — | | `wa_contactName` | `string` | opcional | — | | `wa_isGroup` | `boolean` | obrigatório | — | | `wa_unreadCount` | `integer` | opcional | — | | `wa_archived` | `boolean` | opcional | — | | `wa_lastMsgTimestamp` | `integer` | obrigatório | Unix em segundos. Formato: `int64` | | `wa_lastMessageTime` | `integer` | obrigatório | Unix em segundos. Formato: `int64` | | `owner` | `string` | opcional | — | | `phone` | `string` | opcional | Vazio para grupo ou LID sem telefone conhecido. | | `pictureId` | `string` | opcional | — | | `wa_isGroup_announce` | `boolean` | opcional | — | | `participantCount` | `integer` | opcional | — | | `topic` | `string` | opcional | — | ## Definição OpenAPI ```json { "type": "object", "properties": { "id": { "type": "string" }, "wa_chatid": { "type": "string" }, "name": { "type": "string" }, "wa_name": { "type": "string" }, "wa_contactName": { "type": "string" }, "wa_isGroup": { "type": "boolean" }, "wa_unreadCount": { "type": "integer" }, "wa_archived": { "type": "boolean" }, "wa_lastMsgTimestamp": { "type": "integer", "description": "Unix em segundos.", "format": "int64" }, "wa_lastMessageTime": { "type": "integer", "description": "Unix em segundos.", "format": "int64" }, "owner": { "type": "string" }, "phone": { "type": "string", "description": "Vazio para grupo ou LID sem telefone conhecido." }, "pictureId": { "type": "string" }, "wa_isGroup_announce": { "type": "boolean" }, "participantCount": { "type": "integer" }, "topic": { "type": "string" } }, "required": [ "id", "wa_chatid", "wa_isGroup", "wa_lastMsgTimestamp", "wa_lastMessageTime" ] } ```