How to upload a CSV and get a URL
CSV exports are easy to generate but awkward to pass between systems as email attachments or temporary downloads. FilePost stores the export and returns a URL that can be saved, fetched, or handed to the next workflow step.
Keep the file as CSV or TSV—FilePost does not rewrite delimiters, headers, encodings, or formulas. If your consumer needs a specific encoding or schema, validate the file before sending it to the upload endpoint.
Upload csv files with FilePost
Use the authenticated FilePost upload API for csv files. The endpoint returns a JSON object containing the public URL, file ID, size, content type, and filename mode.
curl -X POST https://upload.filepost.dev/v1/upload \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@customers.csv"
Example response
{
"url": "https://cdn.filepost.dev/file/…",
"file_id": "a1b2c3d4e5f6",
"name": "customers.csv",
"size": 84210,
"content_type": "text/csv"
}
What to do with the returned URL
Save the URL in a report record, send it in an email, or let the next automation node download the export.
<a href="https://cdn.filepost.dev/file/…" download>Download CSV export</a>
Good uses for csv to URL
- Scheduled report and data exports
- CSV links in dashboards and email
- Low-code workflows that need a file URL
Know the boundary
FilePost is not a database or spreadsheet parser. It hosts the export; use your data platform or application code to validate and query its contents.
For the complete request and response contract, see the FilePost API documentation. You can also test the flow with the interactive upload on the homepage.