For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList records
      • POSTCreate record
      • POSTBulk delete records
      • POSTBulk edit records
      • GETExport records as CSV
      • GETGet field values
      • POSTPreview record filter
      • GETDiscover record schema
      • POSTUpload CSV records
      • GETGet record details
      • PUTUpdate record
      • DELDelete record
      • GETGet record costs
      • GETGet record results
      • DELDelete record result
      • GETGet record step results
Dashboard
LogoLogo
Runtype APIRecords

Upload CSV records

POST
/v1/records/upload-csv
POST
/v1/records/upload-csv
$curl -X POST https://api.runtype.com/v1/records/upload-csv \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: multipart/form-data"
1{
2 "created": 3,
3 "errorDetails": [
4 "Row 2: Missing required field 'Category'"
5 ],
6 "errors": 1,
7 "message": "Processed 4 records with 1 error.",
8 "records": [
9 {
10 "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
11 "metadata": {},
12 "name": "Wireless Mouse",
13 "type": "Electronics"
14 }
15 ],
16 "success": true
17}

Upload and process a CSV file to create records in bulk. Either supply typeColumn to read the type from a column, or typeValue to assign the same constant type to every row (skipping the column lookup). typeValue takes precedence when both are provided.

Was this page helpful?
Previous

Get record details

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects a multipart form.
fileanyOptional
nameColumnstringOptional
typeColumnstringOptional
typeValuestringOptional<=255 characters

Response

CSV upload result
createdinteger
errorDetailslist of strings
errorsinteger
messagestring
recordslist of objects
successboolean

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error