Openi DeveloperDeveloper
Referência da APIData sources

Upload a file to a file-type data source (CSV/XLSX/Francesinha, up to 1GB)

Allowed formats: CSV, XLSX (.xlsx), and Brazilian banking Francesinha (CNAB-style .txt/.fra). Returns the persisted file row (with parsed metadata where applicable).

POST
/v1/data-sources/{id}/files

Authorization

ApiKeyAuth
x-api-key<token>

Tenant API key

In: header

Path Parameters

id*string
Formatuuid

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

file*file
Formatbinary

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/data-sources/497f6eca-6276-4993-bfeb-53cbbbba6f08/files" \  -F file="string"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "dataSourceId": "2b37f84c-d876-441e-9b27-0c3482a7c574",  "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",  "fileName": "string",  "originalName": "string",  "filePath": "string",  "format": "csv",  "mimeType": "string",  "sizeBytes": 0,  "headers": [    "string"  ],  "sheetNames": [    "string"  ],  "rowCount": 0,  "status": "ready",  "errorMessage": "string",  "metadata": {},  "uploadedAt": "2019-08-24T14:15:22Z",  "processedAt": "2019-08-24T14:15:22Z"}