---
title: "Get Sample CSV"
method: GET
path: "/data/projects/{projectId}/table/{tableName}/sample"
tags: ["Data -- Internal Tables"]
---

# Get Sample CSV

`GET /data/projects/{projectId}/table/{tableName}/sample`

## Request

- Base URL: `https://partner.peaka.studio/api/v1`
- URL: `https://partner.peaka.studio/api/v1/data/projects/{projectId}/table/{tableName}/sample`
- Auth: HTTP bearer

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.

## Path parameters

- `projectId` string, required
- `tableName` string, required

## Response `200`

Sample CSV returned successfully

---

[API](https://skmtc.dev/peaka/apis/peaka-gateway-api.md) · [All operations](https://skmtc.dev/peaka/apis/peaka-gateway-api/llms.txt) · [OpenAPI document](https://skmtc.dev/peaka/apis/peaka-gateway-api/revisions/e68b033a22d5?raw)
