See Stacksync in action with a solution architect. Book a demo ↗

Stacksync API

The REST API of Stacksync: workspaces, connections, syncs, workflows, Genies, queues, variables, folders, files, knowledge bases and API proxies

The Stacksync API manages your workspace's resources over HTTPS with JSON: create and run syncs, workflows and Genies, and manage the connections, queues, variables and files they use. This reference lists every operation by resource in the sidebar; each page shows its parameters, its answers, code samples in curl, Python and JavaScript, and a form to try it. The same reference is one machine-readable document: /openapi.json (OpenAPI 3.1).

Are you an AI agent? Read /openapi.json for the whole API, or any page of this reference as Markdown by adding .md to its URL. For AI agents has the rules on one screen.

Base URLs

APIBase URL
Stacksync APIhttps://api.stacksync.com
Genie runshttps://genies.stacksync.com

All paths start with /v1. See Versioning and changelog.

One header

Every request carries an API key in the Authorization header. There is no OAuth flow and no request signature.

curl https://api.stacksync.com/v1/workspaces \
  -H "Authorization: Bearer $STACKSYNC_API_KEY"

There are two types of key, the workspace API key (workspace_…) and the user API key (user_…). Authentication explains which to use and what each can do.

Workspaces and regions

Resources belong to a workspace and live in one of two data regions, besg (Europe) or usnv (United States). Paths name the workspace (/v1/workspaces/{workspace_id}/…) and operations on a regional resource take a region query parameter. Workspaces and regions shows how to find both.

Answers

Lists answer one envelope, with offset pagination:

{ "data": [], "has_more": false, "limit": 50, "offset": 0 }

Errors answer a 4xx status and a body that names the problem:

{ "error": "Invalid API Key", "msg": "The API Key provided in the request is invalid" }

The older sync operations page and report errors their own way; their pages show it. Most answers carry an X-Request-Id header: quote it when you contact support. Details in Pagination and idempotency and Errors.

Try it from this page

Each operation page has a form to send the request. The key you type is sent from your browser straight to api.stacksync.com, as your own code would send it. It never passes through docs.stacksync.com and is not stored by Stacksync; your browser keeps it only for this tab, until you close it.

For AI agents

Agents read the reference as Markdown: add .md to any page URL, or load the OpenAPI document. For AI agents is the one-screen version of these rules.

On this page