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

# Get Sources

> Returns sources for a specific brand. Supports optional date range filtering and result limiting.



## OpenAPI

````yaml POST /sources
openapi: 3.1.0
info:
  title: OpenAPI Plant Store
  description: >-
    A sample API that uses a plant store as an example to demonstrate features
    in the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.mentionpilot.ai/api/v1
security:
  - bearerAuth: []
paths:
  /sources:
    post:
      summary: Get Sources
      description: >-
        Returns sources for a specific brand. Supports optional date range
        filtering and result limiting.
      requestBody:
        description: Filter parameters
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - brand_id
              properties:
                brand_id:
                  type: integer
                  description: ID of the brand to fetch sources for
                  example: 1
                date:
                  type: object
                  description: Optional date range filter. Omit to return all sources.
                  properties:
                    from:
                      type: string
                      format: date
                      description: Start date (inclusive). ISO 8601 date or datetime.
                      example: '2026-01-01'
                    to:
                      type: string
                      format: date
                      description: End date (inclusive). ISO 8601 date or datetime.
                      example: '2026-05-07'
                limit:
                  type: integer
                  description: Maximum number of sources to return. Omit to return all.
                  example: 50
                ai_agent:
                  type: array
                  description: >-
                    Filter by AI agent(s). Omit to return sources from all
                    agents.
                  items:
                    type: string
                  example:
                    - chatgpt
                    - gemini
            example:
              brand_id: 1
              date:
                from: '2026-01-01'
                to: '2026-05-07'
              limit: 50
              ai_agent:
                - chatgpt
                - gemini
      responses:
        '200':
          description: A list of sources
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  sources:
                    type: array
                    items:
                      $ref: '#/components/schemas/Source'
              example:
                success: true
                sources:
                  - id: 101
                    domain: techcrunch.com
                    type: citation
                    ai_tool: chatgpt
                    created_at: '2026-03-15T09:00:00.000000+00:00'
        '400':
          description: Validation error — missing or invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error: brand_id is required
        '401':
          description: Unauthorized — invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — brand-scoped API key cannot access this brand
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error: Access denied
        '404':
          description: Brand not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error: Brand not found
components:
  schemas:
    Source:
      type: object
      properties:
        id:
          description: Unique identifier of the source
          type: integer
          format: int64
          example: 101
        domain:
          description: Domain of the source
          type: string
          example: techcrunch.com
        type:
          description: Source type (e.g. citation)
          type: string
          example: citation
        created_at:
          description: Timestamp when the source was recorded
          type: string
          format: date-time
          example: '2026-03-15T09:00:00.000000+00:00'
        ai_tool:
          description: AI agent that generated this source
          type: string
          example: chatgpt
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: An error occurred
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````