Origami

API overview

Base URL, authentication, formats, errors and timing of the HTTP API.

Base URL

https://api-next.origamidb.xyz/v1

Everything is below /v1. Answers may gain fields, so ignore those you don't know. While Origami is in preview, the API may still change: see Status.

Endpoints

WorkspacesPOST /v1/workspaces, GET /v1/workspaces, GET and DELETE /v1/workspaces/{id}
ExecPOST /v1/workspaces/{id}/exec
Files/v1/workspaces/{id}/files, /files/children, /files/content, /files/move
MCPPOST /v1/mcp

Authentication

Every request carries an organization's API key:

http
Authorization: Bearer og_sk_...

See Authentication.

Requests and answers

  • JSON in and out, as application/json, except a file's bytes in the files API.
  • Ids are strings. A workspace's id begins with ws_.
  • Times are ISO 8601 in UTC: 2026-11-24T18:02:11.204Z.
  • Success is a 2xx status. A 200 never carries a failure inside, with one exception: exec answers 200 for a command that ran, whatever its exit code.
  • Nothing is cached. Every answer has Cache-Control: private, no-store.

Errors

Every error is an RFC 9457 problem document:

JSON
{
  "type": "urn:origami:problem:not_found",
  "title": "Not found",
  "status": 404,
  "code": "not_found",
  "detail": "There is no such workspace."
}

Branch on code: the list is closed and its meanings don't change. detail is for people and may change. See Errors.

Timing

Every answer says how long the service took, and on what, in the standard Server-Timing header. Browsers' developer tools show it.

http
Server-Timing: auth;dur=0.4, open;dur=0.0, queue;dur=0.0, look;dur=48.9, run;dur=5.1, write;dur=0.3, total;dur=55.2
StepWhat it is
authChecking the key
openGetting the workspace ready. Longer after a minute without use
queueWaiting for earlier commands on the same workspace
lookCatching up with what other clients wrote
runThe command, or the file operation
writeStoring what changed
totalAll of it, until the answer began

Steps that didn't happen are left out. The time on the network between you and the service isn't in any of them.

Rate limits

None yet. Be reasonable: the storage behind a workspace takes a few hundred requests a second in all.

Health

GET /health answers {"status":"ok"} while the service runs, and GET /ready once it can reach its database. Neither needs a key.