Developers / API

The product graph, over HTTP.

Automate the work around your hardware program. The Saddle API gives scripts and services the same capabilities as the app: query the graph, import from other systems, run the copilot and review every change.

GET/identity/mePOST/queryPOST/drafts/proposalsPOST/import/stageGET/events/workspaceOne write pathsame as the app200 application/jsonEVENTSentity-changed · presence

Overview

The Saddle API is the same HTTP interface the Saddle app is built on. Anything you can do in the app, you can automate: read the graph, stage imports from other systems, run the copilot, review proposals and follow live changes.

One write path

Every change, from the app, an agent or a script, goes through the same command path and the same checks.

Review built in

Writes land in drafts and proposals. Publishing is a separate, deliberate step.

Live by default

Server-sent events stream record changes, presence and copilot progress.

Authentication

Requests carry an account token in the Authorization header. Each token is bound to one workspace and acts with the roles of the person who created it. Sign-in for people uses your workspace's login, with single sign-on through OpenID Connect.

Terminalcurl
# Who am I, and what can I do?
curl https://<your-workspace>/identity/me \
  -H "Authorization: Bearer $SADDLE_TOKEN"

Quickstart

Create a tokenSettings, then Developers, then New token.
Check your identityCall /identity/me to confirm the workspace and your roles.
Stage your first importProfile a spreadsheet, preview it with a dry run, then stage it into a draft for review.
TerminalFollow live changes
curl -N https://<your-workspace>/events/workspace \
  -H "Authorization: Bearer $SADDLE_TOKEN"

event: entity-changed
event: presence

Key concepts

Programs

A program holds one product's records, people, roles and policies.

Records and links

Requirements, parts, tests, risks and decisions, connected by typed links.

Drafts

Your private working copy. Edits and imports land here first.

Proposals

Reviewable changes from people or agents. Accept or reject each one.

Reference

Endpoints are grouped by what they do. Paths shown relative to your workspace address.

Graph

MethodPathDescription
POST/queryRead records, links and views of the product graph.
POST/dispatchSend a command through the same write path the app uses.

Drafts and proposals

MethodPathDescription
POST/drafts/patchesStage structured edits in your draft.
POST/drafts/hunksStage inline document edits as tracked changes.
GET/drafts/proposalsList proposals and their review state.
POST/drafts/proposals/:id/reviewsAccept or reject a proposal.

Publish

MethodPathDescription
POST/publishPublish accepted work to the shared record.
GET/publish/:operation_idFollow a publish to completion, or resume it.

Import

MethodPathDescription
POST/import/profileProfile a spreadsheet or export before import.
POST/import/dry-runPreview exactly what an import would create.
POST/import/stageStage an import into a draft for review.
GET/import/mapping-templates/:programIdReuse saved column mappings.

Copilot

MethodPathDescription
POST/agent/threadsStart a copilot thread for a program.
POST/agent/threads/:id/turnsSend a turn and stream the work.
POST/agent/threads/:id/steerSteer or interrupt a running turn.
GET/jobs/agent-runsList agent runs and what they proposed.

Events

MethodPathDescription
SSE/events/workspaceLive record changes and presence.
SSE/events/agent/:threadIdLive progress for one copilot thread.

Identity and admin

MethodPathDescription
GET/identity/meThe signed-in account, person and roles.
POST/admin/invitesInvite people to the workspace.
POST/admin/programs/:programId/rolesAssign program roles.
GET/admin/programs/:programId/audit-exportExport the verified audit trail.

Errors

Errors return a stable code, a readable message and the invariants that were checked, so scripts and agents can recover without guessing.

Response409
{
  "code": "WORKSPACE_INCARNATION_CHANGED",
  "message": "The workspace was restored. Refresh and retry.",
  "invariants": [ ... ]
}

Retries and idempotency

Imports take an idempotency key, and long operations such as publish return an operation id you can poll or resume. A retried request never creates a second copy of the same work.

Build on the same API as Saddle.Nothing held back.

Saddle up.

Build something
ambitious.

Tell us about your team and what you’re building.

Form preview. Your details stay on this page; nothing is sent.