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

# Get a source by ID.



## OpenAPI

````yaml /openapi/v1.yaml get /v1/sources/{sourceId}
openapi: 3.1.0
info:
  title: ConchAI B2B API (v1)
  version: 1.0.0
  description: |
    OpenAPI contract for the latest business-facing endpoints under /v1.
servers:
  - url: https://api.getconch.ai
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Organization
  - name: Sources
  - name: Flashcards
  - name: Mindmaps
  - name: Quizzes
paths:
  /v1/sources/{sourceId}:
    get:
      tags:
        - Sources
      summary: Get a source by ID.
      operationId: getSource
      parameters:
        - $ref: '#/components/parameters/SourceIdParam'
      responses:
        '200':
          description: Source fetched successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceDetailResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedResponse'
        '403':
          $ref: '#/components/responses/ForbiddenResponse'
        '404':
          $ref: '#/components/responses/NotFoundResponse'
        '500':
          $ref: '#/components/responses/InternalServerErrorResponse'
components:
  parameters:
    SourceIdParam:
      in: path
      name: sourceId
      required: true
      schema:
        type: string
        pattern: ^[a-fA-F0-9]{24}$
  schemas:
    SourceDetailResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/SourceDetail'
      required:
        - data
    SourceDetail:
      type: object
      properties:
        id:
          type: string
        sourceType:
          $ref: '#/components/schemas/SourceType'
        metadata:
          type: object
          additionalProperties: true
        title:
          type: string
        status:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - sourceType
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    SourceType:
      type: string
      enum:
        - file
        - youtube
        - webpage
        - lectureAudio
        - lectureVideo
  responses:
    UnauthorizedResponse:
      description: Missing or invalid authentication credentials.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ForbiddenResponse:
      description: Resource belongs to another organization.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFoundResponse:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerErrorResponse:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Business API key issued per organization.

````