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

# Get Batch Job Items

> Get all lookup items for a batch job with optional status filter and pagination. Use to export results or inspect failed items.

## Overview

List items (lookups) for a batch job. Filter by `status` (`pending`, `processing`, `completed`, `failed`) and use `limit`/`offset` for pagination. Completed items include the full incentive result; failed items include `error_message` and `retry_count`.


## OpenAPI

````yaml GET /batch-lookups/{job_id}/items
openapi: 3.0.3
info:
  title: Leap Energy API
  description: >-
    The Leap Energy API provides a unified interface for managing rebate
    incentives and applications.


    ## Incentives API

    Search for and calculate incentive amounts across multiple utility programs.
    Given a customer

    address and building type, the API identifies applicable utility programs
    and calculates potential

    incentive amounts for various device and tier combinations. When your
    organization has a webhook URL

    configured (Webhook Config API), each successful lookup triggers a POST to
    your URL with the response

    and optional custom fields (`webhook_custom_fields`).


    ## Applications API

    Manage rebate applications on behalf of customers. Applications represent a
    customer's request

    for a rebate under a specific utility program, including customer
    information, device details,

    and application metadata.
  version: 2.0.0
  contact:
    name: Leap Energy
    url: https://leap.energy
servers:
  - url: https://api.incentives.leap.energy/alpha
    description: Production API
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /batch-lookups/{job_id}/items:
    get:
      summary: Get Batch Job Items
      description: >-
        Get all items (lookups) for a batch job with optional filtering and
        pagination.
      operationId: getBatchJobItems
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - pending
              - processing
              - completed
              - failed
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 500
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            default: 0
            minimum: 0
      responses:
        '200':
          description: List of queue items
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ItemListResponse'
        '401':
          description: Unauthorized
        '404':
          description: Job not found
components:
  schemas:
    ItemListResponse:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/QueueItem'
        total:
          type: integer
        limit:
          type: integer
        offset:
          type: integer
    QueueItem:
      type: object
      properties:
        id:
          type: string
          format: uuid
        job_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - pending
            - processing
            - completed
            - failed
        reference_id:
          type: string
        address:
          $ref: '#/components/schemas/Address'
        building_type:
          type: string
          enum:
            - RESIDENTIAL
            - COMMERCIAL
            - MULTIFAMILY
        device_ids:
          type: array
          items:
            type: integer
        result:
          type: object
          nullable: true
        error_message:
          type: string
          nullable: true
        retry_count:
          type: integer
        created_at:
          type: string
          format: date-time
        processed_at:
          type: string
          format: date-time
          nullable: true
    Address:
      type: object
      required:
        - street_1
        - city
        - state_or_province_code
        - postal_code
        - country_code
      properties:
        street_1:
          type: string
          example: 123 Main Street
        street_2:
          type: string
          example: Apt 4B
        city:
          type: string
          example: San Francisco
        state_or_province_code:
          type: string
          example: CA
        postal_code:
          type: string
          example: '94102'
        country_code:
          type: string
          example: US
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >
        API key for authentication. Include your Leap API key in the `x-api-key`
        header: `x-api-key: leap_live_...`
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk JWT token for portal authentication

````