Openapi
Preview a spreadsheet, or stage import items and queue the run.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidThe import source, mapping and staged rows.
application/jsondryRun?booleanentity?string1 <= length <= 100fileBase64?stringlength <= 6000000finish?booleanfull?booleanitems?array<>items <= 200mapping?preview?booleanrunId?stringuuidscopeAliases?array<>source*importSourceIdSchema"agroit""csv""restore""xlsx"text?stringlength <= 4000000Returns the preview or the import run.
application/jsonpreview*|nullrun*|nullcurl -X POST 'https://app.localhost/api/v1/organizations/123/imports' \ -H 'Content-Type: application/json' \ -d '{ "source": "agroit"}'{ "preview": { "columns": [ "string" ], "rows": [ { "property1": "string", "property2": "string" } ], "suggested": { "property1": "string", "property2": "string" } }, "run": { "counts": { "property1": { "conflicted": 0, "inserted": 0, "missing": 0, "unchanged": 0, "updated": 0 }, "property2": { "conflicted": 0, "inserted": 0, "missing": 0, "unchanged": 0, "updated": 0 } }, "createdAt": "string", "dryRun": true, "errors": [ { "code": "string", "entity": "string", "key": "string", "message": "string" } ], "finishedAt": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "source": "string", "startedAt": "string", "status": "pending" }}