Skip to main content
GET
/
api
/
imports
/
{id}
/
preview
Get import preview
curl --request GET \
  --url https://folksbase.onrender.com/api/imports/{id}/preview \
  --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

Path Parameters

id
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)$

Response

Import 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