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

# Search contacts

> Returns masked contact previews in contact ID order for stores whose people your team has already unlocked in Shoplist.



## OpenAPI

````yaml /openapi/v1.json post /v1/contacts/search
openapi: 3.1.0
info:
  title: Shoplist API
  version: 1.0.0
servers:
  - url: https://api.shoplist.co
security: []
tags:
  - name: Account
  - name: Vocabulary
  - name: Stores
  - name: Apps
  - name: Contacts
  - name: Exports
  - name: Events
  - name: Webhooks
paths:
  /v1/contacts/search:
    post:
      tags:
        - Contacts
      summary: Search contacts
      description: >-
        Returns masked contact previews in contact ID order for stores whose
        people your team has already unlocked in Shoplist.
      operationId: searchContacts
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                limit:
                  default: 20
                  description: The maximum number of contacts to return, from 1 to 50.
                  type: integer
                  minimum: 1
                  maximum: 50
                cursor:
                  description: The opaque cursor returned by the preceding page.
                  type: string
                  pattern: ^[A-Za-z0-9_-]+$
                filters:
                  default: {}
                  description: The filters that contacts must match.
                  type: object
                  properties:
                    query:
                      description: >-
                        Matches a contact name or the name or domain of their
                        store.
                      type: string
                      minLength: 1
                      maxLength: 120
                    title:
                      description: >-
                        The case-insensitive substring of the job title to
                        match.
                      type: string
                      minLength: 1
                      maxLength: 120
                    seniority:
                      description: The exact seniority label to match, ignoring case.
                      type: string
                      minLength: 1
                      maxLength: 80
                    store_domain:
                      description: The public domain of the store to search.
                      type: string
                      minLength: 1
                      maxLength: 253
                  additionalProperties: false
              additionalProperties: false
            example:
              filters:
                store_domain: shop.example
              limit: 20
      responses:
        '200':
          description: Successful response
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        object:
                          type: string
                          const: contact
                          description: The resource type.
                        id:
                          type: string
                          minLength: 1
                          maxLength: 64
                          description: >-
                            The opaque contact identifier, which clients should
                            treat as an uninterpreted string.
                        store_id:
                          anyOf:
                            - type: string
                              minLength: 1
                              maxLength: 64
                              description: >-
                                The opaque store identifier, which clients
                                should treat as an uninterpreted string.
                            - type: 'null'
                          description: >-
                            The opaque identifier of the associated store, when
                            available.
                        masked_name:
                          type: string
                          pattern: \S
                          description: The contact name with identifying characters masked.
                        title:
                          anyOf:
                            - type: string
                              pattern: \S
                            - type: 'null'
                          description: The job title of the contact.
                        seniority:
                          anyOf:
                            - type: string
                              pattern: \S
                            - type: 'null'
                          description: The seniority level of the contact.
                        has_email:
                          type: boolean
                          description: >-
                            Whether a work email address is available for the
                            contact.
                        has_phone:
                          type: boolean
                          description: Whether a phone number is available for the contact.
                        has_linkedin:
                          type: boolean
                          description: >-
                            Whether a LinkedIn profile is available for the
                            contact.
                        revealed:
                          type: boolean
                          const: false
                          description: >-
                            Whether the caller has received the unmasked name
                            and available contact channels in this record.
                      required:
                        - object
                        - id
                        - store_id
                        - masked_name
                        - title
                        - seniority
                        - has_email
                        - has_phone
                        - has_linkedin
                        - revealed
                      additionalProperties: false
                    description: The resources on this page.
                  has_more:
                    type: boolean
                    description: Whether additional results are available.
                  next_cursor:
                    anyOf:
                      - type: string
                        pattern: ^[A-Za-z0-9_-]+$
                        description: The opaque base64url cursor.
                      - type: 'null'
                    description: The opaque cursor for the next page, or null at the end.
                required:
                  - data
                  - has_more
                  - next_cursor
                additionalProperties: false
              example:
                data:
                  - object: contact
                    id: 07a00000-0000-4000-8000-000000000006
                    store_id: 07a00000-0000-4000-8000-000000000004
                    masked_name: Taylor O.
                    title: Director of Operations
                    seniority: Director
                    has_email: true
                    has_phone: false
                    has_linkedin: false
                    revealed: false
                has_more: false
                next_cursor: null
        '400':
          description: Invalid request
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: invalid_request
                      type:
                        const: https://shoplist.co/docs/errors#invalid_request
                      title:
                        const: Invalid request
                      status:
                        const: 400
        '401':
          description: Unauthenticated
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: unauthenticated
                      type:
                        const: https://shoplist.co/docs/errors#unauthenticated
                      title:
                        const: Unauthenticated
                      status:
                        const: 401
        '402':
          description: Plan required
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: plan_required
                      type:
                        const: https://shoplist.co/docs/errors#plan_required
                      title:
                        const: Plan required
                      status:
                        const: 402
        '403':
          description: Insufficient scope
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: insufficient_scope
                      type:
                        const: https://shoplist.co/docs/errors#insufficient_scope
                      title:
                        const: Insufficient scope
                      status:
                        const: 403
        '413':
          description: Payload too large
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: payload_too_large
                      type:
                        const: https://shoplist.co/docs/errors#payload_too_large
                      title:
                        const: Payload too large
                      status:
                        const: 413
        '429':
          description: Rate limit exceeded
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
            RateLimit-Limit:
              schema:
                type: integer
                minimum: 0
            RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Seconds until the rate limit resets.
              schema:
                type: integer
                minimum: 0
            Retry-After:
              required: true
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 0
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: rate_limited
                      type:
                        const: https://shoplist.co/docs/errors#rate_limited
                      title:
                        const: Rate limit exceeded
                      status:
                        const: 429
        '500':
          description: Internal error
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: internal_error
                      type:
                        const: https://shoplist.co/docs/errors#internal_error
                      title:
                        const: Internal error
                      status:
                        const: 500
        '503':
          description: Service unavailable
          headers:
            X-Request-Id:
              required: true
              schema:
                type: string
                pattern: ^req_[a-f0-9]{24}$
                description: The server-generated identifier for this request.
            RateLimit-Limit:
              schema:
                type: integer
                minimum: 0
            RateLimit-Remaining:
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Seconds until the rate limit resets.
              schema:
                type: integer
                minimum: 0
            Retry-After:
              required: true
              description: Seconds to wait before retrying.
              schema:
                type: integer
                minimum: 0
          content:
            application/problem+json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Problem'
                  - properties:
                      code:
                        const: service_unavailable
                      type:
                        const: https://shoplist.co/docs/errors#service_unavailable
                      title:
                        const: Service unavailable
                      status:
                        const: 503
      security:
        - bearerAuth: []
components:
  schemas:
    Problem:
      type: object
      properties:
        type:
          type: string
          description: The URL that identifies and documents this error type.
        title:
          type: string
          minLength: 1
          description: The fixed title of the error type.
        status:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
          description: The HTTP status code of the response.
        detail:
          type: string
          minLength: 1
          description: An explanation of the error for this request.
        code:
          type: string
          enum:
            - invalid_request
            - unauthenticated
            - plan_required
            - allowance_exceeded
            - insufficient_credits
            - spending_cap_exceeded
            - insufficient_scope
            - not_found
            - method_not_allowed
            - idempotency_in_progress
            - cursor_expired
            - payload_too_large
            - idempotency_key_reused
            - rate_limited
            - internal_error
            - service_unavailable
          description: The stable machine-readable error code.
        request_id:
          type: string
          pattern: ^req_[a-f0-9]{24}$
          description: The server-generated identifier for this request.
        errors:
          description: Details for up to 20 invalid inputs.
          maxItems: 20
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                description: The dotted path to the invalid input.
              message:
                type: string
                minLength: 1
                description: The validation message for that input.
            required:
              - path
              - message
            additionalProperties: false
      required:
        - type
        - title
        - status
        - detail
        - code
        - request_id
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.