Files
Upload local file
Uploads a file.
POST
Introduction
You can use this endpoint to upload your local file and then use the file_key
you obtained to create a data source through the Create data source endpoint.
Only files with the following extensions are supported: .csv, .tsv, .md, .mdx, .json, .txt, .pdf, .pptx, .ppt, .doc, .docx, .xls, or .xlsx.
For optimal upload efficiency, we recommend using this endpoint for files smaller than 1 MB. For files larger than 1 MB, please initiate a multipart upload task.
Example request:
Example response:
200
Authorizations
Headers
The trace ID you set in your system to trace this request. It can be up to 128 characters in length. If the request fails, you can provide it to the Powerdrill team to help with troubleshooting.
Body
multipart/form-data
Response
200 - application/json
The response is of type object
.