Submit File via CSVBox REST File API
submit_fileImport files into CSVBox sheets by submitting a public URL or base64-encoded content, with options for sheet selection, column mapping, and row limits.
Instructions
Submit a file for import via POST /1.1/file. Provide exactly one of public_file_url (JSON submission) or file_base64 + file_name (multipart direct upload — file_base64 is decoded server-side and sent to CSVBox as true binary multipart content, never as a base64 string). Input: { sheet_license_key, public_file_url? | (file_base64?, file_name?), file_sheet_name?, user?, options?, dynamic_columns? }. Returns the API response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Custom user reference object attached to the import. | |
| options | No | Import options: has_header (0/1), max_rows, auto_map. | |
| file_name | No | File name for the direct upload. Required with file_base64. | |
| file_base64 | No | Base64-encoded file content for direct upload. This is an MCP-transport-only encoding: the server decodes it into raw bytes and sends CSVBox a true multipart/form-data 'file' part, never a base64 string. Mutually exclusive with public_file_url. Requires file_name. Prefer public_file_url for large files. | |
| dynamic_columns | No | Dynamic column definitions with validators. | |
| file_sheet_name | No | Worksheet name to import, for multi-tab files. | |
| public_file_url | No | Public URL of the file to import. Mutually exclusive with file_base64. | |
| sheet_license_key | Yes | The license key of the sheet to import into. |