> ## 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 contacts

> Searches stored contacts, optionally filtered by a `where` clause. Send an empty body to return all contacts.



## OpenAPI

````yaml openapi.evolution-v2.json POST /chat/findContacts/{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/findContacts/{instance}:
    post:
      tags:
        - Chat
      summary: Find contacts
      description: >-
        Searches stored contacts, optionally filtered by a `where` clause. Send
        an empty body to return all contacts.
      operationId: post__chat_findContacts_instance
      parameters:
        - name: instance
          in: path
          required: true
          schema:
            type: string
          description: The number's display name in the Pilot Status dashboard.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                where:
                  type: object
                  description: Filter with any of `_id`, `id`, `pushName`, `remoteJid`.
                  example:
                    id: 5511999999999@s.whatsapp.net
      responses:
        '200':
          description: Success — provider-native response body.
          content:
            application/json:
              schema:
                type: array
                description: >-
                  Stored contacts for the instance, each annotated with derived
                  isGroup/isSaved/type flags.
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      description: Contact record id (cuid).
                    remoteJid:
                      type: string
                      description: Contact JID.
                    pushName:
                      type:
                        - string
                        - 'null'
                      description: Display/push name.
                    profilePicUrl:
                      type:
                        - string
                        - 'null'
                      description: URL of the contact profile picture.
                    createdAt:
                      type: string
                      description: ISO timestamp when created.
                    updatedAt:
                      type: string
                      description: ISO timestamp of last update.
                    instanceId:
                      type: string
                      description: Owning instance id.
                    isGroup:
                      type: boolean
                      description: True when remoteJid ends with @g.us.
                    isSaved:
                      type: boolean
                      description: True when the contact has a pushName or profilePicUrl.
                    type:
                      type: string
                      description: 'Derived category: "group", "contact" or "group_member".'
                  required:
                    - id
                    - remoteJid
                    - instanceId
                    - isGroup
                    - isSaved
                    - type
              example:
                - id: clzcontact001aaa111bbb222
                  remoteJid: 5511999999999@s.whatsapp.net
                  pushName: Maria Silva
                  profilePicUrl: https://pps.whatsapp.net/v/t61.24694-24/123456_abcdef.jpg
                  createdAt: '2026-07-01T10:00:00.000Z'
                  updatedAt: '2026-07-09T18:20:00.000Z'
                  instanceId: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                  isGroup: false
                  isSaved: true
                  type: contact
                - id: clzcontact002ccc333ddd444
                  remoteJid: 120363012345678901@g.us
                  pushName: Equipe Vendas
                  profilePicUrl: null
                  createdAt: '2026-07-02T09:30:00.000Z'
                  updatedAt: '2026-07-09T12:00:00.000Z'
                  instanceId: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                  isGroup: true
                  isSaved: true
                  type: group
        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>`.

````