Quick Start
This guide walks you through connecting to the API, opening a built-in sample project, and reading nodes — using the SDK clients or plain HTTP. No project file of your own is required.
Prerequisites
- SPACE GASS installed on your machine
- SPACE GASS has been opened at least once to initialise the required data files
- One of:
- C# — .NET 8 SDK (any
editor works; Visual Studio Code
- the C# Dev Kit extension is a free option), or
- Python — Python 3.10 or newer (any editor works; VS Code + the Python extension is a free option), or
- Just an HTTP client —
curlis built into Windows 10+; Postman and Insomnia also work.
- C# — .NET 8 SDK (any
editor works; Visual Studio Code
-
Start the Service
The API runs as a local server. The easiest way to start it is to double-click the SPACE GASS API shortcut under the SPACE GASS Windows application folder.
Alternatively, open a terminal and run:
CodeBy default the service starts on
http://localhost:34560. To use a different port, pass the--portflag:CodeLeave the terminal or shortcut window open — the service runs until you close it.
-
Explore the API
Once the service is running, open your browser and navigate to:
CodeThe interactive Swagger UI lets you browse every endpoint, see request and response schemas, and make live API calls directly from your browser — no SDK or code required. This is the quickest way to get familiar with the API.
When you are ready to integrate the API into your own code, continue with the steps below.
-
Create a Project Folder and Install the SDK
The API includes generated SDK clients for C# and Python. These handle serialisation and give you typed methods for every endpoint. If you prefer raw HTTP, you can skip this step and use the curl tab in every snippet below.
-
Create the Client
The SDK provides a
CreateClient()factory that configures everything for you — it connects to the local API with no additional setup required. See Authentication for details on custom URLs and future API key support. -
Open a Sample Project
Job.OpenSampleloads one of the built-in SPACE GASS samples as a new unsaved job — perfect for getting going without your own.sgfile. List available samples withGET /file/samples(or browse them in Swagger); here we'll openPortal Frame.SG, which ships with every install.When you have your own file, use
Job.OpenwithFilePathinstead. See File Handling for the full set of open/save/close patterns. -
Get All Nodes
-
Close the Project
Putting It All Together
Drop this complete program into the project you created in Step 3 and
run it. It opens the Portal Frame.SG sample, lists every node, and
closes cleanly.
Run this example locally
The same code is in the repo as
Example.QuickStart (C#) and
quick_start (Python).
Clone the repo and run it directly — no copy-paste:
Make sure the SPACE GASS API service is running first (step 1 above).
Next Steps
- Simple Beam Model — Full walkthrough building a model, running analysis, and querying results
- File Handling — Open, save, force-open, and file status checks
- API Reference — Browse all endpoints interactively

