# Upload File Multipart **POST /v2/files/-/uploads** Receives a file and streams it to S3 using multipart upload in a single request. ## Servers - Production server (uses live data): https://api.aymara.ai (Production server (uses live data)) - Staging server (uses test data): https://staging-api.aymara.ai (Staging server (uses test data)) ## Authentication methods - Api key - Auth bearer ## Parameters ### Body: multipart/form-data (object) - **file** (string(binary)) ## Responses ### 200 OK #### Body: application/json (object) - **local_file_path** (string | null) Local file path of the uploaded file, if available. - **file_uuid** (string | null) Unique identifier for the uploaded file. - **file_url** (string | null) URL to access the uploaded file, if available. - **remote_file_path** (string | null) Remote file path of the uploaded file, if available. ### 400 Bad Request #### Body: application/json (object) - **error** (object) Schema for the contents of an error response. This schema defines the structure of the error data inside the `error` field of an API error response. - **request_id** (string) ### 401 Unauthorized #### Body: application/json (object) - **error** (object) Schema for the contents of an error response. This schema defines the structure of the error data inside the `error` field of an API error response. - **request_id** (string) ### 403 Forbidden #### Body: application/json (object) - **error** (object) Schema for the contents of an error response. This schema defines the structure of the error data inside the `error` field of an API error response. - **request_id** (string) ### 404 Not Found #### Body: application/json (object) - **error** (object) Schema for the contents of an error response. This schema defines the structure of the error data inside the `error` field of an API error response. - **request_id** (string) ### 409 Conflict #### Body: application/json (object) - **error** (object) Schema for the contents of an error response. This schema defines the structure of the error data inside the `error` field of an API error response. - **request_id** (string) ### 422 Unprocessable Entity #### Body: application/json (object) - **error** (object) Schema for the contents of an error response. This schema defines the structure of the error data inside the `error` field of an API error response. - **request_id** (string) ### 429 Too Many Requests #### Body: application/json (object) - **error** (object) Schema for the contents of an error response. This schema defines the structure of the error data inside the `error` field of an API error response. - **request_id** (string) ### 500 Internal Server Error #### Body: application/json (object) - **error** (object) Schema for the contents of an error response. This schema defines the structure of the error data inside the `error` field of an API error response. - **request_id** (string) ### 503 Service Unavailable #### Body: application/json (object) - **error** (object) Schema for the contents of an error response. This schema defines the structure of the error data inside the `error` field of an API error response. - **request_id** (string) [Powered by Bump.sh](https://bump.sh)