Skip to main content
POST
/
api
/
imports
Upload CSV
curl --request POST \
  --url https://folksbase.onrender.com/api/imports \
  --header 'Authorization: Bearer <token>'
{
  "importId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "preview": {
    "headers": [
      "<string>"
    ],
    "rows": [
      [
        "<string>"
      ]
    ],
    "totalRows": 123
  },
  "suggestions": [
    {
      "header": "<string>",
      "field": "<string>",
      "confidence": "high"
    }
  ]
}

Authorizations

Authorization
string
header
required

Supabase JWT token from Authorization header

Response

Upload successful with preview

importId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
preview
object
required
suggestions
object[]
required