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

# Get Source Sample Data

> Returns a small page of rows from a generated source table using a team API key.



## OpenAPI

````yaml GET /public/v1/projects/{projectId}/sources/{sourceId}/sample-data
openapi: 3.1.0
info:
  title: Synthbrew API
  description: Runtime CRUD and public v1 management endpoints for Synthbrew resources.
  version: 1.0.0
servers:
  - url: https://api.synthbrew.com/api
    description: Production
security:
  - sourceApiKey: []
tags:
  - name: Runtime
    description: Public runtime CRUD operations authenticated with source API keys
  - name: Public v1 Projects
    description: Team-scoped project management endpoints authenticated with team API keys
  - name: Public v1 Schemas
    description: Schema management endpoints scoped to projects accessible by the API key
  - name: Public v1 Sources
    description: >-
      Source management and generation endpoints scoped to projects accessible
      by the API key
paths:
  /public/v1/projects/{projectId}/sources/{sourceId}/sample-data:
    get:
      tags:
        - Public v1 Sources
      summary: Get source sample data
      description: >-
        Returns a small page of rows from a generated source table using a team
        API key.
      operationId: publicV1GetSourceSampleData
      parameters:
        - $ref: '#/components/parameters/ProjectId'
        - $ref: '#/components/parameters/SourceId'
        - name: table
          in: query
          required: true
          description: Source table/entity identifier to sample.
          schema:
            type: string
          example: accounts
        - name: limit
          in: query
          required: false
          description: Maximum number of rows to return.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          example: 25
        - name: offset
          in: query
          required: false
          description: Number of rows to skip.
          schema:
            type: integer
            minimum: 0
            default: 0
          example: 0
      responses:
        '200':
          description: Sample rows
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceSampleData'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/PublicUnauthorized'
        '403':
          $ref: '#/components/responses/PublicForbidden'
        '404':
          $ref: '#/components/responses/PublicNotFound'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - teamApiKey: []
components:
  parameters:
    ProjectId:
      name: projectId
      in: path
      required: true
      schema:
        type: string
        format: uuid
      description: Project UUID in the team associated with the API key.
      example: 11111111-1111-1111-1111-111111111111
    SourceId:
      name: sourceId
      in: path
      required: true
      description: >-
        Source UUID. For runtime endpoints this identifies the source backing
        the table; for public v1 it identifies the source resource inside the
        project.
      schema:
        type: string
        format: uuid
      example: 11111111-1111-1111-1111-111111111111
  schemas:
    SourceSampleData:
      type: object
      properties:
        sourceId:
          type: string
          format: uuid
        schemaVersionId:
          type: string
          format: uuid
        table:
          type: string
        columns:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              type:
                type: string
              nullable:
                type: boolean
            required:
              - id
              - type
              - nullable
        rows:
          type: array
          items:
            type: object
            additionalProperties: true
        pagination:
          type: object
          properties:
            limit:
              type: integer
            offset:
              type: integer
            count:
              type: integer
            total:
              type: integer
          required:
            - limit
            - offset
            - count
            - total
      required:
        - sourceId
        - schemaVersionId
        - table
        - columns
        - rows
        - pagination
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error summary.
  responses:
    BadRequest:
      description: Validation or query error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    PublicUnauthorized:
      description: Missing, invalid, or revoked team API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingKey:
              value:
                error: API key required
            invalidKey:
              value:
                error: Invalid API key
    PublicForbidden:
      description: Authenticated but forbidden for the current API key scope
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    PublicNotFound:
      description: Resource not found (or not accessible for this team/scope)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    sourceApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Source API key created under /api/sources/:sourceId/api-keys
    teamApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Team API key created under /api/api-keys. Prefix: sb_api_.'

````