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

# List clients

> Returns clients in your organization, newest first. Supports opaque cursor pagination. Pass `crmEntityId` to look up a single client by its external CRM id (returns the list shape with 0 or 1 client).



## OpenAPI

````yaml /openapi.json get /v1/clients
openapi: 3.1.0
info:
  title: Sales Ask API
  version: 1.0.0
  description: >-
    Public API for integrating with Sales Ask. Authenticate every request using
    your organization API key in the x-api-key header. To generate an API key,
    call POST /organizations/:organizationId/api-key while authenticated as an
    organization admin.
servers:
  - url: https://integrations.salesask.com
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /v1/clients:
    get:
      tags:
        - Clients
      summary: List clients
      description: >-
        Returns clients in your organization, newest first. Supports opaque
        cursor pagination. Pass `crmEntityId` to look up a single client by its
        external CRM id (returns the list shape with 0 or 1 client).
      operationId: listClients
      parameters:
        - name: crmEntityId
          in: query
          schema:
            type: string
          description: >-
            Return only the client with this external CRM entity id (unique per
            org). Ignores pagination.
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          description: Number of results to return.
        - name: startAfter
          in: query
          schema:
            type: string
          description: >-
            Opaque pagination cursor. Pass the nextCursor value from the
            previous response.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  clients:
                    type: array
                    items:
                      $ref: '#/components/schemas/Client'
                  nextCursor:
                    type: string
                    nullable: true
                    description: >-
                      Opaque cursor for the next page, or null when there are no
                      more results.
                  hasMore:
                    type: boolean
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Client:
      type: object
      properties:
        id:
          type: string
          description: Client document id.
        name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        crmEntityId:
          type: string
          nullable: true
          description: >-
            External CRM entity id (unique per organization). Look up with GET
            /v1/clients?crmEntityId=...
        address:
          type: string
          nullable: true
        insights:
          type: object
          nullable: true
          description: AI-generated insights about the client.
          additionalProperties: true
        insightsUpdatedAt:
          type: string
          format: date-time
          nullable: true
          description: When insights were last regenerated.
        notes:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
          nullable: true
        updatedAt:
          type: string
          format: date-time
          nullable: true
    Error:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````