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