agent-loop
Create Workspace
Create a new workspace OR (for Scott pushes) upsert one keyed on (captured_by_user_id, source_kind, source_id).
Two flows:
- No scott_push: classic workspace creation. Single transaction.
- With scott_push: idempotent. Same (user, source_kind, source_id) returns the same planspace. Push artifact metadata is replaced in place; scott_push turns are APPENDED past the existing chain tip (never deleted). Non-scott_push turns the user added in the Scott UI are never touched — they stay parented where the user put them and become branches at the prior tip after the next push.
post/agent-loop/workspaces
Request
- Base URLhttps://api.tryscott.ai (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.