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

# List datasets with pagination

> Server-side paginated dataset listing with optional pipeline type filter and search



## OpenAPI

````yaml https://api.bavlio.com/openapi.json get /api/v1/datasets/list
openapi: 3.1.0
info:
  title: Bavlio API
  description: >-
    Outreach automation API — lead enrichment, email campaigns, LinkedIn
    automation, and AI agent. Full docs at https://docs.bavlio.com.
  version: 1.0.0
servers: []
security: []
tags:
  - name: API Keys
    description: >-
      Create, list, and revoke API keys for programmatic access. JWT
      authentication required.
  - name: credits
    description: Credit balance, cost estimates, and transaction history.
  - name: campaigns
    description: Create, manage, launch, and monitor email campaigns.
  - name: campaign-personalization
    description: AI-powered email subject and body personalization for campaigns.
  - name: email-finder
    description: Find and verify email addresses for prospects.
  - name: email-verification
    description: Validate email addresses and prune invalid entries from datasets.
  - name: sender-profiles
    description: Manage sender identity profiles for outreach.
  - name: sender-profile-chat
    description: Interactive chat for building sender profiles.
  - name: templates
    description: Email template CRUD.
  - name: suppression
    description: Do-not-contact suppression list management.
  - name: datasets
    description: Lead dataset listing, download, and updates.
  - name: user-extractions
    description: Uploaded lead file management and processing.
  - name: enrichment-chat
    description: Interactive chat for data enrichment sessions.
  - name: enrichment-processing
    description: Batch lead enrichment processing.
  - name: File Upload (CSV/Excel)
    description: Upload and preview CSV/Excel lead files.
  - name: connected-accounts
    description: LinkedIn account connections via Unipile.
  - name: linkedin-content
    description: LinkedIn post creation, scheduling, and management.
  - name: linkedin-playground
    description: Direct LinkedIn actions (profile lookup, messaging, engagement).
  - name: bavimail-proxy
    description: BaviMail domain, alias, and email management.
  - name: agent
    description: Bavi AI agent chat with SSE streaming.
  - name: notifications
    description: Notification preferences and delivery.
  - name: referral
    description: Referral code management and stats.
  - name: feedback
    description: User feedback submission.
  - name: authentication
    description: JWT token verification and user info.
  - name: Google OAuth
    description: Google OAuth login flow and access tokens.
  - name: Google Sheets OAuth
    description: Google Sheets import and access management.
  - name: stripe
    description: Stripe checkout, billing portal, and subscription status. JWT only.
  - name: users
    description: User quota and usage information.
  - name: Health
    description: Health checks and system status.
  - name: Personalization
    description: Core lead personalization engine.
  - name: Session Management
    description: Enrichment session lifecycle.
  - name: Session Processing
    description: Session data processing.
  - name: webhooks
    description: Inbound webhook handlers (Stripe, BaviMail, Unipile).
paths:
  /api/v1/datasets/list:
    get:
      tags:
        - datasets
        - datasets
      summary: List datasets with pagination
      description: >-
        Server-side paginated dataset listing with optional pipeline type filter
        and search
      operationId: list_datasets_api_v1_datasets_list_get
      parameters:
        - name: pipeline_type
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - enrichment
                  - personalization
                  - extraction
                type: string
              - type: 'null'
            description: >-
              Pipeline type filter: enrichment, personalization, extraction, or
              null for all
            title: Pipeline Type
          description: >-
            Pipeline type filter: enrichment, personalization, extraction, or
            null for all
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Search by dataset name
            title: Search
          description: Search by dataset name
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number (1-indexed)
            default: 1
            title: Page
          description: Page number (1-indexed)
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Items per page (max 100)
            default: 20
            title: Page Size
          description: Items per page (max 100)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/api__routers__datasets__list__DatasetListResponse
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    api__routers__datasets__list__DatasetListResponse:
      properties:
        datasets:
          items:
            $ref: '#/components/schemas/DatasetWithLatestSession'
          type: array
          title: Datasets
          description: List of datasets
        total_count:
          type: integer
          title: Total Count
          description: Total number of datasets matching criteria
        page:
          type: integer
          title: Page
          description: Current page number
        page_size:
          type: integer
          title: Page Size
          description: Number of items per page
      type: object
      required:
        - datasets
        - total_count
        - page
        - page_size
      title: DatasetListResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DatasetWithLatestSession:
      properties:
        dataset_id:
          type: string
          title: Dataset Id
          description: Unique dataset identifier
        source_type:
          type: string
          title: Source Type
          description: Source of the dataset (upload, api, linkedin_search, etc)
        row_count:
          type: integer
          title: Row Count
          description: Total number of rows in dataset
        created_at:
          type: string
          title: Created At
          description: ISO timestamp of dataset creation
        updated_at:
          type: string
          title: Updated At
          description: ISO timestamp of last dataset update
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Id
          description: Latest session ID
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Status of latest session
        pipeline_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Pipeline Type
          description: Pipeline type (enrichment/personalization/extraction)
        leads_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Leads Count
          description: Total leads in session
        processed_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Processed Count
          description: Number of processed leads
        failed_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Failed Count
          description: Number of failed leads
        progress_percentage:
          anyOf:
            - type: number
            - type: 'null'
          title: Progress Percentage
          description: Processing progress (0-100)
        filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Filename
          description: Original filename for display
        session_created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Created At
          description: When session was created
        session_updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Session Updated At
          description: Last session update
        completed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Completed At
          description: When session completed
      type: object
      required:
        - dataset_id
        - source_type
        - row_count
        - created_at
        - updated_at
      title: DatasetWithLatestSession
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````