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

# Get Lead Sources

> Returns all lead sources for the authenticated user

Returns all lead sources for the authenticated user. This endpoint provides access to lead source information including name, type, creation date, and total lead count.


## OpenAPI

````yaml GET /lead-sources
openapi: 3.0.1
info:
  title: Drippi Public API
  description: API for accessing Drippi automation and lead management data
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.drippi.ai/api/v1
    description: Production API server
security:
  - apiKeyAuth: []
paths:
  /lead-sources:
    get:
      tags:
        - Lead Sources
      summary: Get lead sources
      description: Returns all lead sources for the authenticated user
      responses:
        '200':
          description: Successfully retrieved lead sources
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  leadSources:
                    type: array
                    items:
                      $ref: '#/components/schemas/LeadSource'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    LeadSource:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the lead source
        name:
          type: string
          description: Name of the lead source
        type:
          type: string
          description: Type of lead source (e.g., 'scraper', 'csv_import')
        createdAt:
          type: string
          format: date-time
          description: When the lead source was created
        totalLeads:
          type: integer
          description: Total number of leads in this source
    Error:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Something went wrong
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication

````