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.
# Who am I, and what can I do? curl https://<your-workspace>/identity/me \ -H "Authorization: Bearer $SADDLE_TOKEN"
Quickstart
/identity/me to confirm the workspace and your roles.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
/queryRead records, links and views of the product graph./dispatchSend a command through the same write path the app uses.Drafts and proposals
/drafts/patchesStage structured edits in your draft./drafts/hunksStage inline document edits as tracked changes./drafts/proposalsList proposals and their review state./drafts/proposals/:id/reviewsAccept or reject a proposal.Publish
/publishPublish accepted work to the shared record./publish/:operation_idFollow a publish to completion, or resume it.Import
/import/profileProfile a spreadsheet or export before import./import/dry-runPreview exactly what an import would create./import/stageStage an import into a draft for review./import/mapping-templates/:programIdReuse saved column mappings.Copilot
/agent/threadsStart a copilot thread for a program./agent/threads/:id/turnsSend a turn and stream the work./agent/threads/:id/steerSteer or interrupt a running turn./jobs/agent-runsList agent runs and what they proposed.Events
/events/workspaceLive record changes and presence./events/agent/:threadIdLive progress for one copilot thread.Identity and admin
/identity/meThe signed-in account, person and roles./admin/invitesInvite people to the workspace./admin/programs/:programId/rolesAssign program roles./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.
{
"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.