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

# List Leads

> List the leads in your account, filtered by buyer, status or date, without contact details.

This lists leads that came into your account. It's a different operation from [Submit a Lead](https://docs.usejuiced.com/api-reference/endpoint/v1/leads.md), which shares the `/v1/leads` path. Submitting authenticates as a source, and listing authenticates with an [API key](https://docs.usejuiced.com/api-reference/api-keys.md) that has the `leads:read` ability.

Leads come back newest first, 50 at a time. Pass `next_cursor` back as `cursor`, along with the same filters, to get the next page. A cursor only marks a position in the list, so the filters you send decide what comes back. When `next_cursor` is `null`, you've reached the end. A malformed cursor returns `422` with `validation_failed`.

## Filters

* **`customer`** returns only the leads that customer bought, including ones they returned. Archived customers work too. An ID that isn't one of your customers returns `validation_failed` on `customer`.
* **`partner`** returns only the leads sold to that [partner](https://docs.usejuiced.com/features/partners.md), including ones they returned. Archived partners work too. An ID that isn't one of your partners returns `validation_failed` on `partner`.
* **`status`** returns only leads with that status (see below).
* **`created_after`** and **`created_before`** limit when the lead came in. Send them as ISO 8601 with any offset, like `2026-11-01T00:00:00Z` or `2026-11-01T00:00:00-05:00`, and they're compared in UTC. `created_after` includes leads at that exact time, and `created_before` stops just before it.
* **`include_test=true`** adds test leads, which are left out by default, just like the leads list in Juiced. Looking up a test lead by its ID always works.

## Statuses

`status` uses the same values on the lead and in the filter. Most match the [lead statuses](https://docs.usejuiced.com/features/leads.md#lead-statuses) you see in Juiced, with two renamed for the API.

| `status` | In Juiced |
| - | - |
| `pending`, `processing`, `assigned`, `posted`, `duplicate`, `unassigned`, `withheld`, `marketplace`, `audit`, `uncategorized`, `distribution_error` | The status of the same name |
| `club` | Club |
| `returned` | Returned |

A lead sold more than once has a single `status`, so read `assignments` to see each sale. Every sale has an entry, to a customer or a partner, with exactly one of `customer` and `partner` set. Each entry has what that buyer paid, when it was assigned, and `returned_at` if they returned it. A partner send that's still in progress isn't listed until it's delivered.

The lead's own `price` is what its first sale went for, whether to a customer or a partner.

## What's not included

Lead endpoints never return contact details or other submitted fields. To read those, use [Get Lead Details](https://docs.usejuiced.com/api-reference/endpoint/v1/leads-details.md), which needs its own `lead_details:read` ability.


## OpenAPI

````yaml GET /v1/leads
openapi: 3.1.0
info:
  title: Juiced API
  description: >-
    API for submitting pings and leads to Juiced. Build on the v1 endpoints
    under `/v1`. The unversioned `/ping` and `/leads` endpoints are the frozen
    legacy contract and are deprecated.
  version: 1.0.0
servers:
  - url: https://usejuiced.com/api
    description: Production server
security:
  - Basic Auth: []
  - Bearer Token: []
tags:
  - name: v1
    description: The current API. Build on these endpoints.
  - name: Customers
    description: Create and look up your customers with an API key.
  - name: Leads
    description: Look up your leads and their details with an API key.
  - name: Funds
    description: >-
      Add funds to and remove funds from a customer's balance, and list their
      transactions.
  - name: Bids
    description: Manage your customers' bids and look up your lead types.
  - name: Legacy
    description: The frozen, deprecated unversioned endpoints.
paths:
  /v1/leads:
    get:
      tags:
        - Leads
      summary: List leads
      description: >-
        Lists the leads in your account, newest first, 50 at a time. Filter by
        the customer or partner who bought them, their status, or when they came
        in. Test leads are left out unless you send `include_test=true`.


        No contact details are returned. Get those with [Get Lead
        Details](/api-reference/endpoint/v1/leads-details).


        Authenticates with an API key, not a source's credentials. Requires the
        `leads:read` ability.
      operationId: listLeadsByApiKeyV1
      parameters:
        - name: customer
          in: query
          required: false
          schema:
            type: string
            pattern: ^cus_[0-9a-z]{26}$
          description: >-
            Only leads this customer bought, including ones they returned.
            Archived customers work too.
        - name: partner
          in: query
          required: false
          schema:
            type: string
            pattern: ^prt_[0-9a-z]{26}$
          description: >-
            Only leads sold to this partner, including ones they returned.
            Archived partners work too.
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - pending
              - processing
              - assigned
              - duplicate
              - returned
              - unassigned
              - withheld
              - marketplace
              - club
              - audit
              - posted
              - uncategorized
              - distribution_error
          description: Only leads with this status.
        - name: created_after
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: >-
            Only leads created at or after this time, as ISO 8601 with any
            offset, like `2026-11-01T00:00:00Z` or `2026-11-01T00:00:00-05:00`.
        - name: created_before
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: >-
            Only leads created before this time, as ISO 8601 with any offset. It
            must be later than `created_after`.
        - name: include_test
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: Send `true` to include test leads.
        - name: cursor
          in: query
          required: false
          schema:
            type: string
          description: The `next_cursor` from the previous page.
      responses:
        '200':
          description: A page of leads.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeadRecordListResponseV1'
              example:
                data:
                  - id: lead_01jbx8m2d4f6g8h0j2k4m6n8pq
                    status: assigned
                    lead_type: ltyp_01jbx7q3s5v7w9y1a3c5e7g9hk
                    source: src_01hq3c5e7g9j1k3m5n7p9r1s3t
                    location:
                      country: US
                      state: TX
                      county: Harris
                      county_fips: '48201'
                    price: 25
                    test: false
                    assignments:
                      - customer: cus_01jbx8p4r6t8v0x2z4b6d8f0hk
                        partner: null
                        price: 25
                        assigned_at: '2026-11-20T10:00:00Z'
                        returned_at: null
                      - customer: cus_01jbx9a2c4e6g8j0k2m4p6r8tv
                        partner: null
                        price: 20
                        assigned_at: '2026-11-20T10:00:00Z'
                        returned_at: '2026-11-21T09:30:00Z'
                      - customer: null
                        partner: prt_01h7x1a3c5e7g9j1k3m5n7q9sv
                        price: 18
                        assigned_at: '2026-11-20T10:00:01Z'
                        returned_at: null
                    created_at: '2026-11-20T09:59:58Z'
                next_cursor: null
                version: v1
        '401':
          $ref: '#/components/responses/ApiKeyUnauthenticatedV1'
        '403':
          description: >-
            The key lacks the ability this endpoint needs, your plan doesn't
            include the API, or your account is locked for an unpaid
            subscription.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorV1'
              examples:
                Missing ability:
                  summary: Missing ability
                  value:
                    error:
                      code: bad_request
                      message: This API key does not have the leads:read ability.
                    version: v1
                Plan without the API:
                  summary: Plan without the API
                  value:
                    error:
                      code: bad_request
                      message: >-
                        The API is not included in your plan. Upgrade to a paid
                        plan to use it.
                    version: v1
                Account locked:
                  summary: Account locked
                  value:
                    error:
                      code: bad_request
                      message: This workspace is locked until its subscription is paid.
                    version: v1
        '422':
          description: A filter or the cursor isn't valid.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorV1'
              examples:
                Unknown customer:
                  summary: Unknown customer
                  value:
                    error:
                      code: validation_failed
                      message: No customer has this ID.
                      errors:
                        customer:
                          - No customer has this ID.
                    version: v1
                Unknown partner:
                  summary: Unknown partner
                  value:
                    error:
                      code: validation_failed
                      message: No partner has this ID.
                      errors:
                        partner:
                          - No partner has this ID.
                    version: v1
                Unknown status:
                  summary: Unknown status
                  value:
                    error:
                      code: validation_failed
                      message: The selected status is invalid.
                      errors:
                        status:
                          - The selected status is invalid.
                    version: v1
                Invalid cursor:
                  summary: Invalid cursor
                  value:
                    error:
                      code: validation_failed
                      message: >-
                        The cursor is not valid. Pass the next_cursor from the
                        previous page.
                      errors:
                        cursor:
                          - >-
                            The cursor is not valid. Pass the next_cursor from
                            the previous page.
                    version: v1
        '429':
          $ref: '#/components/responses/RateLimitedV1'
        '500':
          $ref: '#/components/responses/ServerErrorV1'
      security:
        - API Key: []
components:
  headers:
    XRequestId:
      description: >-
        Unique ID for this request, sent on every v1 response (errors included).
        Quote it when contacting support.
      schema:
        type: string
        pattern: ^req_[0-9a-z]{26}$
        example: req_01jbx8k6y3a5c7e9g1j3m5p7rt
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
        example: 30
  schemas:
    LeadRecordListResponseV1:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/LeadRecordV1'
        next_cursor:
          type:
            - string
            - 'null'
          description: Pass as `cursor` to get the next page. `null` on the last page.
        version:
          type: string
          enum:
            - v1
    ErrorV1:
      title: Error
      type: object
      required:
        - error
        - version
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - unauthenticated
                - validation_failed
                - quota_reached
                - ping_mismatch
                - idempotency_conflict
                - idempotency_in_progress
                - idempotency_reserved
                - idempotency_version_mismatch
                - rate_limited
                - not_found
                - method_not_allowed
                - bad_request
                - server_error
              description: Machine-readable error code. Branch on this, not on `message`.
            message:
              type: string
              description: Human-readable explanation.
            errors:
              type: object
              description: Only with `validation_failed`. Messages keyed by field.
              additionalProperties:
                type: array
                items:
                  type: string
            lead_id:
              type: string
              pattern: ^lead_[0-9a-z]{26}$
              description: >-
                Only with `idempotency_version_mismatch`. The lead the
                `transaction_id` already created.
            bid:
              type: string
              pattern: ^bid_[0-9a-z]{26}$
              description: >-
                Only when a customer already has an active bid on that lead type
                and location. That bid's ID, so you can change it instead.
        version:
          type: string
          enum:
            - v1
          description: Always `v1`.
    LeadRecordV1:
      title: Lead
      type: object
      properties:
        id:
          type: string
          pattern: ^lead_[0-9a-z]{26}$
          description: The lead's public ID.
        status:
          type: string
          enum:
            - pending
            - processing
            - assigned
            - duplicate
            - returned
            - unassigned
            - withheld
            - marketplace
            - club
            - audit
            - posted
            - uncategorized
            - distribution_error
          description: >-
            The lead's status. `club` is a lead in your Club and `returned` is a
            lead its buyer returned. When a lead was sold more than once, read
            `assignments` for each sale.
        lead_type:
          type:
            - string
            - 'null'
          description: >-
            The lead type's ID, or `null` when the lead didn't match a lead
            type.
          pattern: ^ltyp_[0-9a-z]{26}$
        source:
          type:
            - string
            - 'null'
          description: The ID of the source that sent the lead.
          pattern: ^src_[0-9a-z]{26}$
        location:
          $ref: '#/components/schemas/LocationV1'
        price:
          type:
            - number
            - 'null'
          description: >-
            What the lead sold for, in dollars, which is its first sale, whether
            to a customer or a partner. Each buyer's own price is in
            `assignments`.
        test:
          type: boolean
          description: Whether the lead is test data.
        assignments:
          type: array
          items:
            $ref: '#/components/schemas/LeadAssignmentV1'
          description: >-
            One entry for each sale, to a customer or a partner, oldest first,
            including sales that were returned. A partner send that's still in
            progress isn't listed until it's delivered.
        created_at:
          type: string
          format: date-time
          description: When the lead came in.
    LocationV1:
      title: Location
      type: object
      properties:
        country:
          type:
            - string
            - 'null'
          description: Two-letter country code, like `US`.
        state:
          type:
            - string
            - 'null'
          description: State, province or region abbreviation, like `TX`.
        county:
          type:
            - string
            - 'null'
          description: County name, like `Harris`.
        county_fips:
          type:
            - string
            - 'null'
          description: The county's 5-digit FIPS code, like `48201`.
    LeadAssignmentV1:
      title: Assignment
      type: object
      properties:
        customer:
          type:
            - string
            - 'null'
          pattern: ^cus_[0-9a-z]{26}$
          description: >-
            The customer the lead was sold to, or `null` when it went to a
            partner. Exactly one of `customer` and `partner` is set.
        partner:
          type:
            - string
            - 'null'
          pattern: ^prt_[0-9a-z]{26}$
          description: >-
            The partner the lead was sold to, or `null` when it went to a
            customer. Exactly one of `customer` and `partner` is set.
        price:
          type:
            - number
            - 'null'
          description: What this buyer, customer or partner, paid for the lead, in dollars.
        assigned_at:
          type:
            - string
            - 'null'
          description: When the lead was assigned to this buyer.
          format: date-time
        returned_at:
          type:
            - string
            - 'null'
          description: When this buyer returned the lead. `null` unless they returned it.
          format: date-time
  responses:
    ApiKeyUnauthenticatedV1:
      description: The API key is missing, unknown, revoked or expired.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorV1'
          example:
            error:
              code: unauthenticated
              message: >-
                Missing or invalid API key. Send an active jz_live_ key as a
                bearer token.
            version: v1
    RateLimitedV1:
      description: Too many requests.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorV1'
          example:
            error:
              code: rate_limited
              message: >-
                Too many requests. Retry after the number of seconds in the
                Retry-After header.
            version: v1
    ServerErrorV1:
      description: >-
        Something went wrong on our side. Quote the `X-Request-Id` header when
        contacting support.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorV1'
          example:
            error:
              code: server_error
              message: >-
                An unexpected error occurred. Quote the X-Request-Id header when
                contacting support.
            version: v1
  securitySchemes:
    Basic Auth:
      type: http
      scheme: basic
      description: >-
        Use your source's API key as the username and API secret as the
        password. Base64 encode the credentials in the format
        `api_key:api_secret`.
    Bearer Token:
      type: http
      scheme: bearer
      description: Use a bearer token generated for your source.
    API Key:
      type: http
      scheme: bearer
      description: >-
        An API key from **Configure → API Keys** (it starts with `jz_live_`),
        sent as a bearer token. See [API Keys](/api-reference/api-keys).

````

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