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

# Find a contact

> Find a contact by email address or user ID.

Search for a contact by `email` or `userId`. Only one parameter is allowed.


## OpenAPI

````yaml /openapi.json get /v1/contacts/find
openapi: 3.1.0
info:
  title: Loops OpenAPI Spec
  description: This is the OpenAPI Spec for the [Loops API](https://loops.so/docs/api).
  version: 1.21.0
servers:
  - url: https://app.loops.so/api
security: []
tags:
  - name: API key
  - name: Audience segments
    description: View audience segments
  - name: Campaigns
    description: Create and manage email campaigns
  - name: Campaign groups
    description: Organize campaigns into groups
  - name: Components
    description: View email components
  - name: Configuration
    description: View configuration settings
  - name: Contacts
    description: Manage contacts in your audience
  - name: Contact properties
    description: Manage contact properties
  - name: Email messages
    description: Manage email message content for campaigns
  - name: Events
    description: Trigger workflows with events
  - name: Event patterns
    description: View workflow event patterns
  - name: Mailing lists
    description: View mailing lists
  - name: Themes
    description: View email themes
  - name: Transactional emails
    description: Create, manage, and send transactional emails
  - name: Transactional groups
    description: Organize transactional emails into groups
  - name: Uploads
    description: Upload image assets
  - name: Workflows
    description: View and mutate workflow graphs
  - name: Workflow nodes
    description: View and mutate workflow nodes
paths:
  /v1/contacts/find:
    get:
      tags:
        - Contacts
      summary: Find a contact
      description: >-
        Search for a contact by `email` or `userId`. Only one parameter is
        allowed.
      parameters:
        - name: email
          in: query
          required: false
          description: Email address (URI-encoded)
          schema:
            type: string
        - name: userId
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: >-
            List of contacts (or an empty array if no contact was found).
            Contact objects will include any custom properties.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Contact'
        '400':
          description: Bad request (e.g. invalid email address).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactFailureResponse'
        '405':
          description: Wrong HTTP request method.
      security:
        - apiKey: []
components:
  schemas:
    Contact:
      type: object
      properties:
        id:
          type: string
          description: The contact's Loops ID.
        email:
          type: string
          description: The contact's email address.
        firstName:
          type:
            - string
            - 'null'
          description: The contact's first name.
        lastName:
          type:
            - string
            - 'null'
          description: The contact's last name.
        source:
          type: string
          description: The source the contact was created from.
        subscribed:
          type: boolean
          description: Whether the contact will receive campaign and workflow emails.
        userGroup:
          type: string
          description: The contact's user group.
        userId:
          type:
            - string
            - 'null'
          description: The contact's unique user ID.
        mailingLists:
          type: object
          description: >-
            Mailing lists the contact is subscribed to, represented by key-value
            pairs of mailing list IDs and `true`.
          examples:
            - cm06f5v0e45nf0ml5754o9cix: true
        optInStatus:
          type:
            - string
            - 'null'
          description: >-
            Double opt-in status. This will be `null` for contacts unless they
            are created via a form while double opt-in is enabled.
          enum:
            - accepted
            - pending
            - rejected
            - null
    ContactFailureResponse:
      type: object
      properties:
        success:
          type: boolean
          examples:
            - false
        message:
          type: string
      required:
        - success
        - message
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````

## Related topics

- [Bubble integration](/docs/integrations/bubble.md)
- [Zapier integration](/docs/integrations/zapier.md)
- [API Introduction](/docs/api-reference/intro.md)
- [API Changelog](/docs/api-reference/changelog.md)
- [Double opt-in](/docs/contacts/double-opt-in.md)
