Goal
Understand how project creation, publishing, versions, and loading fit together by publishing a small model of your own and reading it back.What you will build
In this optional deep dive, you will:- Paste the one-time SDK bootstrap (dependency injection setup you copy, not a concept you study)
- Authenticate with Speckle Server
- Create a workspace project and model
- Describe a wall and a door with a
BundleBuilder - Publish them as a new version with
Send3 - Load the version back with
Receive3
When to use this
Use this page when you want the full publish workflow from scratch. For most AEC automation — loading connector-published models, QA checks, CSV exports — start with Build your first model analysis tool instead. Creating data in code is less common in practice.Updating a tour or script written for
Send / Receive with ServerTransport, or Send2 /
Receive2? See Migrate to 2026.9.Prerequisites
- Install the package. From your project directory, run:
<PackageReference Include="Speckle.Sdk" Version="2026.9.0-beta.7" /> in your .csproj. A later stable 2026.9.0 replaces the beta pin without changing the calls on this page.
- Get a personal access token. In the web app, open the workspace switcher (the workspace name at the top of the left sidebar), select your name, then open Developer and create a token. See Building with PATs. You will paste it in Step 2 below.
Full workflow
Step 1: Bootstrap the SDK (copy once)
Register Speckle.Sdk once at startup.Example
Step 2: Authenticate
Example
If this works, you’ll see your name printed!
Step 3: Create a workspace project and model
Projects are the top-level containers for your data. A model holds the versions you publish. Replaceyour_workspace_id with an id returned by client.ActiveUser.GetWorkspaces().
Example
If the workspace plan is already at your maximum project limit, you’ll need to delete some
projects before creating a new one.
Step 4: Describe objects with a BundleBuilder
ABundleBuilder collects objects, their properties, their geometry, and the relations between them. Each object is identified by an application id you choose.
Example
Constraints.Base Offset. door.Host = wall records a typed relation instead of nesting the door inside the wall. See Object model and Relations.
Step 5: Publish a version
Example
Send3 returns as soon as the upload finishes. The server then processes the bundle and creates the version. WaitForVersion waits for that, so the version exists before you load it in the next step.
Go to that URL to see the new version in the web app.
Step 6: Load the version back
Example
Receive3 downloads the version’s bundle to a scratch directory and returns a Model. Wrap it in
using so the files are deleted when you are done.You’ve now completed your first full Speckle workflow with .NET.
Complete example
Complete example
FAQ
Should I use this quickstart or Automate with scripts?
Should I use this quickstart or Automate with scripts?
Use Automate with scripts for Grasshopper, notebooks, and one-off automations that load
existing models — it needs only the bootstrap and
Receive3. Use this quickstart when you
want to publish your own data and see the whole round trip.Why does Send3 return before the version exists?
Why does Send3 return before the version exists?
The server processes every upload before it creates the version.
Send3 returns a reserved
version id when the upload finishes; the version appears when processing completes. Call
WaitForVersion when the same script needs it. See Publish through model
ingestions.What happens if I call Send3 twice with the same builder?
What happens if I call Send3 twice with the same builder?
It fails.
Send3 finishes the builder, so it cannot be reused. Create a new BundleBuilder for
each version you publish.I published but cannot find the version in the UI
I published but cannot find the version in the UI
Processing may still be running, or it failed. Wait for
WaitForVersion to return; if it
throws, the publish did not create a version and you should send again.Next Steps
Build your first model analysis tool
Recommended next — load and analyse existing models
Load and publish model data
Choose the right load and publish path
Object model
How properties and relations are stored
Need Help?
Community Forum
Ask questions and get help
GitHub
View source code and report issues