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

# List business lead records for current user

> Lists leads visible to the current user with paging, sorting, filters, tags, and archive status for pipeline review.



## OpenAPI

````yaml /openapi.json post /leads/all/my
openapi: 3.0.4
info:
  title: Leadping API
  description: >-
    Leadping API for lead intake, messaging, calling, automations, billing,
    business settings, and compliant lead communication workflows.
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  version: v1
servers:
  - url: https://api.leadping.ai
    description: Production
security: []
tags:
  - name: Analytics
  - name: Automations
  - name: Contact
  - name: Conversations
  - name: Dispositions
  - name: Feedback
  - name: Leads
  - name: LeadStatuses
  - name: Notifications
  - name: OutboundDelivery
  - name: Sources
  - name: Suppressions
  - name: Tags
  - name: Users
  - name: Calls
  - name: PhoneNumbers
  - name: Sms
  - name: Telephony
  - name: UserDataExports
  - name: CallEvents
  - name: Events
  - name: SmsEvents
  - name: Businesses
  - name: PaymentMethods
  - name: Transactions
  - name: Usage
  - name: Wallets
paths:
  /leads/all/my:
    post:
      tags:
        - Leads
      summary: List business lead records for current user
      description: >-
        Lists leads visible to the current user with paging, sorting, filters,
        tags, and archive status for pipeline review.
      operationId: Leads_GetAllForCurrentUser
      parameters:
        - name: tagIds
          in: query
          schema:
            type: array
            items:
              type: string
        - name: tagMatchAll
          in: query
          schema:
            type: boolean
        - name: untagged
          in: query
          schema:
            type: boolean
        - name: archiveFilter
          in: query
          schema:
            type: string
      requestBody:
        description: A token to cancel the operation.
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/RequestDataOptions'
              description: >-
                Options for flexible, efficient, and explicit querying in Cosmos
                DB or similar repositories.
          application/*+json:
            schema:
              allOf:
                - $ref: '#/components/schemas/RequestDataOptions'
              description: >-
                Options for flexible, efficient, and explicit querying in Cosmos
                DB or similar repositories.
        required: true
      responses:
        '200':
          description: Leads were successfully retrieved.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/PagedResultOfLeadTableRow'
                description: >-
                  A generic container for paginated results returned to the
                  client.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    RequestDataOptions:
      type: object
      properties:
        pageSize:
          pattern: ^-?(?:0|[1-9]\d*)$
          description: Maximum items to return in one page
          format: int32
        continuationToken:
          type: string
          description: >-
            Opaque Cosmos DB continuation token. ‑ on the **first** request. ‑
            Client must echo back the NextToken it received from the previous
            page.
          nullable: true
        orderBy:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/OrderByOption'
            description: An object for ordering during querying
          description: List of sort instructions, in priority order.
          nullable: true
        includeCount:
          type: boolean
          description: Whether to include the total count in the response (for pagination).
          nullable: true
        search:
          type: string
          description: The search term to filter results (applied to ).
          nullable: true
        searchFields:
          type: array
          items:
            type: string
          description: >-
            The list of fields to apply the Search term to (must be string
            properties).
          nullable: true
        filters:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/ExactMatchFilter'
            description: >-
              A generic object for handling exact match filtering during
              querying
          description: Key-value exact match filters (e.g., Status = Active).
          nullable: true
        rangeFilters:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/RangeFilter'
            description: A generic object for handling range filtering during querying
          description: Advanced range-based filters (e.g., Price > 50 and Price <= 200).
          nullable: true
      description: >-
        Options for flexible, efficient, and explicit querying in Cosmos DB or
        similar repositories.
    PagedResultOfLeadTableRow:
      type: object
      properties:
        items:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/LeadTableRow'
            description: >-
              List item schema for Leadping API lead table row results shown in
              searchable tables.
          description: The subset of items returned for the current page.
        pageSize:
          pattern: ^-?(?:0|[1-9]\d*)$
          description: >-
            The number of items returned per page in the response. This may
            reflect the client's requested page size, or a server-defined
            default or limit.
          format: int32
        totalCount:
          pattern: ^-?(?:0|[1-9]\d*)$
          description: >-
            The total number of items that match the query across all pages. May
            be null if the count is not computed or not applicable (e.g., in
            continuation-based pagination).
          format: int32
          nullable: true
        continuationToken:
          type: string
          description: >-
            Opaque storage continuation token. ‑ `null` → the current page was
            the last page.
          nullable: true
      description: A generic container for paginated results returned to the client.
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          description: URI reference that identifies the problem type.
          nullable: true
        title:
          type: string
          description: Short, human-readable summary of the problem.
          nullable: true
        status:
          pattern: ^-?(?:0|[1-9]\d*)$
          description: HTTP status code returned for the problem.
          format: int32
          nullable: true
        detail:
          type: string
          description: >-
            Human-readable explanation specific to this occurrence of the
            problem.
          nullable: true
        instance:
          type: string
          description: >-
            URI reference that identifies this specific occurrence of the
            problem.
          nullable: true
    OrderByOption:
      type: object
      properties:
        field:
          type: string
          description: The field to sort by.
        direction:
          enum:
            - asc
            - desc
          type: string
          description: An enumerator for sort direction during querying
          nullable: true
      description: An object for ordering during querying
    ExactMatchFilter:
      type: object
      properties:
        value:
          description: The value that the field must match.
        field:
          type: string
          description: The field to filter by.
      description: A generic object for handling exact match filtering during querying
    RangeFilter:
      type: object
      properties:
        greaterThan:
          description: The exclusive lower bound for the field value.
        greaterThanOrEqual:
          description: The inclusive lower bound for the field value.
        lessThan:
          description: The exclusive upper bound for the field value.
        lessThanOrEqual:
          description: The inclusive upper bound for the field value.
        field:
          type: string
          description: The field to filter by.
      description: A generic object for handling range filtering during querying
    LeadTableRow:
      type: object
      properties:
        id:
          type: string
          description: Unique Leadping identifier for this lead table row.
        firstName:
          type: string
          description: >-
            First name of the lead, user, or contact represented by this lead
            table row.
          nullable: true
        lastName:
          type: string
          description: >-
            Last name of the lead, user, or contact represented by this lead
            table row.
          nullable: true
        phone:
          type: string
          description: >-
            Phone details for the lead, user, or business represented by this
            lead table row.
        email:
          type: string
          description: Email address for the person represented by this lead table row.
        createdAt:
          type: string
          description: UTC timestamp when this lead table row was created.
          format: date-time
        updatedAt:
          type: string
          description: UTC timestamp when this lead table row was last updated.
          format: date-time
        status:
          type: string
          description: >-
            Current lifecycle status for this lead table row in the Leadping
            API.
        statusTone:
          type: string
          description: >-
            Presentation tone that helps clients style the current status of
            this lead table row.
        enabled:
          type: boolean
          description: >-
            Indicates whether this lead table row is active and available in the
            Leadping API.
        archivedAt:
          type: string
          description: UTC timestamp when this record was archived.
          format: date-time
          nullable: true
        archivedByUserId:
          type: string
          description: User ID of the person who archived this record.
          nullable: true
        archiveReason:
          enum:
            - 0
            - 1
            - 2
            - 3
            - 4
            - 5
            - 6
            - 7
            - 8
            - 9
          type: integer
          description: Defines why a lead was removed from the active working pipeline.
          format: int32
          nullable: true
        isArchived:
          type: boolean
          description: Whether this lead is archived.
        currentDisposition:
          type: object
          allOf:
            - $ref: '#/components/schemas/CurrentDispositionSummary'
          description: Current disposition summary that describes the lead outcome.
          nullable: true
        price:
          pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?$
          description: Lead price or transaction price supplied to the Leadping API.
          format: double
          nullable: true
        business:
          type: object
          allOf:
            - $ref: '#/components/schemas/IdNamePair'
          description: The ID and name for this business.
          nullable: true
        source:
          type: object
          allOf:
            - $ref: '#/components/schemas/IdNamePair'
          description: The ID and name for this source.
          nullable: true
        tags:
          type: array
          items:
            allOf:
              - $ref: '#/components/schemas/TagSummary'
            description: >-
              Summary schema for Leadping API tag summary data used in
              dashboards and reports.
          description: Tags currently attached to this lead, source, or record.
      description: >-
        List item schema for Leadping API lead table row results shown in
        searchable tables.
    CurrentDispositionSummary:
      type: object
      properties:
        id:
          type: string
          description: Unique Leadping identifier for this current disposition summary.
          nullable: true
        category:
          enum:
            - Open
            - Qualified
            - Converted
            - Lost
            - Invalid
            - Duplicate
          type: string
          description: >-
            Controlled disposition categories used for reporting, automation,
            and analytics.
          nullable: true
        outcome:
          type: string
          description: Current disposition outcome assigned to the lead.
          nullable: true
        displayName:
          type: string
          description: >-
            Human-readable display name shown for this current disposition
            summary.
        changedAt:
          type: string
          description: UTC timestamp when the disposition last changed.
          format: date-time
          nullable: true
        changedByUserId:
          type: string
          description: User ID of the person who last changed the disposition.
          nullable: true
        changedByAutomationId:
          type: string
          description: Automation ID that last changed the disposition.
          nullable: true
        source:
          enum:
            - User
            - AI
            - Automation
            - System
            - API
          type: string
          description: Known sources that can change a lead's current disposition.
          nullable: true
      description: >-
        Summary schema for Leadping API current disposition summary data used in
        dashboards and reports.
    IdNamePair:
      required:
        - id
        - name
      type: object
      properties:
        id:
          type: string
          description: The unique identifier.
        name:
          type: string
          description: The display name.
      description: >-
        A minimal Record type with an (string), (string), and maximum JSON
        compatibility. The reason for this type (over something like
        KeyValuePair, dictionary) is because of JSON serialization support.
    TagSummary:
      type: object
      properties:
        id:
          type: string
          description: Unique Leadping identifier for this tag summary.
        name:
          type: string
          description: Display name for this tag summary in the Leadping API.
        normalizedName:
          type: string
          description: >-
            Normalized name used for case-insensitive tag matching and
            deduplication.
        color:
          type: string
          description: Hex color used to display this tag or status in Leadping clients.
          nullable: true
      description: >-
        Summary schema for Leadping API tag summary data used in dashboards and
        reports.

````