File
Read-only file inspection (no open job required)
Preview Job File
This endpoint extracts metadata appended to SPACE GASS job files:
- Version: SPACE GASS version used to save the file
- Licensee: Licensed user name when file was saved
- Designer: Computer name where file was saved
- Preview image: Screenshot of the model when saved (if available)
Note: Older files may not have this metadata. Metadata fields will be null in that case.
Example usage with curl:
Code
query Parameters
filePathFull path to the SPACE GASS job file (.sg or .sgbase)
includeImageIf true, includes the preview image (base64 encoded). Defaults to false.
Preview Job File โบ Responses
Returns preview information
filePathThe file path that was queried
fileNameThe file name without path
fileSizeBytesFile size in bytes
lastModifiedLast modified date of the file
versionThe SPACE GASS version that was used to save the file
licenseeNameThe licensee name that was used when saving the file
designerThe designer name when the file was saved
projectHeadingThe project heading/title
jobHeadingThe job heading/title
notesJob notes
dateSavedDate and time the file was saved
computerNameComputer name where the file was saved
userNameUser name who saved the file
compressionCompression type used when saving the file
hasPreviewImageWhether a preview image is available
previewImageBase64The preview image as a base64-encoded PNG string. Only populated if includeImage parameter is true.
previewImageDataUrlThe preview image as a Data URL (data:image/png;base64,...). Can be used directly in HTML img src attribute. Only available if includeImage parameter is true and image exists.
List Sample Files
Returns all available SPACE GASS sample project files.
Each sample includes metadata and an optional preview image.
The file paths use virtual samples:// scheme (e.g. "samples://Portal Frame.SG")
which can be used with the preview and open endpoints.
Samples are opened as new unsaved jobs โ use Save As to persist changes.
Example usage with curl:
Code
query Parameters
includeImagesIf true, includes preview images (base64 encoded). Defaults to false.
List Sample Files โบ Responses
Returns list of sample files
filePathThe file path that was queried
fileNameThe file name without path
fileSizeBytesFile size in bytes
lastModifiedLast modified date of the file
versionThe SPACE GASS version that was used to save the file
licenseeNameThe licensee name that was used when saving the file
designerThe designer name when the file was saved
projectHeadingThe project heading/title
jobHeadingThe job heading/title
notesJob notes
dateSavedDate and time the file was saved
computerNameComputer name where the file was saved
userNameUser name who saved the file
compressionCompression type used when saving the file
hasPreviewImageWhether a preview image is available
previewImageBase64The preview image as a base64-encoded PNG string. Only populated if includeImage parameter is true.
previewImageDataUrlThe preview image as a Data URL (data:image/png;base64,...). Can be used directly in HTML img src attribute. Only available if includeImage parameter is true and image exists.
Get File Opening Status
Checks whether a SPACE GASS job file can be opened, without opening it. "Recovery files" below are the temporary working files SPACE GASS keeps while a job is open; when a session ends abnormally they are left behind and contain that session's unsaved changes.
Status values:
- NotFound: no job file exists at the specified path
- ReadyToOpen: can be opened normally โ not locked, no unsaved changes
- Locked: another user or process currently has the file open
- RecoveryFilesOnly: only recovery files exist โ the .sg file itself is missing (restore it to open the job)
- UnsavedChanges: recovery files with unsaved changes from an abnormal shutdown exist alongside the file
- LockedWithUnsavedChanges: locked and recovery files with unsaved changes also exist
- Unknown: the status could not be determined โ the file or the temporary folder may be inaccessible
Only ReadyToOpen can be opened without a forceOption. Locked, UnsavedChanges and LockedWithUnsavedChanges require a forceOption on POST job/open; NotFound and RecoveryFilesOnly cannot be opened at the checked path. canOpenSafely is true only for ReadyToOpen; availableRecoveryOptions lists the forceOption values that will succeed (empty when none will).
query Parameters
filePathFull path to the SPACE GASS job file (.sg)
Get File Opening Status โบ Responses
Returns the file opening status
filePathThe file path that was checked
statusOpenability of a SPACE GASS job file, as returned by GET file/status.
Only ReadyToOpen opens without a forceOption; Locked,
UnsavedChanges and LockedWithUnsavedChanges require one on
POST job/open. NotFound and RecoveryFilesOnly cannot be
opened at the checked path โ no .sg file exists there.
descriptionHuman-readable description of the status
recommendedActionRecommended action to take based on the status
canOpenSafelyWhether the file can be opened safely without force options
availableRecoveryOptionsThe recovery options that can be supplied as forceOption on POST job/open
for this file's current status.

