Operations for uploading and managing .stl, .obj, .3mf, .amf, and .step files. Requires Cloud Slicer Token
Get User Files
Get uploaded files for the authenticated user, sorted by latest first. Pass an optional file_id query parameter to fetch metadata for a single file (returns a list of 0 or 1 items). Requires a valid API token.
query Parameters
file_idOptional file ID. When provided, returns only the matching upload record for the authenticated user.
Get User Files › Responses
Successfully retrieved user files
user_idfile_idfile_pathstatustimestampfile_namefile_sizeUpload File
Upload a file to the database for the authenticated user.
The upload must be a .stl, .obj, .3mf, .amf, or .step/.stp file.
Playground note: in the Body section, open the dropdown and select Multipart. Add an entry with the key
file, then click the value field to attach your 3D model (.stl, .obj, .3mf, .amf, or .step/.stp). Without this, the request will send the raw file bytes and the server will return a422validation error.
Upload File › Responses
File uploaded successfully
user_idfile_idfile_pathstatustimestampfile_namefile_sizeGet Upload Id
Generate an upload ID for uploading a file to the database.
Returns an upload id that can be used with the /file/public/{upload_id} endpoint to upload files without authentication. The upload id expires after 1 hour.
Workflow:
- Call this endpoint to get an upload_id
- Use the upload_id with
POST /file/public/{upload_id}to upload the file
Get Upload Id › Responses
Successfully generated upload ID
user_idupload_idfile_idtimestampUpload File Public
Upload a file using a temporary upload ID (no authentication required).
This endpoint allows anonymous uploads using a temporary upload ID obtained from the /upload endpoint. The upload ID is single-use and expires after 1 hour.
Playground note: in the Body section, open the dropdown and select Multipart. Add an entry with the key
file, then click the value field to attach your 3D model (.stl, .obj, .3mf, .amf, or .step/.stp). Without this, the request will send the raw file bytes and the server will return a422validation error.
path Parameters
upload_idTemporary upload ID obtained from /file/upload-id endpoint
Upload File Public › Responses
File uploaded successfully
user_idfile_idfile_pathstatustimestampfile_namefile_sizeDelete File
Deletes an uploaded file and its associated gcode from storage. The quote record is kept — its file_path and gcode_path are cleared (set to null) rather than deleted, so quote and order history is preserved.
path Parameters
file_idID for the STL file to delete
Delete File › Responses
File deleted successfully
user_idstatustimestampfile_idremoved_file_path