> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pilotstatus.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Find chat by JID

> Returns the chat matching the given remote JID. Pass `remoteJid` as a required query parameter (e.g. `?remoteJid=5511999999999@s.whatsapp.net`); there is no request body.



## OpenAPI

````yaml openapi.evolution-v2.json GET /chat/findChatByRemoteJid/{instance}
openapi: 3.1.0
info:
  title: Evolution V2 Layer
  version: 1.0.0
  description: >-
    Pilot Status API Layer — Evolution V2. Base URL
    `https://pilotstatus.com.br/api/layer/evolution-v2`. Authenticate with the
    `apikey` header (your Pilot Status `ps_` key). Instance/session endpoints
    are NOT available through the layer.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-v2
security:
  - apiKey: []
tags:
  - name: Call & Business
  - name: Chat
  - name: Group
  - name: Label
  - name: Message
  - name: Profile
  - name: Settings & Proxy
  - name: Storage (S3)
  - name: Template
paths:
  /chat/findChatByRemoteJid/{instance}:
    get:
      tags:
        - Chat
      summary: Find chat by JID
      description: >-
        Returns the chat matching the given remote JID. Pass `remoteJid` as a
        required query parameter (e.g.
        `?remoteJid=5511999999999@s.whatsapp.net`); there is no request body.
      operationId: get__chat_findChatByRemoteJid_instance
      parameters:
        - name: instance
          in: path
          required: true
          schema:
            type: string
          description: The number's display name in the Pilot Status dashboard.
      responses:
        '200':
          description: Success — provider-native response body.
          content:
            application/json:
              schema:
                type:
                  - object
                  - 'null'
                description: >-
                  The stored Chat record for the given remoteJid, or null when
                  no chat exists.
                properties:
                  id:
                    type: string
                    description: Chat record id (cuid).
                  remoteJid:
                    type: string
                    description: Chat JID.
                  name:
                    type:
                      - string
                      - 'null'
                    description: Chat/group name, when known.
                  labels:
                    type:
                      - array
                      - 'null'
                    items:
                      type: string
                    description: Label ids applied to the chat.
                  createdAt:
                    type: string
                    description: ISO timestamp when the chat was created.
                  updatedAt:
                    type: string
                    description: ISO timestamp of last update.
                  instanceId:
                    type: string
                    description: Owning instance id.
                  unreadMessages:
                    type: integer
                    description: Count of unread messages in the chat.
                required:
                  - id
                  - remoteJid
                  - instanceId
                  - unreadMessages
              example:
                id: clzabc123def456ghi789jkl
                remoteJid: 5511999999999@s.whatsapp.net
                name: Maria Silva
                labels: []
                createdAt: '2026-07-09T13:00:00.000Z'
                updatedAt: '2026-07-09T18:20:00.000Z'
                instanceId: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                unreadMessages: 2
        default:
          description: Error — provider or layer error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  response:
                    type: object
              example:
                status: 400
                error: Bad Request
                message: Invalid payload
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Your Pilot Status API key (ps_...). Evolution GO also accepts
        `Authorization: Bearer <key>`.

````