cURL
curl -X POST "https://api.smooth.sh/api/v1/file" \ -H "apikey: YOUR_API_KEY" \ -F "file=@/path/to/your/file.txt"
{ "id": "<string>" }
Upload a file to be used by tasks.
Optional custom name for the file. If not provided, the original file name will be used.
Optional short description of the file to describe its purpose (i.e., 'the bank statement pdf').
File successfully uploaded.
Response model for uploading a file.
The ID assigned to the uploaded file.