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

# Get Sample CSV

> Returns a downloadable sample CSV file for the specified internal table in a project.

This CSV sample contains a few rows of mock or representative data from the table's schema.
It helps users understand the structure of the table and prepare matching CSV files for import.

#### Response
- Content-Type: `text/csv`
- Disposition: Attachment (`sample.csv`)
- The first row contains column headers.
- The following rows contain example values for each column.

#### Example Output
```
text,num19,numcol,decimalcol
"sample text",1176,1044,77.3711303273
"sample text",9354,7923,96.6658831270
"sample text",7658,8750,30.3928941706
```

This sample can be used as a template when preparing files to upload using the `/import` endpoint.


<span style={{display: "flex", gap: "10px", flexDirection: "row", alignItems: "center"}}>
  <img src="https://cdn.peaka.com/badges/partner-api-key-badge.png" />

  <img src="https://cdn.peaka.com/badges/project-api-key-badge.png" />
</span>


## OpenAPI

````yaml get /data/projects/{projectId}/table/{tableName}/sample
openapi: 3.0.1
info:
  title: Peaka Gateway API
  description: Peaka Gateway API Documentation
  version: '1.0'
servers:
  - url: https://partner.peaka.studio/api/v1
    description: Default Server URL (US Zone)
  - url: https://partner.eu.peaka.studio/api/v1
    description: EU Zone
security:
  - bearerAuth: []
paths:
  /data/projects/{projectId}/table/{tableName}/sample:
    get:
      tags:
        - Data -- Internal Tables
      summary: Get Sample CSV
      description: >
        Returns a downloadable sample CSV file for the specified internal table
        in a project.


        This CSV sample contains a few rows of mock or representative data from
        the table's schema.

        It helps users understand the structure of the table and prepare
        matching CSV files for import.


        #### Response

        - Content-Type: `text/csv`

        - Disposition: Attachment (`sample.csv`)

        - The first row contains column headers.

        - The following rows contain example values for each column.


        #### Example Output

        ```

        text,num19,numcol,decimalcol

        "sample text",1176,1044,77.3711303273

        "sample text",9354,7923,96.6658831270

        "sample text",7658,8750,30.3928941706

        ```


        This sample can be used as a template when preparing files to upload
        using the `/import` endpoint.
      operationId: csvSample
      parameters:
        - name: projectId
          in: path
          description: ID of the Project
          required: true
          schema:
            type: string
          example: mtKDhe1U
        - name: tableName
          in: path
          description: Name of the table
          required: true
          schema:
            type: string
          example: customers
      responses:
        '200':
          description: Sample CSV returned successfully
          content:
            text/csv:
              schema:
                type: string
                format: binary
components:
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        Use the Authorization header with the value 'Bearer <apiKey>' to
        authenticate. Partner API Keys have full access; Project API Keys are
        limited to their project scope. Learn more:
        https://docs.peaka.com/api-reference/authentication
      scheme: bearer
      bearerFormat: Api Key

````