cURL
curl --request POST \ --url https://api.artosai.com/api/v1/files/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'file_name=<string>' \ --form file_content='@example-file' \ --form 'container=<string>'
{ "message": "<string>" }
Upload file to S3. Validates file type by extension/MIME, auto-converts DOCX to PDF (except templates container).
Bearer token authentication. Token provides organization-scoped access.
Name to give the file
File content
Container/folder name for upload
File uploaded successfully