Skip to main content
POST
/
table
/
csv-upload
Create tables from a spreadsheet
curl --request POST \
  --url https://app.myhero.so/table/csv-upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "projectId": "<string>",
  "csvData": "<string>",
  "name": "<string>",
  "format": "csv"
}
'
{
  "data": {
    "_id": "<string>",
    "name": "<string>",
    "slug": "<string>",
    "rows": [
      "<string>"
    ],
    "columns": [
      "<string>"
    ],
    "isStatic": false,
    "ownerId": "<string>",
    "projectId": "<string>",
    "workspaceId": "<string>",
    "createdAt": 123,
    "updatedAt": 123,
    "originId": "<string>",
    "description": "<string>",
    "icon": {
      "name": "<string>",
      "color": "<string>"
    },
    "isDeleted": false
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.myhero.so/llms.txt

Use this file to discover all available pages before exploring further.

Parses a CSV, TSV, or XLSX file (provided as a base64-encoded string in csvData) and creates one table per sheet. Column types are inferred from the data. Returns a single Table object for single-sheet uploads, or an array for multi-sheet XLSX files.

Authorizations

Authorization
string
header
required

HERO personal access token

Body

application/json
projectId
string
required
Minimum string length: 1
csvData
string
required
Minimum string length: 1
name
string
format
enum<string>
Available options:
csv,
tsv,
xlsx

Response

200 response

data
object
required