Skip to content
Reference › MCP tools
Docs › Reference › MCP tools

MCP tools

All 207 tools the server offers, grouped by what they're for. Every one carries its parameters in its own schema (tools/list), so this is the map, not the manual. A client that connected before a tool existed keeps its old list until it reconnects.

The tools with a web route and a CLI command under them are one call through three doors: the MCP tool, the API at https://spacesheep.dev/v1 (send Authorization: Bearer ss_…), and the spacesheep CLI. Their words come from the server's own definition, so they say what the server does. A refusal carries a code to branch on, a sentence for a person and, on the API, an HTTP status. Any call can refuse with insufficient_scope (403), internal (500), needs_consent (403), not_granted (403), not_in_trial (403), payload_too_large (413), replay_mismatch (409), unauthenticated (401).

What each refusal word means
invalid (400)
An input broke a rule (violations names it when it can). Fix it and send again.
bad_host (400)
An outside host isn't one plain public hostname: no scheme, path, port, *, IP, local name or our own hosts.
bad_path (400)
A skill file's name or type isn't one a skill may hold (the message names the file). Rename or drop it.
unauthenticated (401)
No credential, or one that expired or was revoked. Sign in, or send a valid key.
forbidden (403)
This account, or this kind of connection, may not do this here. Resending won't help.
read_only_grant (403)
This read-only connection (a read key, or a spacesheep:read grant) can't make this call. Use a full key.
insufficient_scope (403)
This call is outside the key's or token's scope; a streams or session-hooks key opens none. Use a full key.
not_granted (403)
This call is outside what the skill may ever ask for, so it can't be granted. Nothing changed.
needs_consent (403)
This call needs a permission you haven't given yet; open the link to answer.
not_in_trial (403)
A trial can't reach MCP or an outside host. Carry a fixture in the draft, or approve it first.
content_blocked (403)
Screening refused the content (credentials sent to another site). Change it, or ask support to review it.
not_found (404)
Nothing by that name or id here: no such space, version, file, comment, post, list, team or member.
conflict (409)
Something changed first: a newer version, a request open or closed, or a new owner. Read it again and resend.
turn_held (409)
Someone's Shepherd is changing this space now. Wait for that turn to end, read it again, then resend.
replay_mismatch (409)
This restarted run asked for a different call than the one that already ran here; nothing was written.
payload_too_large (413)
Too big: over the request's size cap, or over the plan's limits on files and bytes.
signed_space (422)
It has a signed version or an open signature request, so it can't be deleted. Archive it instead.
wrong_kind (422)
Not on this kind of space: a flock isn't archived, for one.
answer_too_large (422)
The answer is too big for this call (over 1 MB). Open the space's address instead.
failed_precondition (422)
The target isn't in a state this allows (the message names which): deleted, unreviewed, or lower than now.
rate_limited (429)
Too many calls too fast. Wait as long as Retry-After or the message says, then send again.
quota_exceeded (429)
A limit is reached: the day's publish budget, your share lists, a team's seats or a discussion's posts.
suspended (451)
The space was taken down, so it can't be changed. The message says where to appeal.
publish_failed (500)
The publish didn't finish, and nothing was saved. Try again.
internal (500)
Something failed on spacesheep's side; the call may not have finished. Read before you try again.
unimplemented (501)
The server knows this call but doesn't run it yet.
unavailable (503)
A service behind the call is down or unreachable. Try again soon.

Publish and change a space

create_space

Publish files as a new space: one HTML file, or a folder with an index.html. Private unless you say who can open it.

POST /v1/spaces · spacesheep spaces create

Inputs, who can call it, refusals
CLI
spacesheep spaces create <title> --files <list of files> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), content_blocked (403), failed_precondition (422), forbidden (403), invalid (400), publish_failed (500), quota_exceeded (429), rate_limited (429), read_only_grant (403)
Old names, still answered
deploy
InputTakesWhat it is
titlea titleIts title, as lists and link previews show it. (at most 200 characters)
emojitextOne emoji. (at most 16 characters)
descriptiontextOne line on what it is. (at most 300 characters)
visibilityone of private, members, signed_in, publicWho can open a space.
listedtrue or falseListed in search and on the owner's profile (public spaces only).
teamteam nameIts team, when it lives in one.
team_idteam idteam by its id, instead of its name.
team_accessone of view, editWith a team: what its members may do. View (read and comment) when left out.
design_systemtextA design system of yours, by name or id: later edits keep its look.
archivedtrue or falseWhether it's archived: put away, not served, out of lists unless asked for. Only its owner changes it: true archives it (it leaves search, open tabs are checked again, its custom domain is let go), false restores it.
officialtrue or falseWhether it belongs to Spacesheep's official account, @shepherd. Only someone who publishes for Spacesheep sets it, on a space they own: true moves it to spacesheep.dev/@shepherd/<slug> (links already shared keep working, and they stay an editor). It can't be set back to false.
fileslist of filesIts files: an index.html at least. (required)
files[].pathtextIts path inside the space: index.html, img/hero.jpg. (required; at most 512 characters)
files[].contentHTMLText, as it is.
files[].staged_shatextWhat an upload staged: its staged sha.
files[].databytesSmall binary files only; anything bigger goes through an upload.
labeltextWhat this version is, in a few words. (at most 80 characters)
clientclientWhat published it: your harness, session and machine.
client.nametextYour harness, lowercase: claude-code, codex, opencode, grok, gemini-cli, cursor, chatgpt.
client.versiontextYour harness's version.
client.modeltextThe model id you run as, if you know it.
client.session_idtextYour harness's session id, only one you actually read.
client.machinetextThe machine's hostname.
client.urltextA link that opens this session, if your harness gives one.
client.account_idtextThe harness account's id, never an email.
client.org_idtextThat account's org or workspace id.
client.repotextThe working directory's git remote.
client.branchtextIts branch.
client.committextIts short HEAD sha.
client.extraJSON objectOther small facts that identify the session (entrypoint, OS); never secrets.
client.transporttextSet by the server from the door the call came through; ignored if sent: mcp, api or cli.
client.user_agenttextSet by the server: the request's User-Agent, cut to 200 characters; ignored if sent.
client.othertextSet by the server, ignored if sent: what else saved it, in today's via words (edit, viewer, agent...).
slugtextIts address after @you/; made from the title when left out. (at most 80 characters)
peoplelist of person nameShare it with them as it's made: emails or @handles.
people_idslist of person idpeople by their ids, instead of their names.
orgtextAn Enterprise organization to publish under, by slug or id (a team is team).
skilltextThe skill whose template this page came from (@handle/slug), so the skill counts it as made with it. (at most 120 characters)
update_space

Change a space's title, emoji, description or who can open it, or archive it. Its files don't change.

PATCH /v1/spaces/{space.id} · spacesheep spaces update

Inputs, who can call it, refusals
CLI
spacesheep spaces update <space> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), failed_precondition (422), forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), wrong_kind (422)
InputTakesWhat it is
spacespace nameThe space to change. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
titlea titleIts title, as lists and link previews show it. (at most 200 characters)
emojitextOne emoji. (at most 16 characters)
descriptiontextOne line on what it is. (at most 300 characters)
visibilityone of private, members, signed_in, publicWho can open a space.
listedtrue or falseListed in search and on the owner's profile (public spaces only).
teamteam nameIts team, when it lives in one.
team_idteam idteam by its id, instead of its name.
team_accessone of view, editWith a team: what its members may do. View (read and comment) when left out.
design_systemtextA design system of yours, by name or id: later edits keep its look.
archivedtrue or falseWhether it's archived: put away, not served, out of lists unless asked for. Only its owner changes it: true archives it (it leaves search, open tabs are checked again, its custom domain is let go), false restores it.
officialtrue or falseWhether it belongs to Spacesheep's official account, @shepherd. Only someone who publishes for Spacesheep sets it, on a space they own: true moves it to spacesheep.dev/@shepherd/<slug> (links already shared keep working, and they stay an editor). It can't be set back to false.
share_space

Share a space with people by email or @handle. They can read and comment, unless you pass role: edit.

POST /v1/spaces/{space.id}:share · spacesheep spaces share

Inputs, who can call it, refusals
CLI
spacesheep spaces share <space> (--people <list of person name> | --people-ids <list of person id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
peoplelist of person nameWho: emails or @handles. (one of people / people_ids, required)
people_idslist of person idpeople by their ids, instead of their names. (one of people / people_ids, required)
roleone of edit, viewWhat they may do; view when left out.
delete_space

Delete a space and every file in it, for good. Owner only.

DELETE /v1/spaces/{space.id} · spacesheep spaces delete

Inputs, who can call it, refusals
CLI
spacesheep spaces delete <space>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), signed_space (422)
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
create_version

Publish a new version of a space you can edit: its whole set of files, or exact changes to the current ones.

POST /v1/spaces/{space.id}/versions · spacesheep versions create

Inputs, who can call it, refusals
CLI
spacesheep versions create (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), content_blocked (403), forbidden (403), invalid (400), not_found (404), publish_failed (500), quota_exceeded (429), rate_limited (429), read_only_grant (403), suspended (451), turn_held (409), unavailable (503)
Old names, still answered
deploy, edit
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
fileslist of filesEvery file of the new version; leave out to send replacements instead.
files[].pathtextIts path inside the space: index.html, img/hero.jpg. (required; at most 512 characters)
files[].contentHTMLText, as it is.
files[].staged_shatextWhat an upload staged: its staged sha.
files[].databytesSmall binary files only; anything bigger goes through an upload.
labeltextWhat this version is, in a few words. (at most 80 characters)
parentversion idThe version you read. If the space moved on since, nothing is lost: exact replacements are laid on the newer version where their old text still reads, whole files are merged line by line, and a save that lands while this one is being saved is replayed once. Only a real clash is refused, as conflict naming the server's version. Left out: replacements apply to whatever is current, and files are laid on your own last version of this space, so what others saved since is merged in. If someone else published the live version and you never saved this space, the save is refused as conflict (violation no_base) naming the live version: send it as parent to build on it, or with the same files to replace it on purpose.
replacementslist of replacementsExact changes to the current files, instead of sending every file.
replacements[].pathtextIts file; index.html when left out.
replacements[].old_stringtextThe words to find, exactly. They must appear once, unless replace_all. (required)
replacements[].new_stringtextWhat goes in their place; empty deletes them.
replacements[].replace_alltrue or falseReplace every match, not just one.
clientclientWhat published it: your harness, session and machine.
client.nametextYour harness, lowercase: claude-code, codex, opencode, grok, gemini-cli, cursor, chatgpt.
client.versiontextYour harness's version.
client.modeltextThe model id you run as, if you know it.
client.session_idtextYour harness's session id, only one you actually read.
client.machinetextThe machine's hostname.
client.urltextA link that opens this session, if your harness gives one.
client.account_idtextThe harness account's id, never an email.
client.org_idtextThat account's org or workspace id.
client.repotextThe working directory's git remote.
client.branchtextIts branch.
client.committextIts short HEAD sha.
client.extraJSON objectOther small facts that identify the session (entrypoint, OS); never secrets.
client.transporttextSet by the server from the door the call came through; ignored if sent: mcp, api or cli.
client.user_agenttextSet by the server: the request's User-Agent, cut to 200 characters; ignored if sent.
client.othertextSet by the server, ignored if sent: what else saved it, in today's via words (edit, viewer, agent...).
backgroundtrue or falseFor scheduled refreshes: saved without moving the space up in Recent.
live_patchlist of JSON objectThe edits you already showed with a live push: the save is announced as them, so open tabs don't reload.
drop_filestrue or falseFiles are the whole new version, so a save that would remove more than 30% of the space's files (or its index.html), or cut index.html to under a fifth of its size, is refused naming what it would remove, and nothing is saved. Keep a file by sending its staged_sha from list_files; set this only when the smaller version is meant. A placeholder index.html is refused either way.
skilltextThe skill whose template this page came from (@handle/slug), so the skill counts it as made with it. (at most 120 characters)
keep_otherstrue or falseWith files: every file of the current version you leave out of files is kept unchanged, as if you had sent its staged_sha, instead of being removed. Send only the files you changed; nothing is dropped, so the drop_files guard can't trip on the ones you left out. To remove a file, leave this off and send the full set.
restore_version

Make an older version the current one again, as a new version. Nothing in the history is lost.

POST /v1/spaces/{space.id}/versions/{version.id}:restore · spacesheep versions restore

Inputs, who can call it, refusals
CLI
spacesheep versions restore <version> (--space <space name> | --space-id <space id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
content_blocked (403), forbidden (403), invalid (400), not_found (404), publish_failed (500), rate_limited (429), read_only_grant (403), suspended (451), turn_held (409)
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
versionversion idA version of a space: its sha. (required)
create_upload

Links to upload big files to before you publish: PUT each file, then name it by its staged sha.

POST /v1/me/uploads · spacesheep uploads create

Inputs, who can call it, refusals
CLI
spacesheep uploads create [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), read_only_grant (403)
Old names, still answered
stage_begin
InputTakesWhat it is
titletextWhat you're about to publish, for whoever reviews the call. (at most 200 characters)
spacespace nameThe space it updates, when it updates one.
space_idspace idspace by its id, instead of its name.
visibilityone of private, members, signed_in, publicWho will open it, for whoever reviews the call; the publish decides.
fileslist of planned filesFor a big site: every file you're about to upload, so the answer can refuse it now, not after the upload.
files[].pathtextIts path inside the space. (required)
files[].size64-bit whole numberIts size in bytes.
files[].staged_shatextIts staged sha, when you have one.
create_highlight

Highlight words in a space with a marker, as the viewer's Highlight button does: a new version, shown on open tabs.

POST /v1/spaces/{space.id}/highlights · spacesheep highlights create

Inputs, who can call it, refusals
CLI
spacesheep highlights create (--space <space name> | --space-id <space id>) --highlights <list of highlights> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), turn_held (409), unavailable (503), wrong_kind (422)
Old names, still answered
highlight_text
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. Needs edit rights on a static page. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
highlightslist of highlightsThe words to mark, and where: 1 to 20, each its own mark. A run of them is one "Highlights" line in the history. (required)
highlights[].texttextThe words, exactly as a reader sees them on the page (no markup). (required; at most 4,000 characters)
highlights[].beforetextA few words right before them, when the words appear more than once. (at most 80 characters)
highlights[].aftertextA few words right after them, when the words appear more than once. (at most 80 characters)
highlights[].blocktextThe block they sit in (its data-ss-id), looked in first.
colorone of yellow, green, pink, blue, orange, purpleThe marker's ink for all of them; yellow when left out.
delete_highlight

Take a highlight off a space: the words stay as written, the marker goes, as a new version.

DELETE /v1/spaces/{space.id}/highlights/{highlight.id} · spacesheep highlights delete

Inputs, who can call it, refusals
CLI
spacesheep highlights delete <highlight> (--space <space name> | --space-id <space id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), turn_held (409), unavailable (503), wrong_kind (422)
Old names, still answered
remove_highlight
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
highlighthighlight idThe highlight: its id, or a <mark>'s data-ss-mark in the page's source. (required)
get_capture_limits

Your plan's limits for copying a web page: supporting assets per page, files and upload sizes.

GET /v1/me/captureLimits · spacesheep capture-limits get

Inputs, who can call it, refusals
CLI
spacesheep capture-limits get
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403)

It takes no inputs.

list_page_images

The images on a web page, best first (its hero image usually leads), as links: nothing is downloaded.

GET /v1/pageImages · spacesheep page-images list

Inputs, who can call it, refusals
CLI
spacesheep page-images list --url <text> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
urltextThe web page, as a full https link. (required; at most 2,048 characters)
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
import_upload_file

Fetch an image from the web into your staged files, resized and without EXIF, to publish by its staged sha.

POST /v1/me/uploadFiles:import · spacesheep upload-files import

Inputs, who can call it, refusals
CLI
spacesheep upload-files import --url <text> --path <text>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
stage_url
InputTakesWhat it is
urltextThe image file's own https link (a page's link lists its images instead). (required; at most 2,048 characters)
pathtextIts path inside the space, img/hero.jpg: the page refers to it by exactly this path. (required; at most 512 characters)

Publish a "working on it" page and get its link in about a second, before the real page exists.

POST /v1/liveLinks · spacesheep live-links create

Inputs, who can call it, refusals
CLI
spacesheep live-links create <title> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
content_blocked (403), forbidden (403), invalid (400), publish_failed (500), quota_exceeded (429), rate_limited (429), read_only_grant (403)
Old names, still answered
live_link
InputTakesWhat it is
titlea titleThe space's working title: what the finished space will be called. (required; at most 200 characters)
emojitextOne emoji, the space's icon. (at most 32 characters)
descriptiontextOne line on what the finished space will show. (at most 300 characters)
statustextThe first step, in a few words; "Getting started" when left out. (at most 200 characters)
visibilityone of private, members, signed_in, publicWho can open it; your default for new spaces when left out.
teamteam nameA team you're on, to put the new space in.
team_idteam idteam by its id, instead of its name.
clientclientWho asked for it: your harness, session and machine.
client.nametextYour harness, lowercase: claude-code, codex, opencode, grok, gemini-cli, cursor, chatgpt.
client.versiontextYour harness's version.
client.modeltextThe model id you run as, if you know it.
client.session_idtextYour harness's session id, only one you actually read.
client.machinetextThe machine's hostname.
client.urltextA link that opens this session, if your harness gives one.
client.account_idtextThe harness account's id, never an email.
client.org_idtextThat account's org or workspace id.
client.repotextThe working directory's git remote.
client.branchtextIts branch.
client.committextIts short HEAD sha.
client.extraJSON objectOther small facts that identify the session (entrypoint, OS); never secrets.
client.transporttextSet by the server from the door the call came through; ignored if sent: mcp, api or cli.
client.user_agenttextSet by the server: the request's User-Agent, cut to 200 characters; ignored if sent.
client.othertextSet by the server, ignored if sent: what else saved it, in today's via words (edit, viewer, agent...).
push_live

Show a change on every open tab of a space at once, without publishing; says which tabs drew it.

POST /v1/spaces/{space.id}/live:push · spacesheep live push

Inputs, who can call it, refusals
CLI
spacesheep live push (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), turn_held (409), unavailable (503)
Old names, still answered
live_push
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
htmlHTMLThe whole page, drawn in place.
statustextA few words on what you're doing now. (at most 200 characters)
streamJSON objectA stream of the page or of one block, in pieces.
editslist of JSON objectAnchored edits, applied in order on every open tab.
modeone of auto, morph, swapWith html: morph unless a script changed (the default), morph, or swap.
stoppedtrue or falseWith status: you stopped without finishing, so the card stops saying you're working.
list_live_events

The events a space's page sent from open tabs since a point, waiting up to 25 seconds for the next one.

GET /v1/spaces/{space.id}/live/events · spacesheep live-events list

Inputs, who can call it, refusals
CLI
spacesheep live-events list (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
Old names, still answered
live_events
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
wait_secondsintegerHow long to wait for a new event before answering empty; 20 when left out. (0 to 25)
highlight_textHighlight words in a space with a marker, as the viewer’s Highlight button does: saved into the page as a new version, shown on every open tab at once. Six inks.
remove_highlightTake a highlight off a space by its id. The words stay as written.
stage_urlDownload an image from the web straight into a staged upload, so the page carries its own copy instead of hotlinking someone else's.
Hand the person a link before the work is done: publishes a “working on it” page at once, shows each step you report with live_push, and your final create_version replaces it.
live_pushShow a change on every open tab of a space instantly, without publishing — a whole page, one block, or old → new text. Reports which tabs applied it.
live_eventsWhat the page sent back: clicks on [data-ss-emit] elements and window.ss.emit() calls, waiting for the next one if you ask.

Find and read

list_spaces

Every space you own or can open, newest first.

GET /v1/spaces · spacesheep spaces list

Inputs, who can call it, refusals
CLI
spacesheep spaces list [flags]
Who can call it
a person in the browser; your API keys, read-only ones too (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
include_archivedtrue or falseArchived spaces too, each marked archived. Off: they stay out, as archiving's docs say.
get_space

A space's details: title, address, who can open it and its head version.

GET /v1/spaces/{space.id} · spacesheep spaces get

Inputs, who can call it, refusals
CLI
spacesheep spaces get <space>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
search_spaces

Find spaces by the words inside them, not just their titles: yours, or every listed public space.

GET /v1/spaces:search · spacesheep spaces search

Inputs, who can call it, refusals
CLI
spacesheep spaces search --query <text> [flags]
Who can call it
a person in the browser; your API keys, read-only ones too (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), unavailable (503)
InputTakesWhat it is
querytextWhat to look for, in words. (required; at most 500 characters)
scopeone of mine, publicWhere a search looks.
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
list_versions

A space's history, newest first: each version's label, time, author and what published it.

GET /v1/spaces/{space.id}/versions · spacesheep versions list

Inputs, who can call it, refusals
CLI
spacesheep versions list (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys, read-only ones too (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404)
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
list_files

A space's files and their paths: the current version, or an older one.

GET /v1/spaces/{space.id}/files · spacesheep files list

Inputs, who can call it, refusals
CLI
spacesheep files list (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys, read-only ones too (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404)
Old names, still answered
read_space
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
versionversion idAn older version; the current one when left out.
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
get_file

One file of a space: its contents in the current version, or an older one.

GET /v1/spaces/{space.id}/files/{file} · spacesheep files get

Inputs, who can call it, refusals
CLI
spacesheep files get <file> (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys, read-only ones too (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
answer_too_large (422), forbidden (403), invalid (400), not_found (404)
Old names, still answered
read_space
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
filetextIts path inside the space: index.html, img/hero.jpg. (required; at most 512 characters)
versionversion idAn older version; the current one when left out.
offset64-bit whole numberFrom this character on, 60,000 at a time, for a file too long to read whole. Any offset given, 0 included, reads a part; left out, the whole file. (at least 0)
querytextA JSONata expression run over the file on the server; only its result comes back. (at most 2,000 characters)
list_publish_attempts

Every publish your agents sent in the last hours, newest first: published where, or refused and why.

GET /v1/me/publishAttempts · spacesheep publish-attempts list

Inputs, who can call it, refusals
CLI
spacesheep publish-attempts list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403)
Old names, still answered
publish_log
InputTakesWhat it is
hoursintegerHow far back, in hours; 24 when left out. (1 to 720)
only_refusedtrue or falseOnly the publishes that were refused.
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
get_space_analytics

Who read a space you own and when: views, unique readers, a daily series and signed-in readers by name.

GET /v1/spaces/{space.id}/analytics · spacesheep analytics get

Inputs, who can call it, refusals
CLI
spacesheep analytics get (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
Old names, still answered
space_analytics
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. Its owner only. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
daysintegerHow many days of daily history; 30 when left out. (1 to 120)
list_records

A collection's records, newest first: yours only in a private one, unless the space is yours.

GET /v1/spaces/{space.id}/collections/{collection}/records · spacesheep records list

Inputs, who can call it, refusals
CLI
spacesheep records list (--space <space name> | --space-id <space id>) --collection <text> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
collectiontextThe collection's name. (required)
sincetimeOnly records changed after this: what an open page re-reads after a ping.
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
get_record

One record, with its revision.

GET /v1/spaces/{space.id}/collections/{collection}/records/{record} · spacesheep records get

Inputs, who can call it, refusals
CLI
spacesheep records get <record> (--space <space name> | --space-id <space id>) --collection <text>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
collectiontextThe collection's name. (required)
recordtextThe record's id. (required; at most 64 characters)
create_record

A new record in a collection.

POST /v1/spaces/{space.id}/collections/{collection}/records · spacesheep records create

Inputs, who can call it, refusals
CLI
spacesheep records create (--space <space name> | --space-id <space id>) --collection <text> --data <JSON object>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
collectiontextThe collection's name. (required)
dataJSON objectWhat it holds: a JSON object, at most 32 KB. Its shape is the page's (or a skill's), never Spacesheep's. (required)
update_record

Change a record: yours, any if the space is yours, or any in a shared collection anyone may edit.

PATCH /v1/spaces/{space.id}/collections/{collection}/records/{record.id} · spacesheep records update

Inputs, who can call it, refusals
CLI
spacesheep records update <record> (--space <space name> | --space-id <space id>) --collection <text> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
recordrecord idThe record to change. (required)
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
collectiontextThe collection's name. (required)
dataJSON objectWhat it holds: a JSON object, at most 32 KB. Its shape is the page's (or a skill's), never Spacesheep's.
revision64-bit whole numberThe revision you read. Left out: the write lands whatever changed since (today's pages).
delete_record

Delete a record: its author or the space's owner.

DELETE /v1/spaces/{space.id}/collections/{collection}/records/{record} · spacesheep records delete

Inputs, who can call it, refusals
CLI
spacesheep records delete <record> (--space <space name> | --space-id <space id>) --collection <text> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
collectiontextThe collection's name. (required)
recordtextThe record's id. (required; at most 64 characters)
revision64-bit whole numberThe revision you read; left out, it goes whatever changed since.
list_collections

A space's collections: each one's mode, edit rule and size.

GET /v1/spaces/{space.id}/collections · spacesheep collections list

Inputs, who can call it, refusals
CLI
spacesheep collections list (--space <space name> | --space-id <space id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
update_collection

Which other spaces may write a collection (writers) or show it to their readers (readers): the owner only.

PATCH /v1/spaces/{space.id}/collections/{collection.id} · spacesheep collections update

Inputs, who can call it, refusals
CLI
spacesheep collections update <collection> (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
collectioncollection idThe collection to change. (required)
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
modeone of private, shared, teamWho reads a collection's records.
editone of author, anyWho changes a record in a shared collection.
writerslist of space nameOther spaces whose pages may read and write it through their readers. The owner's list; empty: none.
writers_idslist of space idwriters by their ids, instead of their names.
readerslist of space nameOther spaces whose pages show it, read only and without its authors, to everyone who can open that space: signed out too on an open one. Only a shared collection, and only while that space's editors can open this one. The owner's list; empty: none.
readers_idslist of space idreaders by their ids, instead of their names.
publish_logWhy didn't it publish? Every deploy, edit and live link your agents sent lately, each published or refused, and why (a rate limit, a cap, screening, a held turn). The same list is on /me/debug.
space_analyticsWho read a space and when: views, unique readers, the last 30 days, and signed-in readers by name. Owner only.

See how it looks

screenshot_space

A PNG of a published space as a browser draws it, at any width or of one block, with what failed to load.

GET /v1/spaces/{space.id}:screenshot · spacesheep spaces screenshot

Inputs, who can call it, refusals
CLI
spacesheep spaces screenshot <space> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
Old names, still answered
screenshot
InputTakesWhat it is
spacespace nameThe space: its link (a sub-path in it is the page), @handle/slug or uuid. Private ones render as you. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
pathtextA page inside it, /notes.html; overrides the link's sub-path. (at most 512 characters)
full_pagetrue or falseThe whole scrollable page, or only the first screen; the whole page when left out.
widthintegerViewport width in CSS pixels: 390 for a phone; 1280 when left out. (320 to 1920)
heightintegerViewport height in CSS pixels, the fold; 800 when left out. (320 to 2000)
sectiontextOne block's data-ss-id: only that element is captured. (at most 120 characters)
review_space

A vision model scores a space's look on a phone and a desktop: findings, the smallest fix for each, a verdict.

GET /v1/spaces/{space.id}:review · spacesheep spaces review

Inputs, who can call it, refusals
CLI
spacesheep spaces review <space> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
Old names, still answered
design_review
InputTakesWhat it is
spacespace nameThe space: its link (a sub-path in it is the page), @handle/slug or uuid. Uses the owner's own model key. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
pathtextA page inside it, /notes.html; overrides the link's sub-path. (at most 512 characters)
export_space

A link to a PDF of a space as it prints, rendered on request from its current version. It lasts 2 hours.

GET /v1/spaces/{space.id}:export · spacesheep spaces export

Inputs, who can call it, refusals
CLI
spacesheep spaces export <space> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), wrong_kind (422)
Old names, still answered
download_pdf
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. Private ones render as you. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
paperone of letter, a4Paper size; letter when left out.
landscapetrue or falseLandscape, for wide tables and dashboards.
screenshotRender a space in a real browser and get back a PNG — the whole page or one block, at desktop width or width: 390 for a phone.
design_reviewA vision model looks at the rendered page on a phone and on a desktop, scores it against the design rules, and says what to fix.
download_pdfA PDF of the space as it prints, through a link that works for two hours and always renders the current version.

Share and comment

list_comments

A space's comments, in the order they sit in the space, with their threads.

GET /v1/spaces/{space.id}/comments · spacesheep comments list

Inputs, who can call it, refusals
CLI
spacesheep comments list (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys, read-only ones too (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404)
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
create_comment

Comment on a space: on the whole space, or pinned to a block. Write @spacesheep to ask its agent.

POST /v1/spaces/{space.id}/comments · spacesheep comments create

Inputs, who can call it, refusals
CLI
spacesheep comments create <body> (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
Old names, still answered
add_comment
InputTakesWhat it is
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
bodyMarkdownWhat it says. Set when it's posted; only its author changes it, in the viewer. (at most 10,000 characters)
blocktextThe block it's pinned to (its data-ss-id); empty for the whole space.
quotetextThe words it quotes. (at most 2,000 characters)
reply_tocomment idThe comment it answers, in a thread.
resolvedtrue or falseIts thread is resolved: true resolves a top-level comment's thread, false reopens it.
update_comment

Resolve a comment's thread, or reopen it. You say the state you want, so sending it twice changes nothing.

PATCH /v1/spaces/{space.id}/comments/{comment.id} · spacesheep comments update

Inputs, who can call it, refusals
CLI
spacesheep comments update <comment> (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
Old names, still answered
resolve_comment
InputTakesWhat it is
commentcomment idThe comment to change. (required)
spacespace nameThe space: its address, @handle/slug, or its link. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
resolvedtrue or falseIts thread is resolved: true resolves a top-level comment's thread, false reopens it.
create_reaction

Put an emoji on a comment. The same emoji from you again takes it off.

POST /v1/spaces/{space.id}/comments/{comment.id}/reactions · spacesheep reactions create

Inputs, who can call it, refusals
CLI
spacesheep reactions create (--space <space name> | --space-id <space id>) --comment <comment id> --emoji <text>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
Old names, still answered
react_to_comment
InputTakesWhat it is
spacespace nameThe space the comment is on: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
commentcomment idThe comment: its id. (required)
emojitextOne emoji: 👍 👎 ❤️ 🎉 🚀 👀 💯 🔥 ⚡ ✅ ❌ 😂 🤔 😍 🙏 💡 ⭐ 🌮 📌 💬 (required)
list_discussion_posts

A space's Discussion: open topics with their latest post, decisions, who's active. Can wait for the next post.

GET /v1/spaces/{space.id}/discussionPosts · spacesheep discussion-posts list

Inputs, who can call it, refusals
CLI
spacesheep discussion-posts list (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
Old names, still answered
discussion_read
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
topicdiscussion topic idOne topic as a numbered outline of every reply; the summary of all topics when left out.
wait_secondsintegerWait up to this many seconds for something newer than wait_after; 0 answers now. A new post, a resolve, a reopen or a changed outcome all end the wait. (0 to 25)
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
wait_aftertextWhere wait_seconds starts waiting: the last answer's wait_cursor. From now when left out.
create_discussion_post

Start a topic in a space's Discussion, or reply under a post. Signed with your session; readers never see it.

POST /v1/spaces/{space.id}/discussionPosts · spacesheep discussion-posts create

Inputs, who can call it, refusals
CLI
spacesheep discussion-posts create <text> (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403)
Old names, still answered
discussion_post
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
textMarkdownWhat you're posting. (required; at most 10,000 characters)
titlea titleA new topic's title; its first line stands in without one. Ignored on a reply. (at most 200 characters)
reply_todiscussion post idThe post you're answering, by its number (#2, #2.1); a new topic when left out.
anchortextA new topic's part of the space: a data-ss-thing path (chip/shire-3) or a data-ss-id.
clientclientWhere you're posting from: harness, model, session id, machine. Only what you can read; never secrets.
client.nametextYour harness, lowercase: claude-code, codex, opencode, grok, gemini-cli, cursor, chatgpt.
client.versiontextYour harness's version.
client.modeltextThe model id you run as, if you know it.
client.session_idtextYour harness's session id, only one you actually read.
client.machinetextThe machine's hostname.
client.urltextA link that opens this session, if your harness gives one.
client.account_idtextThe harness account's id, never an email.
client.org_idtextThat account's org or workspace id.
client.repotextThe working directory's git remote.
client.branchtextIts branch.
client.committextIts short HEAD sha.
client.extraJSON objectOther small facts that identify the session (entrypoint, OS); never secrets.
client.transporttextSet by the server from the door the call came through; ignored if sent: mcp, api or cli.
client.user_agenttextSet by the server: the request's User-Agent, cut to 200 characters; ignored if sent.
client.othertextSet by the server, ignored if sent: what else saved it, in today's via words (edit, viewer, agent...).
update_discussion_topic

Close a topic or a branch with what was decided, change that decision, or reopen it.

PATCH /v1/spaces/{space.id}/discussionTopics/{discussion_topic.id} · spacesheep discussion-topics update

Inputs, who can call it, refusals
CLI
spacesheep discussion-topics update <discussion_topic> (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
Old names, still answered
discussion_resolve
InputTakesWhat it is
discussion_topicdiscussion topic idThe discussion topic to change. (required)
spacespace nameThe space: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
outcometextWhat was decided, in one line. Closing it needs one; on a closed topic, a new one replaces it. (at most 500 characters)
resolvedtrue or falseClosed with its outcome: true closes it, false reopens it (and clears the outcome).
list_groups

Your groups (share lists) with their sizes; or one group's people and the spaces shared with it.

GET /v1/me/groups · spacesheep groups list

Inputs, who can call it, refusals
CLI
spacesheep groups list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
groupgroup nameOne group, to see its people and the spaces shared with it. Every group, with its size, when left out.
group_idgroup idgroup by its id, instead of its name.
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
create_group

Make a group: its title, and the addresses or @handles on it. Nobody is emailed.

POST /v1/me/groups · spacesheep groups create

Inputs, who can call it, refusals
CLI
spacesheep groups create <title> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403)
InputTakesWhat it is
titlea titleIts title, e.g. F26. (required; at most 60 characters)
addtextAddresses or @handles to put on it, in any form: one per line, commas, a CSV row, 'Name <addr>'. (at most 200,000 characters)
removetextAddresses or @handles to take off it. (at most 200,000 characters)
sharespace nameA space you own to share with everyone on it: they may view, comment and fill in forms. Nobody is emailed.
share_idspace idshare by its id, instead of its name.
unsharespace nameA space you own to stop sharing with it.
unshare_idspace idunshare by its id, instead of its name.
update_group

Rename a group, put people on it or take them off, or share a space of yours with it. Nobody is emailed.

PATCH /v1/me/groups/{group.id} · spacesheep groups update

Inputs, who can call it, refusals
CLI
spacesheep groups update <group> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
InputTakesWhat it is
groupgroup nameThe group to change. (one of group / group_id, required)
group_idgroup idgroup by its id, instead of its name. (one of group / group_id, required)
titlea titleIts title, e.g. F26. (at most 60 characters)
addtextAddresses or @handles to put on it, in any form: one per line, commas, a CSV row, 'Name <addr>'. (at most 200,000 characters)
removetextAddresses or @handles to take off it. (at most 200,000 characters)
sharespace nameA space you own to share with everyone on it: they may view, comment and fill in forms. Nobody is emailed.
share_idspace idshare by its id, instead of its name.
unsharespace nameA space you own to stop sharing with it.
unshare_idspace idunshare by its id, instead of its name.
delete_group

Delete a group. Every space shared with it stops being shared with its people.

DELETE /v1/me/groups/{group.id} · spacesheep groups delete

Inputs, who can call it, refusals
CLI
spacesheep groups delete <group>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
InputTakesWhat it is
groupgroup nameOne of your groups, by its title (any case). (one of group / group_id, required)
group_idgroup idgroup by its id, instead of its name. (one of group / group_id, required)
list_signature_requests

Every signature request on a space: who has signed, who hasn't, and whether you may ask for more.

GET /v1/spaces/{space.id}/signatureRequests · spacesheep signature-requests list

Inputs, who can call it, refusals
CLI
spacesheep signature-requests list (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
Old names, still answered
signing_status
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
create_signature_request

Ask named people to sign a version of your space. Each gets an email and signs in the viewer. Free plan: 15/month.

POST /v1/spaces/{space.id}/signatureRequests · spacesheep signature-requests create

Inputs, who can call it, refusals
CLI
spacesheep signature-requests create (--space <space name> | --space-id <space id>) --parties <list of signature parties> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503), wrong_kind (422)
Old names, still answered
request_signatures
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. Yours. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
versionversion idThe version to sign; the latest when left out.
partieslist of signature partiesWho signs, in any order: up to 20. (required)
parties[].emailtextTheir email; they sign in with it.
parties[].nametextTheir full name, filled in on the signing form. (at most 200 characters)
parties[].roletextWhich signature block (data-ss-sign) is theirs: company, contractor. (at most 80 characters)
parties[].on_behalf_oftextThe company or entity they sign for. (at most 200 characters)
notetextOne line to the parties, in the email they get. (at most 500 characters)
supersedessignature request idAn earlier request this one amends (an amended contract).
withdraw_signature_request

Withdraw an open signature request of yours. Signatures given stay on record; nobody else can sign it.

POST /v1/spaces/{space.id}/signatureRequests/{signature_request.id}:withdraw · spacesheep signature-requests withdraw

Inputs, who can call it, refusals
CLI
spacesheep signature-requests withdraw <signature_request> (--space <space name> | --space-id <space id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
signature_requestsignature request idThe request: its id. (required)

Your referral links and your spaces, and what each brought: visitors, signups and new makers. Numbers only.

GET /v1/me/referralLinks · spacesheep referral-links list

Inputs, who can call it, refusals
CLI
spacesheep referral-links list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)

Make a link, spacesheep.dev/r/<code>, that opens a spacesheep.dev page and counts who signs up through it.

POST /v1/me/referralLinks · spacesheep referral-links create

Inputs, who can call it, refusals
CLI
spacesheep referral-links create [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
targettextWhere it opens: a spacesheep.dev address or a path. The homepage when left out; another site is refused. (at most 500 characters)
labeltextA note only you see, like 'YouTube video, Oct 17'. (at most 80 characters)
archivedtrue or falseIt still opens its page, but counts nobody: true archives it, false brings it back.
referral_link_idtextIts code, spacesheep.dev/r/<code>: 3–32 letters, digits or dashes (maya, maya-oct). Random when left out.

Archive a referral link: it keeps opening its page but counts nobody. Or bring an archived one back.

PATCH /v1/me/referralLinks/{referral_link.id} · spacesheep referral-links update

Inputs, who can call it, refusals
CLI
spacesheep referral-links update <referral_link> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
archive_referral_link
InputTakesWhat it is
referral_linkreferral link idThe referral link to change. (required)
archivedtrue or falseIt still opens its page, but counts nobody: true archives it, false brings it back.
list_design_systems

Your design systems (title, version, size, teams), then teammates' shared with your teams.

GET /v1/me/designSystems · spacesheep design-systems list

Inputs, who can call it, refusals
CLI
spacesheep design-systems list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
get_design_system

A design system's whole Markdown note, to build or edit a space in its style: the current version or an older.

GET /v1/me/designSystems/{design_system.id} · spacesheep design-systems get

Inputs, who can call it, refusals
CLI
spacesheep design-systems get <design_system> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
design_systemdesign system nameA design system, by its title (any case). (one of design_system / design_system_id, required)
design_system_iddesign system iddesign_system by its id, instead of its name. (one of design_system / design_system_id, required)
versionintegerAn earlier version to read, e.g. 3. The current one when left out. (at least 1)
create_design_system

Save a new design system: a title and its Markdown note.

POST /v1/me/designSystems · spacesheep design-systems create

Inputs, who can call it, refusals
CLI
spacesheep design-systems create <title> --markdown <text>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
save_design_system
InputTakesWhat it is
titlea titleIts title, e.g. Acme brand. (required; at most 60 characters)
markdowntextThe whole note: colors with hex codes, fonts, tone, rules. A change makes a new version; spaces keep theirs. (required; at most 40,000 characters)
update_design_system

Rename a design system or replace its note, as a new version. Spaces built with an earlier one keep it.

PATCH /v1/me/designSystems/{design_system.id} · spacesheep design-systems update

Inputs, who can call it, refusals
CLI
spacesheep design-systems update <design_system> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
save_design_system
InputTakesWhat it is
design_systemdesign system nameThe design system to change. (one of design_system / design_system_id, required)
design_system_iddesign system iddesign_system by its id, instead of its name. (one of design_system / design_system_id, required)
titlea titleIts title, e.g. Acme brand. (at most 60 characters)
markdowntextThe whole note: colors with hex codes, fonts, tone, rules. A change makes a new version; spaces keep theirs. (at most 40,000 characters)
delete_design_system

Delete one of your design systems. Spaces built with it keep their look.

DELETE /v1/me/designSystems/{design_system.id} · spacesheep design-systems delete

Inputs, who can call it, refusals
CLI
spacesheep design-systems delete <design_system>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
design_systemdesign system nameA design system, by its title (any case). (one of design_system / design_system_id, required)
design_system_iddesign system iddesign_system by its id, instead of its name. (one of design_system / design_system_id, required)
share_design_system

Set which of your teams may use a design system of yours: pick it, read it, copy it. Only you change it.

POST /v1/me/designSystems/{design_system.id}:share · spacesheep design-systems share

Inputs, who can call it, refusals
CLI
spacesheep design-systems share <design_system> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
design_systemdesign system nameOne of your own design systems. (one of design_system / design_system_id, required)
design_system_iddesign system iddesign_system by its id, instead of its name. (one of design_system / design_system_id, required)
teamslist of team nameEvery team that may use it, by name or slug; teams left out stop seeing it. Empty: yours alone again.
teams_idslist of team idteams by their ids, instead of their names.
get_space_transfer

A transfer offered by you or to you: its space, its status, and the revision and terms to answer it with.

GET /v1/me/spaceTransfers/{space_transfer.id} · spacesheep space-transfers get

Inputs, who can call it, refusals
CLI
spacesheep space-transfers get <space_transfer>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
space_transferspace transfer idThe transfer: its uuid. (required)
list_space_transfers

The pending transfers you have sent or been offered.

GET /v1/me/spaceTransfers · spacesheep space-transfers list

Inputs, who can call it, refusals
CLI
spacesheep space-transfers list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
create_space_transfer

Offer one of your spaces to another verified account. It stays yours until they accept; the offer lasts 7 days.

POST /v1/me/spaceTransfers · spacesheep space-transfers create

Inputs, who can call it, refusals
CLI
spacesheep space-transfers create (--space <space name> | --space-id <space id>) (--recipient <person name> | --recipient-id <person id>) --request-id <text>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503), wrong_kind (422)
Old names, still answered
request_space_transfer
InputTakesWhat it is
spacespace nameThe space to hand over: one of your personal spaces. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
recipientperson nameWho gets it: an existing, verified account, by its exact @handle or email. (one of recipient / recipient_id, required)
recipient_idperson idrecipient by its id, instead of its name. (one of recipient / recipient_id, required)
request_idtextA uuid you pick for this offer, so a retry doesn't send a second one. (required)
accept_space_transfer

Accept a space offered to you: its content, history and sharing become yours; the sender stays an editor.

POST /v1/me/spaceTransfers/{space_transfer.id}:accept · spacesheep space-transfers accept

Inputs, who can call it, refusals
CLI
spacesheep space-transfers accept <space_transfer> --revision <integer> --terms <text>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503), wrong_kind (422)
InputTakesWhat it is
space_transferspace transfer idThe transfer: its uuid. (required)
revisionintegerThe revision you read; refused if it changed since. (required; at least 0)
termstextThe terms you reviewed (64 characters); refused if what is handed over changed since. (required)
decline_space_transfer

Say no to a space offered to you. Nothing changes hands.

POST /v1/me/spaceTransfers/{space_transfer.id}:decline · spacesheep space-transfers decline

Inputs, who can call it, refusals
CLI
spacesheep space-transfers decline <space_transfer> --revision <integer>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
space_transferspace transfer idThe transfer: its uuid. (required)
revisionintegerThe revision you read; refused if it changed since. (required; at least 0)
cancel_space_transfer

Take back a transfer you offered, before it is accepted.

POST /v1/me/spaceTransfers/{space_transfer.id}:cancel · spacesheep space-transfers cancel

Inputs, who can call it, refusals
CLI
spacesheep space-transfers cancel <space_transfer> --revision <integer>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
space_transferspace transfer idThe transfer: its uuid. (required)
revisionintegerThe revision you read; refused if it changed since. (required; at least 0)
copy_space

Make your own private copy of a space's current files. Pro and higher; needs the owner's leave to copy.

POST /v1/spaces/{space.id}:copy · spacesheep spaces copy

Inputs, who can call it, refusals
CLI
spacesheep spaces copy <space> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), content_blocked (403), forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503), wrong_kind (422)
InputTakesWhat it is
spacespace nameThe space to copy: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
request_idtextA uuid of yours: send the same one when retrying, so a retry makes no second copy.
get_copy_permission

Whether a space's owner allows copies of it, with the setting's revision.

GET /v1/spaces/{space.id}/copyPermission · spacesheep copy-permission get

Inputs, who can call it, refusals
CLI
spacesheep copy-permission get (--space <space name> | --space-id <space id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
update_copy_permission

Allow or stop future copies of your space. Copies made stay. Refused if the setting changed since you read it.

PATCH /v1/spaces/{space.id}/copyPermission · spacesheep copy-permission update

Inputs, who can call it, refusals
CLI
spacesheep copy-permission update (--space <space name> | --space-id <space id>) --revision <64-bit whole number> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
Old names, still answered
set_copy_permission
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. Its owner only. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
allowedtrue or falseCopies are allowed.
revision64-bit whole numberThe revision you read: refused if the setting changed since. (required; at least 0)
get_room_key

A space's room key, if it has one: the link for its QR code, its seats, how many are used, when it ends.

GET /v1/spaces/{space.id}/roomKey · spacesheep room-key get

Inputs, who can call it, refusals
CLI
spacesheep room-key get (--space <space name> | --space-id <space id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
update_room_key

Let a room answer your space's forms from phones, no sign-in: opens a key if there's none, else changes it. Pro.

PATCH /v1/spaces/{space.id}/roomKey · spacesheep room-key update

Inputs, who can call it, refusals
CLI
spacesheep room-key update (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), suspended (451), wrong_kind (422)
Old names, still answered
open_room_key
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. Its owner only; open to anyone with the link, and not an app. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
seatsintegerHow many phones may answer: 1 or more, capped by the plan (Pro 100, Max 500). (at least 1)
hoursnumberHow long it stays open from now, in hours; 2 when left out. Not a field of the key: it sets expires_at.
renewtrue or falseA new code: the old QR code and its seats stop working. Without it, an open key keeps its code. Sending it twice makes two codes.
delete_room_key

Close a space's room key: its QR code and every seat stop at once. Answers already sent stay.

DELETE /v1/spaces/{space.id}/roomKey · spacesheep room-key delete

Inputs, who can call it, refusals
CLI
spacesheep room-key delete (--space <space name> | --space-id <space id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
Old names, still answered
close_room_key
InputTakesWhat it is
spacespace nameThe space: its link, @handle/slug or uuid. Its owner only. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
get_custom_domain

A space's custom domain and where it stands: waiting on DNS (and the one thing to fix), live, or failed.

GET /v1/spaces/{space.id}/customDomain · spacesheep custom-domains get

Inputs, who can call it, refusals
CLI
spacesheep custom-domains get (--space <space name> | --space-id <space id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
spacespace nameThe space: its link or uuid. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
list_custom_domains

Every custom domain on your account, each with its space and where it stands, and how many your plan covers.

GET /v1/me/customDomains · spacesheep custom-domains list

Inputs, who can call it, refusals
CLI
spacesheep custom-domains list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
update_custom_domain

Put your space on a domain you own: answers the CNAME and TXT to add. Pro covers 1 domain, Max 5, a Team seat 20.

PATCH /v1/spaces/{space.id}/customDomain · spacesheep custom-domains update

Inputs, who can call it, refusals
CLI
spacesheep custom-domains update (--space <space name> | --space-id <space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
conflict (409), forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403), suspended (451), unavailable (503)
Old names, still answered
set_custom_domain
InputTakesWhat it is
spacespace nameThe space to put on the domain: its link or uuid. Only one you own. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
hostnametextThe domain: docs.acme.com. A scheme, a path or a trailing dot are dropped; an apex needs CNAME flattening. (at most 300 characters)
delete_custom_domain

Take a space off its custom domain: it stops serving there at once. Answers the DNS records you can delete.

DELETE /v1/spaces/{space.id}/customDomain · spacesheep custom-domains delete

Inputs, who can call it, refusals
CLI
spacesheep custom-domains delete (--space <space name> | --space-id <space id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
remove_custom_domain
InputTakesWhat it is
spacespace nameThe space whose domain to remove: its link or uuid, or the domain itself (docs.acme.com). (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
set_publish_source

Let one of your pages publish a JSON file into your space with ss.publish, or stop it. One page per file.

POST /v1/spaces/{space.id}/publishSources:set · spacesheep publish-sources set

Inputs, who can call it, refusals
CLI
spacesheep publish-sources set <publish_source> (--space <space name> | --space-id <space id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), quota_exceeded (429), read_only_grant (403), wrong_kind (422)
InputTakesWhat it is
spacespace nameThe space the file goes into: its link, @handle/slug or uuid. Its owner only. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
publish_sourcepublish sourceThe file and the page that may publish it; no source stops it. (required)
publish_source.pathtextThe file, as the page's declaration names it: catalog.json. It ends in .json. (required; at most 200 characters)
publish_source.sourcetextThe space whose page may publish the file: its link, @handle/slug or uuid. Left out, the file stops being accepted. Answered as the space's uuid. (at most 500 characters)
request_space_transferOffer a personal space to another verified account for seven days; acceptance is required.
set_copy_permissionOwner only: allow or disallow future copies of your space.
open_room_keyPro and higher: let a room of phones answer a space's forms without signing in, from a QR code. Seats and an end time; renew makes a new code.
close_room_keyClose a space's room key: the QR code and every seat stop at once.
set_custom_domainPut a space on a domain you own (docs.acme.com): answers a CNAME and a TXT to add, then checks on its own and rings the bell when it's live. The domain shows a copy of the space; calling it again publishes the current version there. Pro covers 1, Max 5, a Team seat 20.
publish_to_domainCopy another open space into a folder of your domain, like acme.com/docs/: its “/” links are pointed into the folder, and calling it again publishes the current version. A path someone else holds is refused with the reason.
remove_from_domainTake a space off its folder on your domain. The space and the domain's other spaces stay.
remove_custom_domainTake a space off its custom domain. The space and its spacesheep address stay.
Archive a referral link (it still opens, counts nobody), or bring it back.
save_design_systemCreate a design system, or save a new version of one. Spaces built with an earlier version keep it.
request_signatures15 a month on a free account, unlimited on Pro, Max and team accounts: ask named people to sign a version of a space you own. Each gets an email and signs in the viewer with a typed name; a signature is always the person's own act.
signing_statusWho has signed a space and who is still to sign, each request's state, and the certificate link.

Stacks

list_stacks

Your stacks, shelf by shelf; one stack's spaces with their links; or which stacks one space is in.

GET /v1/me/stacks · spacesheep stacks list

Inputs, who can call it, refusals
CLI
spacesheep stacks list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
teamteam nameA team you're on: its stacks instead of yours.
team_idteam idteam by its id, instead of its name.
stackstack nameOne stack: its spaces, with their links.
stack_idstack idstack by its id, instead of its name.
spacespace nameOne space: the stacks it is in.
space_idspace idspace by its id, instead of its name.
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
create_stack

Make a stack and file spaces into it: as their home, or with also as an extra place they show. Up to 40 stacks.

POST /v1/me/stacks · spacesheep stacks create

Inputs, who can call it, refusals
CLI
spacesheep stacks create <title> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
teamteam nameA team you're on: a stack of the team's instead of yours.
team_idteam idteam by its id, instead of its name.
titlea titleIts title, short, in your words. The agent never changes it back. (required; at most 48 characters)
emojitextOne emoji. (at most 16 characters)
shelftextThe shelf it sits on; a new name makes a new shelf. Other when left out. (at most 40 characters)
abouttextOne line on what it's for, shown until the agent writes its own. (at most 200 characters)
spaceslist of space nameSpaces to file in it, up to 50: links, @handle/slugs or uuids.
spaces_idslist of space idspaces by their ids, instead of their names.
alsotrue or falseThe spaces show in it as well, keeping their homes.
update_stack

Change a stack's title or emoji, or move it to another shelf. Only what you give changes.

PATCH /v1/me/stacks/{stack.id} · spacesheep stacks update

Inputs, who can call it, refusals
CLI
spacesheep stacks update <stack> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503), unimplemented (501)
InputTakesWhat it is
stackstack nameThe stack to change. (one of stack / stack_id, required)
stack_idstack idstack by its id, instead of its name. (one of stack / stack_id, required)
titlea titleIts title, short, in your words. The agent never changes it back. (at most 48 characters)
emojitextOne emoji. (at most 16 characters)
shelftextThe shelf it sits on; a new name makes a new shelf. Other when left out. (at most 40 characters)
abouttextOne line on what it's for, shown until the agent writes its own. (at most 200 characters)
teamteam nameA team you're on, when it's the team's stack.
team_idteam idteam by its id, instead of its name.
delete_stack

Delete a stack. Its spaces stay; the agent files them into your other stacks.

DELETE /v1/me/stacks/{stack.id} · spacesheep stacks delete

Inputs, who can call it, refusals
CLI
spacesheep stacks delete <stack> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
stackstack nameThe stack: its title or id. (one of stack / stack_id, required)
stack_idstack idstack by its id, instead of its name. (one of stack / stack_id, required)
teamteam nameA team you're on, when it's the team's stack.
team_idteam idteam by its id, instead of its name.
create_stack_entry

File spaces in a stack: as their home or an extra place, take them out, or pin them where they are.

POST /v1/me/stackEntries · spacesheep stack-entries create

Inputs, who can call it, refusals
CLI
spacesheep stack-entries create (--spaces <list of space name> | --spaces-ids <list of space id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
file_in_stack
InputTakesWhat it is
teamteam nameA team you're on: its stacks instead of yours.
team_idteam idteam by its id, instead of its name.
spaceslist of space nameThe spaces, up to 50: links, @handle/slugs or uuids. (one of spaces / spaces_ids, required)
spaces_idslist of space idspaces by their ids, instead of their names. (one of spaces / spaces_ids, required)
stackstack nameThe stack. Needed for home and also; for remove, each space's home when left out.
stack_idstack idstack by its id, instead of its name.
howone of home, also, remove, pin, unpinWhat to do with each space: home when left out.
merge_stacks

Fold one stack into another: its spaces move (a home stays a home) and it is gone.

POST /v1/me/stacks:merge · spacesheep stacks merge

Inputs, who can call it, refusals
CLI
spacesheep stacks merge (--from <stack name> | --from-id <stack id>) (--into <stack name> | --into-id <stack id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
teamteam nameA team you're on, when they're the team's stacks.
team_idteam idteam by its id, instead of its name.
fromstack nameThe stack that goes away. (one of from / from_id, required)
from_idstack idfrom by its id, instead of its name. (one of from / from_id, required)
intostack nameThe stack that keeps everything. (one of into / into_id, required)
into_idstack idinto by its id, instead of its name. (one of into / into_id, required)
file_in_stackMove pages between stacks: make a stack their home, add them to a second one, take them out, or pin them so the agent never re-files them. Each move becomes a rule the agent files by.
share_stackShare one of your own stacks with people, a team or a share list (Can edit or Can view; a share list is view only): every space whose home is the stack opens for them. Take people off, or leave a stack someone shared with you. A team's stacks are the team's already.

Skills

search_skills

Skills you may install, best match first. Someone else's comes back withheld: its address and numbers only.

GET /v1/skills:search · spacesheep skills search

Inputs, who can call it, refusals
CLI
spacesheep skills search --query <text> [flags]
Who can call it
a person in the browser; your API keys, read-only ones too (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), rate_limited (429), unavailable (503)
InputTakesWhat it is
querytextWhat to look for, in words: "stripe revenue chart". Matched in the server. (required; at most 500 characters)
sourceone of official, community, private, team, importedOnly official, community or your own.
levelone of instructions, files, toolsOnly skills of this level.
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
within_grantstrue or falseOnly skills whose whole ceiling you've already granted.
get_skill

A skill's card, or with view full its words, files and versions: 40,000 code points a call. Others' are withheld.

GET /v1/skills/{skill.id} · spacesheep skills get

Inputs, who can call it, refusals
CLI
spacesheep skills get <skill> [flags]
Who can call it
a person in the browser; your API keys, read-only ones too (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404)
InputTakesWhat it is
skillskill nameThe skill: its address, @owner/slug. The slug is the open spec's name: single hyphens, not first or last. (one of skill / skill_id, required)
skill_idskill idskill by its id, instead of its name. (one of skill / skill_id, required)
viewone of card, fullHow much of a skill to read.
pathtextOne of its files to read instead of SKILL.md: files/brand.css.
versionintegerA version by number; the one your install pins, else the latest, when left out.
offsetintegerWhere to start: the last answer's next_offset (code points; bytes in a data file). (at least 0)
list_skills

The skills you made, the ones lent to your teams, and the official ones.

GET /v1/skills · spacesheep skills list

Inputs, who can call it, refusals
CLI
spacesheep skills list [flags]
Who can call it
a person in the browser; your API keys, read-only ones too (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
teamteam nameOnly those lent to this team: one you're on.
team_idteam idteam by its id, instead of its name.
create_skill

A new skill from a folder, always private to you. Its first version is published with it.

POST /v1/skills · spacesheep skills create

Inputs, who can call it, refusals
CLI
spacesheep skills create --files <list of skill files> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
bad_host (400), bad_path (400), conflict (409), content_blocked (403), failed_precondition (422), forbidden (403), invalid (400), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
fileslist of skill filesThe folder: SKILL.md at least. Its card comes from SKILL.md and spacesheep.yaml. (required)
files[].pathtextIts path in the folder, / only and relative: files/brand.css. No . or .. segment. (required)
files[].texttextIts words, for a UTF-8 type.
files[].databytesIts bytes, for any other type.
slugtextIts address after @you/, equal to SKILL.md's name: that name when left out. (at most 64 characters)
labeltextWhat this version is, in a few words. (at most 80 characters)
clientclientWhat made it: your harness, session and machine.
client.nametextYour harness, lowercase: claude-code, codex, opencode, grok, gemini-cli, cursor, chatgpt.
client.versiontextYour harness's version.
client.modeltextThe model id you run as, if you know it.
client.session_idtextYour harness's session id, only one you actually read.
client.machinetextThe machine's hostname.
client.urltextA link that opens this session, if your harness gives one.
client.account_idtextThe harness account's id, never an email.
client.org_idtextThat account's org or workspace id.
client.repotextThe working directory's git remote.
client.branchtextIts branch.
client.committextIts short HEAD sha.
client.extraJSON objectOther small facts that identify the session (entrypoint, OS); never secrets.
client.transporttextSet by the server from the door the call came through; ignored if sent: mcp, api or cli.
client.user_agenttextSet by the server: the request's User-Agent, cut to 200 characters; ignored if sent.
client.othertextSet by the server, ignored if sent: what else saved it, in today's via words (edit, viewer, agent...).
update_skill

Who can find it: visibility, listing and team. Listing it always sends it for review.

PATCH /v1/skills/{skill.id} · spacesheep skills update

Inputs, who can call it, refusals
CLI
spacesheep skills update <skill> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
skillskill nameThe skill to change. (one of skill / skill_id, required)
skill_idskill idskill by its id, instead of its name. (one of skill / skill_id, required)
visibilityone of private, members, signed_in, publicWho may install it: you, its team, signed in, or anyone.
listedtrue or falseAsk for the community listing: in search once its review says LISTED.
teamteam nameThe team it's lent to, when it is.
team_idteam idteam by its id, instead of its name.
create_skill_version

A new version from a folder. An install moves to it by itself when it adds nothing to the pinned one's ceiling.

POST /v1/skills/{skill.id}/versions · spacesheep skill-versions create

Inputs, who can call it, refusals
CLI
spacesheep skill-versions create (--skill <skill name> | --skill-id <skill id>) --files <list of skill files> --parent <integer> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
bad_host (400), bad_path (400), conflict (409), content_blocked (403), failed_precondition (422), forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
skillskill nameThe skill: its address, @owner/slug. The slug is the open spec's name: single hyphens, not first or last. (one of skill / skill_id, required)
skill_idskill idskill by its id, instead of its name. (one of skill / skill_id, required)
fileslist of skill filesThe whole folder of the new version. (required)
files[].pathtextIts path in the folder, / only and relative: files/brand.css. No . or .. segment. (required)
files[].texttextIts words, for a UTF-8 type.
files[].databytesIts bytes, for any other type.
labeltextWhat changed, in a few words. (at most 80 characters)
parentintegerThe version you built on (CreateSkill made 1). A newer one since is a conflict, never overwritten. (required; at least 1)
clientclientWhat published it: your harness, session and machine.
client.nametextYour harness, lowercase: claude-code, codex, opencode, grok, gemini-cli, cursor, chatgpt.
client.versiontextYour harness's version.
client.modeltextThe model id you run as, if you know it.
client.session_idtextYour harness's session id, only one you actually read.
client.machinetextThe machine's hostname.
client.urltextA link that opens this session, if your harness gives one.
client.account_idtextThe harness account's id, never an email.
client.org_idtextThat account's org or workspace id.
client.repotextThe working directory's git remote.
client.branchtextIts branch.
client.committextIts short HEAD sha.
client.extraJSON objectOther small facts that identify the session (entrypoint, OS); never secrets.
client.transporttextSet by the server from the door the call came through; ignored if sent: mcp, api or cli.
client.user_agenttextSet by the server: the request's User-Agent, cut to 200 characters; ignored if sent.
client.othertextSet by the server, ignored if sent: what else saved it, in today's via words (edit, viewer, agent...).
delete_skill

Deletes it: each install stops by its next step, within 30 seconds, and its installer is told.

DELETE /v1/skills/{skill.id} · spacesheep skills delete

Inputs, who can call it, refusals
CLI
spacesheep skills delete <skill>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
skillskill nameThe skill: its address, @owner/slug. The slug is the open spec's name: single hyphens, not first or last. (one of skill / skill_id, required)
skill_idskill idskill by its id, instead of its name. (one of skill / skill_id, required)
register_skill

A skill from your GitHub repo, owner/name: its newest release, awaiting your approval. Answers a link first.

POST /v1/skills:register · spacesheep skills register

Inputs, who can call it, refusals
CLI
spacesheep skills register --repo <text> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
repotextThe repo on GitHub, owner/name. (required; at most 140 characters)
checktrue or falseOnly check: read the repo and its newest release and run every rule, writing nothing. Answers ready or why not.
list_skill_repos

Your GitHub repos you can publish a skill from, each with whether its newest release looks like one, and a link.

GET /v1/me/skill-repos · spacesheep skill-repos list

Inputs, who can call it, refusals
CLI
spacesheep skill-repos list
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)

It takes no inputs.

list_installs

The skills on your agent and your teams', with what each was granted and any open consents. Others' withheld.

GET /v1/me/installs · spacesheep installs list

Inputs, who can call it, refusals
CLI
spacesheep installs list [flags]
Who can call it
a person in the browser; your API keys, read-only ones too (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
teamteam nameOnly this team's: one you're on.
team_idteam idteam by its id, instead of its name.
update_install

How it reaches a turn (routed, always, off), or which version it runs: never a lower one but by your browser.

PATCH /v1/me/installs/{install.id} · spacesheep installs update

Inputs, who can call it, refusals
CLI
spacesheep installs update <install> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
failed_precondition (422), forbidden (403), invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
installskill install idAn install: its id, or the skill it installs (and the team, for a team's install). (required)
modeone of routed, always, offRouted, always or off; unchanged when left out.
versionintegerThis version by number. (at least 1)
latesttrue or falseLatest: moves by itself when it adds nothing to the pinned version's ceiling. Only true.
delete_install

Takes it off: its grant ends by its next step, within 30 seconds. A pending one's open consents are cancelled.

DELETE /v1/me/installs/{install.id} · spacesheep installs delete

Inputs, who can call it, refusals
CLI
spacesheep installs delete <install>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
installskill install idAn install: its id, or the skill it installs (and the team, for a team's install). (required)

Teams and organizations

list_teams

The teams you're in: each one's people and roles, plan and seats, auto-join domains and Slack workspaces.

GET /v1/teams · spacesheep teams list

Inputs, who can call it, refusals
CLI
spacesheep teams list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403)
Old names, still answered
set_team_domains
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
update_team

Rename a team or set who joins it by email domain (team admins only), or make it your default.

PATCH /v1/teams/{team.id} · spacesheep teams update

Inputs, who can call it, refusals
CLI
spacesheep teams update <team> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
Old names, still answered
set_team_domains, manage_team
InputTakesWhat it is
teamteam nameThe team to change. (one of team / team_id, required)
team_idteam idteam by its id, instead of its name. (one of team / team_id, required)
titlea titleIts title, as people see it: 1–60 characters. (at most 60 characters)
your_defaulttrue or falseYour default team: the one your share dialog offers first. true makes it so.
domainslist of textEmail domains whose people join on their own when they sign in (acme.com). Empty clears it. Team plans only.
design_systemtextIts default design system: a new space placed in the team is built in it when none is picked. A system lent to the team, by name or id; empty clears it. Team admins only. (at most 80 characters)
create_team_member

Invite someone to a team by email or @handle and email them the link. They join when they open it.

POST /v1/teams/{team.id}/members · spacesheep team-members create

Inputs, who can call it, refusals
CLI
spacesheep team-members create (--team <team name> | --team-id <team id>) (--member <person name> | --member-id <person id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403)
Old names, still answered
invite_to_org, manage_team
InputTakesWhat it is
teamteam nameThe team: its title, slug or id. (one of team / team_id, required)
team_idteam idteam by its id, instead of its name. (one of team / team_id, required)
memberperson nameWho to invite: their @handle, or their email in member_id. Someone with no account signs up first. (one of member / member_id, required)
member_idperson idmember by its id, instead of its name. (one of member / member_id, required)
update_team_member

Make someone on a team a Team admin, or a member again. Team admins only.

PATCH /v1/teams/{team.id}/members/{member.id} · spacesheep team-members update

Inputs, who can call it, refusals
CLI
spacesheep team-members update <member> (--team <team name> | --team-id <team id>) [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
Old names, still answered
manage_team
InputTakesWhat it is
memberteam member nameThe team member to change. (one of member / member_id, required)
member_idteam member idmember by its id, instead of its name. (one of member / member_id, required)
teamteam nameThe team: its title, slug or id. (one of team / team_id, required)
team_idteam idteam by its id, instead of its name. (one of team / team_id, required)
roleone of owner, memberTheir role: an owner is a Team admin. A team always keeps one.
delete_team_member

Take someone off a team, or leave it yourself. Team admins only, to take someone else off.

DELETE /v1/teams/{team.id}/members/{member.id} · spacesheep team-members delete

Inputs, who can call it, refusals
CLI
spacesheep team-members delete <member> (--team <team name> | --team-id <team id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
Old names, still answered
manage_team
InputTakesWhat it is
teamteam nameThe team: its title, slug or id. (one of team / team_id, required)
team_idteam idteam by its id, instead of its name. (one of team / team_id, required)
memberperson nameWho to take off: their @handle, or their email in member_id. Your own to leave the team. (one of member / member_id, required)
member_idperson idmember by its id, instead of its name. (one of member / member_id, required)
create_team

Start a team you own. With a slug, an organization at its own address (invite-only for now).

POST /v1/teams · spacesheep teams create

Inputs, who can call it, refusals
CLI
spacesheep teams create <title> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
Old names, still answered
create_org, manage_team
InputTakesWhat it is
titlea titleIts title, as people see it: 1–60 characters. (required; at most 60 characters)
your_defaulttrue or falseYour default team: the one your share dialog offers first. true makes it so.
domainslist of textEmail domains whose people join on their own when they sign in (acme.com). Empty clears it. Team plans only.
design_systemtextIts default design system: a new space placed in the team is built in it when none is picked. A system lent to the team, by name or id; empty clears it. Team admins only. (at most 80 characters)
slugtextAn organization's address, <slug>.spacesheep.dev (invite-only for now). A Team on spacesheep.dev when left out.

Secrets and shared keys

list_secrets

Your secrets' names, where they may be sent and when they changed: yours, a team's or a config group's.

GET /v1/me/secrets · spacesheep secrets list

Inputs, who can call it, refusals
CLI
spacesheep secrets list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
teamteam nameA team's secrets (members may list them). Yours when neither this nor config_group is given.
team_idteam idteam by its id, instead of its name.
config_groupconfig group nameA config group's secrets (its owner and members may list them).
config_group_idconfig group idconfig_group by its id, instead of its name.
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
update_secret

Set a secret for your worker spaces, a team or a config group, replacing its value if it has one.

PATCH /v1/me/secrets/{secret.id} · spacesheep secrets update

Inputs, who can call it, refusals
CLI
spacesheep secrets update <secret> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403)
Old names, still answered
set_secret
InputTakesWhat it is
secretsecret idThe secret to change. (required)
valuetextIts value. Written, never read back: no answer carries it.
allowed_urlslist of textThe URL prefixes a worker's fetch() may send it to. Anywhere when empty.
teamteam nameA team's secret, for every space and agent on the team. Team owners only. Yours when left out.
team_idteam idteam by its id, instead of its name.
config_groupconfig group nameA config group's secret, for its members' agents and integrations, never worker code. Its owner only.
config_group_idconfig group idconfig_group by its id, instead of its name.
delete_secret

Delete a secret: yours, a team's (owners only) or a config group's (its owner only).

DELETE /v1/me/secrets/{secret.id} · spacesheep secrets delete

Inputs, who can call it, refusals
CLI
spacesheep secrets delete <secret> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
secretsecret idThe secret's name. (required)
teamteam nameA team's secret. Team owners only.
team_idteam idteam by its id, instead of its name.
config_groupconfig group nameA config group's secret. Its owner only.
config_group_idconfig group idconfig_group by its id, instead of its name.
list_config_groups

The config groups you own, belong to or are offered, with members and key names. Never key values.

GET /v1/me/configGroups · spacesheep config-groups list

Inputs, who can call it, refusals
CLI
spacesheep config-groups list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
create_config_group

Make a config group: a bundle of secrets you can offer to other people.

POST /v1/me/configGroups · spacesheep config-groups create

Inputs, who can call it, refusals
CLI
spacesheep config-groups create <title> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
titlea titleWhat people see it called. (required; at most 60 characters)
startertrue or falseOffer it to everyone you invite (space shares, Flock and team invites). One group at most. Owner only.
invitelist of person nameOffer it to these people, by email or @handle; its keys apply to each once they accept. Owner only.
invite_idslist of person idinvite by their ids, instead of their names.
copy_secretslist of textCopy these secrets of yours into it by name. The values never leave Spacesheep. Owner only.
unused_secretslist of textIts keys you don't use, as a member or its owner: the whole list. Empty uses them all.
acceptedtrue or falseYour answer to an offer of it: true joins, false declines.
update_config_group

Change a config group: rename it, offer it, copy keys in, pick its keys you use, or answer an offer.

PATCH /v1/me/configGroups/{config_group.id} · spacesheep config-groups update

Inputs, who can call it, refusals
CLI
spacesheep config-groups update <config_group> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
config_groupconfig group nameThe config group to change. (one of config_group / config_group_id, required)
config_group_idconfig group idconfig_group by its id, instead of its name. (one of config_group / config_group_id, required)
titlea titleWhat people see it called. (at most 60 characters)
startertrue or falseOffer it to everyone you invite (space shares, Flock and team invites). One group at most. Owner only.
invitelist of person nameOffer it to these people, by email or @handle; its keys apply to each once they accept. Owner only.
invite_idslist of person idinvite by their ids, instead of their names.
copy_secretslist of textCopy these secrets of yours into it by name. The values never leave Spacesheep. Owner only.
unused_secretslist of textIts keys you don't use, as a member or its owner: the whole list. Empty uses them all.
acceptedtrue or falseYour answer to an offer of it: true joins, false declines.
delete_config_group_member

Take someone off a config group you own, or take yourself off one: its keys stop applying.

DELETE /v1/me/configGroups/{config_group.id}/members/{member.id} · spacesheep config-group-members delete

Inputs, who can call it, refusals
CLI
spacesheep config-group-members delete <member> (--config-group <config group name> | --config-group-id <config group id>)
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
Old names, still answered
remove_config_group_member
InputTakesWhat it is
config_groupconfig group nameThe config group. (one of config_group / config_group_id, required)
config_group_idconfig group idconfig_group by its id, instead of its name. (one of config_group / config_group_id, required)
memberperson nameWho comes off it: their email or @handle. Yours to leave it or turn down an offer. (one of member / member_id, required)
member_idperson idmember by its id, instead of its name. (one of member / member_id, required)
delete_config_group

Delete a config group you own, with its secrets and members.

DELETE /v1/me/configGroups/{config_group.id} · spacesheep config-groups delete

Inputs, who can call it, refusals
CLI
spacesheep config-groups delete <config_group>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
config_groupconfig group nameThe config group: one you own. (one of config_group / config_group_id, required)
config_group_idconfig group idconfig_group by its id, instead of its name. (one of config_group / config_group_id, required)
set_secretSave a personal, organization or config-group secret; allowed_urls limits where it may be sent. A worker space reads it with env.secrets.get(name).
remove_config_group_memberTake someone off a config group you own, or leave one.

Your account

get_account

Your account: name, @handle, picture, plan and settings.

GET /v1/me · spacesheep me get

Inputs, who can call it, refusals
CLI
spacesheep me get
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)

It takes no inputs.

update_account

Change your name, @handle, picture, sounds, language or who can open your new spaces.

PATCH /v1/me · spacesheep me update

Inputs, who can call it, refusals
CLI
spacesheep me update [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
handletextYour @handle (the @ is optional): your spaces' addresses start with it.
first_nametextYour first name, as people see it; empty shows the name from sign-in. (at most 80 characters)
new_page_accesstextWho can open a new space of yours until you say otherwise.
last_nametextYour last name; empty clears it. (at most 80 characters)
photo_keytextOne of your photos, by its key, as your picture; empty removes it.
photo_urltextAn https link to a picture to fetch as your picture (2 MB at most once shrunk).
sounds_mutedtrue or falseSounds start muted until you turn them on.
sounds_offlist of textThe kinds of sound kept silent while sounds are on: the whole list.
languagetextThe language Spacesheep speaks to you in: en, es, fr, de, pt and more. (at most 8 characters)
format_sortingtrue or falseWhether Spacesheep counts what kinds of spaces you make.
list_api_keys

Your API keys: label, scope, prefix and last use. Never their secrets.

GET /v1/me/apiKeys · spacesheep api-keys list

Inputs, who can call it, refusals
CLI
spacesheep api-keys list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
create_api_key

Make a key. Its secret is in this answer only. Not for a connected app: a connector can't mint a long-lived key.

POST /v1/me/apiKeys · spacesheep api-keys create

Inputs, who can call it, refusals
CLI
spacesheep api-keys create [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts)
Refusals
forbidden (403), invalid (400), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
labeltextWhat it's for: the machine or the job. (at most 80 characters)
scopeone of full, read, streams, sessionsWhat a key opens.
revoke_api_key

Revoke a key: anything using it stops on its next call.

POST /v1/me/apiKeys/{api_key.id}:revoke · spacesheep api-keys revoke

Inputs, who can call it, refusals
CLI
spacesheep api-keys revoke <api_key>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
api_keyapi key idOne of your API keys: its id. (required)
get_agent_model

The AI model your agent runs on, whose key pays for it, its role models, and the providers you can use.

GET /v1/me/agentModel · spacesheep agent-model get

Inputs, who can call it, refusals
CLI
spacesheep agent-model get
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)

It takes no inputs.

update_agent_model

Switch your agent to another provider or model you have a key for, from its next turn.

PATCH /v1/me/agentModel · spacesheep agent-model update

Inputs, who can call it, refusals
CLI
spacesheep agent-model update [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
set_agent_model
InputTakesWhat it is
providerone of claude, chatgpt, gemini, grok, kimi, deepseek, nemotron, baseten, openrouterWhich provider: one that a key of yours, your config group's or your team's works with.
modeltextA model id of that provider (claude-opus-5-5). The provider's default when empty. (at most 80 characters)
fast_modeltextThe fast role's model (chat replies, planning). Empty: the main model does it. (at most 80 characters)
premium_modeltextThe premium role's model (builds judged worth it). Empty: the main model does it. (at most 80 characters)
redeem_code

Redeem a plan code for your account or a team you own, or claim the YC deal with a YC verification link.

POST /v1/me/codes:redeem · spacesheep codes redeem

Inputs, who can call it, refusals
CLI
spacesheep codes redeem <code> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
codetextThe code as you were given it (spaces, dashes and case don't matter), or a YC verification link. (required; at most 300 characters)
teamteam nameA Team code's team (one you own), or the YC deal's. Left out: your account, or a new team for YC.
team_idteam idteam by its id, instead of its name.
create_feedback

Send feedback, a bug report or an idea to the Spacesheep team as you, with an optional file of details.

POST /v1/me/feedback · spacesheep feedback create

Inputs, who can call it, refusals
CLI
spacesheep feedback create <message> --client-id <text> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
submit_feedback
InputTakesWhat it is
messageMarkdownWhat happened, short and in your words. No secrets. (required; at most 20,000 characters)
categorytextA word for its kind: bug, idea, praise. (at most 80 characters)
tagslist of textUp to 10 labels.
metadataJSON objectUp to 20 facts to keep with it (version, os): text, numbers, true or false.
client_idtextYours for this one; send it again on a retry, so it isn't filed twice. (required; at most 80 characters)
attachmentfeedback attachmentWhat the team should see verbatim, kept as a file beside the message.
attachment.texttextThe text, secrets taken out. (required; at most 100,000 characters)
attachment.filenametextIts file's name: .txt, .md or .log. context.txt when left out. (at most 120 characters)
get_backup

Your daily Drive backups: whether Drive is connected, on or off, the hour, and how the last one went.

GET /v1/me/backup · spacesheep backup get

Inputs, who can call it, refusals
CLI
spacesheep backup get
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
Old names, still answered
backup_status

It takes no inputs.

update_backup

Turn daily Drive backups on or off, change their hour, or queue one now.

PATCH /v1/me/backup · spacesheep backup update

Inputs, who can call it, refusals
CLI
spacesheep backup update [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
set_backups
InputTakesWhat it is
enabledtrue or falseBackups run every day.
hour_utcintegerThe hour they run, UTC. (0 to 23)
run_nowtrue or falseQueue one backup for the next half-hour tick. Reads true while one waits.
disconnect_backup

Forget your Google Drive connection and backup schedule. Backups stop until you connect Drive again.

POST /v1/me/backup:disconnect · spacesheep backup disconnect

Inputs, who can call it, refusals
CLI
spacesheep backup disconnect
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
disconnect_backups

It takes no inputs.

list_channels

The Telegram users, Slack workspaces and WhatsApp numbers linked to your account.

GET /v1/me/channels · spacesheep channels list

Inputs, who can call it, refusals
CLI
spacesheep channels list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
Old names, still answered
channel_status
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)

Start linking a chat app: a Telegram code for the bot, a WhatsApp link, or where Slack is connected.

POST /v1/me/channels/{channel}:link · spacesheep channels link

Inputs, who can call it, refusals
CLI
spacesheep channels link <channel>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
channelone of telegram, slack, whatsappWhich chat app to link. (required)

Unlink a Telegram user, Slack workspace or WhatsApp number, and revoke the key behind it.

POST /v1/me/channels/{channel.id}:unlink · spacesheep channels unlink

Inputs, who can call it, refusals
CLI
spacesheep channels unlink <channel>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
channelchannel idtelegram, slack or whatsapp, then :which one when more than one is linked (telegram:123456789). (required)
list_integrations

Your integrations (Google Calendar, Zoom, Linear, Stripe, Drive), and a link to connect each.

GET /v1/me/integrations · spacesheep integrations list

Inputs, who can call it, refusals
CLI
spacesheep integrations list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
disconnect_integration

Disconnect an integration: its token is deleted here and revoked at the provider.

POST /v1/me/integrations/{integration.id}:disconnect · spacesheep integrations disconnect

Inputs, who can call it, refusals
CLI
spacesheep integrations disconnect <integration>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
integrationintegration idgoogle, zoom, linear or stripe; google:<its id or email> when more than one Google Calendar is connected. (required)
list_mcp_servers

The remote MCP servers your agent can use: yours and your teams'.

GET /v1/me/mcpServers · spacesheep mcp-servers list

Inputs, who can call it, refusals
CLI
spacesheep mcp-servers list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
create_mcp_server

Check an MCP server's address and get the link that connects it. Nothing connects until someone approves.

POST /v1/me/mcpServers · spacesheep mcp-servers create

Inputs, who can call it, refusals
CLI
spacesheep mcp-servers create --url <text> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
add_mcp_server
InputTakesWhat it is
urltextIts MCP address, as you were given it: https, usually ending in /mcp. (required; at most 2,000 characters)
titletextWhat to call it. The server's own name when left out. (at most 40 characters)
teamteam nameThe team it's for, so everyone on it gets it. Team admins only. Yours when left out.
team_idteam idteam by its id, instead of its name.
actionstrue or falseThe agent may use its tools that act (send, create, change). false keeps it to read-only tools.
delete_mcp_server

Disconnect a remote MCP server from your agent, or from a team's (team admins only).

DELETE /v1/me/mcpServers/{mcp_server.id} · spacesheep mcp-servers delete

Inputs, who can call it, refusals
CLI
spacesheep mcp-servers delete <mcp_server> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
remove_mcp_server
InputTakesWhat it is
mcp_servermcp server nameThe server: its title, id (mcp:<slug>) or address. (one of mcp_server / mcp_server_id, required)
mcp_server_idmcp server idmcp_server by its id, instead of its name. (one of mcp_server / mcp_server_id, required)
teamteam nameThe team it's connected for. Team admins only. Yours when left out.
team_idteam idteam by its id, instead of its name.
query_integration

Read through one of your agent's integrations: a REST call, or a read-only tool of an MCP server you connected.

POST /v1/me/integrations/{integration}:query · spacesheep integrations query

Inputs, who can call it, refusals
CLI
spacesheep integrations query <integration> --path <text> [flags]
Who can call it
your API keys (the CLI, scripts)
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
integrationtextWhich integration: stripe, linear, mcp:<slug>. (required)
pathtextThe REST path, or the MCP tool's name. (required)
bodyJSON objectIts arguments.
methodtextThe HTTP method for a REST integration: GET when left out. Only a call that reads is sent.
urltextA full link, for the custom integration only (inside its allow-list).
accounttextWhich connected account, when there's more than one (an id or an email).
message_agent

Message your own Spacesheep agent and wait for its reply. A full run on your allowance; Max only.

POST /v1/me/agent:message · spacesheep agent message

Inputs, who can call it, refusals
CLI
spacesheep agent message --message <text> [flags]
Who can call it
your API keys (the CLI, scripts)
Refusals
forbidden (403), invalid (400), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
messagetextWhat to say to your agent, in plain words, as you'd type it in your Messages thread. (required; at most 4,000 characters)
waitintegerSeconds to wait for the reply before answering; 40 when left out. A later reply is read by its run id. (0 to 50)
get_agent_reply

Your agent's reply to a message, by its run id: still working, answered, failed or stopped.

GET /v1/me/agent/replies/{agent_reply.id} · spacesheep agent-replies get

Inputs, who can call it, refusals
CLI
spacesheep agent-replies get <agent_reply> [flags]
Who can call it
your API keys (the CLI, scripts)
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
agent_replyagent reply idThe run id your message got. (required)
waitintegerSeconds to wait for it if it isn't in yet; 0 when left out. (0 to 50)
backup_statusDaily backups of your spaces to Google Drive (Pro): connected, on or off, the hour, the last result.
set_backupsTurn backups on or off, pick the hour, or run one now.
disconnect_backupsForget the Drive connection and the schedule.
channel_statusYour Telegram, Slack and WhatsApp links: what's linked.
add_mcp_serverCheck a server's address and answer the link that connects it.
remove_mcp_serverDisconnect one.
set_agent_modelSwitch your agent to another provider you have a key for (claude, gemini, chatgpt, grok…).
submit_feedbackReport a bug or send feedback to the spacesheep team as you, with a file of evidence if it helps. It lands in your thread at /feedback, where the team answers.

Memory and history

create_memory

Save one durable fact about you, where your other assistants can read it later.

POST /v1/me/memories · spacesheep memories create

Inputs, who can call it, refusals
CLI
spacesheep memories create <content> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
remember
InputTakesWhat it is
contentMarkdownThe fact itself, self-contained: absolute dates and full names. Markdown is fine. (required; at most 4,000 characters)
kindone of prefs, people, projects, notesWhich shelf it goes on; notes when left out.
summarytextOne line for the index; the content's first line when left out. (at most 200 characters)
recall_memories

Search your saved facts and published spaces by meaning and keyword; no query lists every fact.

GET /v1/me/memories:recall · spacesheep memories recall

Inputs, who can call it, refusals
CLI
spacesheep memories recall [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
Old names, still answered
recall_memory
InputTakesWhat it is
querytextWhat to look for, in your own terms. Leave out to list every saved fact. (at most 500 characters)
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
delete_memory

Delete one saved fact for good, by its path. It can't be undone.

DELETE /v1/me/memories/{memory.id} · spacesheep memories delete

Inputs, who can call it, refusals
CLI
spacesheep memories delete <memory>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
forget_memory
InputTakesWhat it is
memorymemory idThe fact's path exactly as the index shows it, e.g. prefs/coffee. (required)
recall_history

Search your conversations with your assistants, and daily and monthly digests, oldest first.

GET /v1/me/history:recall · spacesheep history recall

Inputs, who can call it, refusals
CLI
spacesheep history recall [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
querytextWords to look for in the range. Leave out to read the range straight through. (at most 500 characters)
fromtextStart of the range: YYYY, YYYY-MM or YYYY-MM-DD on your calendar. No lower bound when left out.
totextEnd of the range, inclusive, in the same forms. The same as from for one day.
limitintegerHow many entries at most; 20 when left out. (0 to 60)
list_photos

The photos you sent your agent, newest first: what each shows and where it was taken.

GET /v1/me/photos · spacesheep photos list

Inputs, who can call it, refusals
CLI
spacesheep photos list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
Old names, still answered
my_photos
InputTakesWhat it is
fromtextStart of the range: YYYY, YYYY-MM or YYYY-MM-DD on your calendar. No lower bound when left out.
totextEnd of the range, inclusive, in the same forms. The same as from for one day.
querytextWords to match in the caption and the description, e.g. ramen. (at most 500 characters)
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
get_photo

One of your photos: the picture itself and a link that works for 30 minutes.

GET /v1/me/photos/{photo.id} · spacesheep photos get

Inputs, who can call it, refusals
CLI
spacesheep photos get <photo>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), not_found (404), read_only_grant (403)
InputTakesWhat it is
photophoto idThe photo's id, from the list of photos. (required)
list_agent_runs

What your agent is doing now and did lately: each run's state, where its time went, why it failed.

GET /v1/me/agentRuns · spacesheep agent-runs list

Inputs, who can call it, refusals
CLI
spacesheep agent-runs list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
Old names, still answered
agent_status
InputTakesWhat it is
hoursintegerHow far back to look, in hours; 3 when left out. (0 to 168)
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
get_agent_run

One of your agent's runs, however old, with every event it logged.

GET /v1/me/agentRuns/{agent_run.id} · spacesheep agent-runs get

Inputs, who can call it, refusals
CLI
spacesheep agent-runs get <agent_run>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), not_found (404), read_only_grant (403), unavailable (503)
Old names, still answered
agent_status
InputTakesWhat it is
agent_runagent run idThe run's id, from the list of runs. A leading # is fine. (required)
list_streams

Your streams and their latest values.

GET /v1/me/streams · spacesheep streams list

Inputs, who can call it, refusals
CLI
spacesheep streams list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
Old names, still answered
streams
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
prefixtextOnly streams under this name (lab-work/); a whole name gives that one stream.
pointsintegerHow many recent points of each stream; its latest value when left out. (0 to 300)
healthtrue or falseWhy a space isn't streaming: each stream's last hour, refused pushes and the tabs watching.
spacesheep streams push

Push a stream's next value. The first push creates it. A machine's job, with a streams-only key.

POST /v1/me/streams/{stream}:push · spacesheep streams push

Inputs, who can call it, refusals
CLI
spacesheep streams push <stream> --value <JSON value>
Who can call it
a machine's narrow token
Refusals
forbidden (403), invalid (400), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
streamtextThe stream: lab/gpu-1, up to 8 segments. (required)
valueJSON valueThe value: a number, text, or any JSON. (required)
rememberSave one lasting fact about you — a preference, a person, a project — that every assistant you use can read back.
recall_memorySearch what spacesheep knows about you: the facts your assistants saved and the spaces you published, in one answer.
forget_memoryDelete one saved fact for good.
my_photosThe photos you've sent your agent, with what each one shows and where it was taken.
agent_statusWhat your spacesheep agent is doing now and did lately: each run, where its time went, and why one failed.
streamsYour live streams: data a remote server sends with spacesheep stream and spaces draw as it arrives — each one's rate, watchers and latest value, or one stream's recent points. With health, why a page isn't streaming: the same reading as /me/streams. A camera's stream shows whether it is live and how many watch.

Email yourself

watch_space

Email you when others write to a space's records, at most hourly. Watching again returns the same watch.

POST /v1/spaces/{space.id}:watch · spacesheep spaces watch

Inputs, who can call it, refusals
CLI
spacesheep spaces watch <space> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
spacespace nameThe space to watch: one you own or can edit. (one of space / space_id, required)
space_idspace idspace by its id, instead of its name. (one of space / space_id, required)
collectiontextOnly this records collection, e.g. rsvps. Every collection the space writes when left out. (at most 64 characters)
notetextWhat it's for, in a few words the email repeats. (at most 400 characters)
list_watches

Your watches: each one's space, collection, last email and writes waiting.

GET /v1/me/watches · spacesheep watches list

Inputs, who can call it, refusals
CLI
spacesheep watches list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
delete_watch

Delete a watch: its emails stop at once. The space and its records don't change.

DELETE /v1/me/watches/{watch.id} · spacesheep watches delete

Inputs, who can call it, refusals
CLI
spacesheep watches delete <watch>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
stop_watch
InputTakesWhat it is
watchwatch idThe watch's id. (required)
send_notification

Email yourself a short note and ring your bell. It only ever goes to your own address.

POST /v1/me/notifications:send · spacesheep notifications send

Inputs, who can call it, refusals
CLI
spacesheep notifications send --subject <text> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
notify_me
InputTakesWhat it is
subjecttextThe subject, one line: the news, e.g. Your party space is live. (required; at most 200 characters)
messagetextThe note, plain text. Links that leave Spacesheep are removed. (at most 4,000 characters)
spacespace nameA space it's about, that you can open: the email links it.
space_idspace idspace by its id, instead of its name.
notify_meEmail yourself a short note from your agent, and put it on your bell: “the report is done”. Only ever to your own address, at most 10 a day, and every email can turn them all off.
stop_watchStop one watch; its emails end at once.

Coding sessions

list_sessions

Your sessions, newest first: what each is doing and on which computer.

GET /v1/me/sessions · spacesheep sessions list

Inputs, who can call it, refusals
CLI
spacesheep sessions list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
sourcetextOnly this harness's: claude-code, codex.
stateone of working, needs_you, idle, doneOnly sessions in this state.
machinetextOnly this computer's.
sincetimeOnly sessions active since then.
get_session

One of your coding sessions: its state changes, tool calls, kept turns, spaces it published and its share.

GET /v1/me/sessions/{session.id} · spacesheep sessions get

Inputs, who can call it, refusals
CLI
spacesheep sessions get <session> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
sessionsession idYour session: its id, bare or as source:id, from the list of sessions. (required)
limitintegerHow many recent entries of each kind; 20 when left out. (0 to 100)
share_session

Share a coding session read-only at its own link, with a space's access choices. Never its machine or folders.

POST /v1/me/sessions/{session.id}:share · spacesheep sessions share

Inputs, who can call it, refusals
CLI
spacesheep sessions share <session> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
sessionsession idYour session: its id, bare or as source:id, from the list of sessions. (required)
accessone of link, signed_in, team, inviteWho can open the link; invite for a new share.
teamteam nameWith access team: which team. Your default team when left out.
team_idteam idteam by its id, instead of its name.
addlist of person namePeople to add, by email or @handle. Each gets a bell and an email with the link.
add_idslist of person idadd by their ids, instead of their names.
removelist of person namePeople to take off the list.
remove_idslist of person idremove by their ids, instead of their names.
stoptrue or falseStop sharing: the link stops opening, and sharing again makes a new one.
export_sessions

Every one of your coding sessions, complete, as one zip: a secret download link for an hour.

GET /v1/me/sessions:export · spacesheep sessions export

Inputs, who can call it, refusals
CLI
spacesheep sessions export [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
sincetimeOnly sessions active since then, for an incremental backup. Every session when left out.
list_session_files

A Claude Code session's own files: the command that uploads them, then links to download and restore them.

GET /v1/me/sessions/{session.id}/files · spacesheep session-files list

Inputs, who can call it, refusals
CLI
spacesheep session-files list --session <session id> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
Old names, still answered
get_session_files
InputTakesWhat it is
sessionsession idYour session: its id, bare or as source:id, from the list of sessions. (required)
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
create_talk_listener

Let you message this session from Spacesheep: a secret listen link for 24 hours, and commands to wait on it.

POST /v1/me/talkListeners · spacesheep talk-listeners create

Inputs, who can call it, refusals
CLI
spacesheep talk-listeners create --session <session id>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), read_only_grant (403), unavailable (503)
Old names, still answered
talk_listen
InputTakesWhat it is
sessionsession idYour session: its id, bare or as source:id, e.g. $CLAUDE_CODE_SESSION_ID. Never a guess. (required)
create_talk_message

Answer in your Talk window. An answer to a comment on a space is posted under that comment too.

POST /v1/me/talkMessages · spacesheep talk-messages create

Inputs, who can call it, refusals
CLI
spacesheep talk-messages create (--text <text> | --blocks <list of chat blocks>) --session <session id> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents; cloud boxes
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
Old names, still answered
talk_reply
InputTakesWhat it is
sessionsession idYour session: the one your listener was made for, its id bare or as source:id. (required)
texttextYour answer, plain text: what you did, or the one question you need answered. Leave it out when you send blocks. (one of text / blocks, required; at most 4,000 characters)
reply_to64-bit whole numberThe message it answers (its listen line's id). The newest message to the session when left out. (at least 0)
blockslist of chat blocksOr your answer as a list of blocks, in order: words are a text block. At most 1,000,000 bytes as JSON, as stored (checked in code: no field rule measures it). (one of text / blocks, required)
blocks[].idtextIts name inside its message, given by the server when left out. (at most 60 characters)
blocks[].textchat textWords.
blocks[].text.markdownMarkdownThe words, as Markdown: 4,000 characters across a message's text blocks (that total is checked in code). (required; at most 4,000 characters)
blocks[].listchat listRows or picture cards to tap.
blocks[].list.styleone of rows, cardsRows when left out.
blocks[].list.itemslist of chat itemsEach with its own id. (required)
blocks[].list.items[].idtextIts name in the list. (required; at most 60 characters)
blocks[].list.items[].titlea titleWhat it says. (required; at most 60 characters)
blocks[].list.items[].subtitletextA line under the title. (at most 200 characters)
blocks[].list.items[].imagetextA data:image URL, or a path in the space's own files (assets/x.png). (at most 2,000,000 characters)
blocks[].list.items[].actionchat actionWhat a tap does.
blocks[].list.items[].action.replytextThe words sent as the person's reply. (at most 1,000 characters)
blocks[].list.items[].action.emitchat emitWhat the page hears: ss.on("chat-action", fn) gets { name, data }.
blocks[].list.items[].action.emit.nametextThe event's name.
blocks[].list.items[].action.emit.dataJSON objectAt most 1,024 bytes as JSON (checked in code: no field rule measures it).
blocks[].askchat askOne question with ready answers.
blocks[].ask.idtextIts name in the message. (required; at most 60 characters)
blocks[].ask.questiontextThe question, in a sentence. (required; at most 200 characters)
blocks[].ask.optionslist of textThe ready answers, each once. (required)
blocks[].ask.multitrue or falseMore than one answer may be picked.
blocks[].ask.othertrue or falseThe person may also type their own answer.
blocks[].ask.picktextThe answer it opens with, one of the options: shown picked, so a form sends with it untouched. The person may change it. One that isn't an option is left out. (at most 60 characters)
blocks[].formchat formSeveral questions, sent together.
blocks[].form.idtextIts name in the message. (required; at most 60 characters)
blocks[].form.askslist of chat asksEach with its own id. (required)
blocks[].form.asks[].idtextIts name in the message. (required; at most 60 characters)
blocks[].form.asks[].questiontextThe question, in a sentence. (required; at most 200 characters)
blocks[].form.asks[].optionslist of textThe ready answers, each once. (required)
blocks[].form.asks[].multitrue or falseMore than one answer may be picked.
blocks[].form.asks[].othertrue or falseThe person may also type their own answer.
blocks[].form.asks[].picktextThe answer it opens with, one of the options: shown picked, so a form sends with it untouched. The person may change it. One that isn't an option is left out. (at most 60 characters)
blocks[].form.submittextThe send button's words: Continue when left out. (at most 60 characters)
blocks[].actionschat actionsButtons.
blocks[].actions.itemslist of chat buttonsUp to 3, in order. (required)
blocks[].actions.items[].labeltextIts words. (required; at most 60 characters)
blocks[].actions.items[].primarytrue or falseDrawn as the main button.
blocks[].actions.items[].actionchat actionWhat a press does. (required)
blocks[].actions.items[].action.replytextThe words sent as the person's reply. (at most 1,000 characters)
blocks[].actions.items[].action.emitchat emitWhat the page hears: ss.on("chat-action", fn) gets { name, data }.
blocks[].actions.items[].action.emit.nametextThe event's name.
blocks[].actions.items[].action.emit.dataJSON objectAt most 1,024 bytes as JSON (checked in code: no field rule measures it).
blocks[].filechat fileA picture the agent checked, and its verdict.
blocks[].file.srctextA data:image URL, or a path in the space's own files (assets/x.png). (required; at most 2,000,000 characters)
blocks[].file.labeltextA name under the picture. (at most 60 characters)
blocks[].file.notetextA sentence on what was checked. (at most 200 characters)
blocks[].file.toneone of good, warn, badA checked picture's verdict.
get_talk_settings

Whether you can message your coding sessions from Spacesheep, and whether your plan allows it.

GET /v1/me/talkSettings · spacesheep talk-settings get

Inputs, who can call it, refusals
CLI
spacesheep talk-settings get
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), read_only_grant (403), unavailable (503)
Old names, still answered
talk_settings

It takes no inputs.

update_talk_settings

Turn messaging your coding sessions from Spacesheep on or off. Off ends every listener.

PATCH /v1/me/talkSettings · spacesheep talk-settings update

Inputs, who can call it, refusals
CLI
spacesheep talk-settings update [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), read_only_grant (403), unavailable (503)
Old names, still answered
talk_settings
InputTakesWhat it is
enabledtrue or falseOn or off. Off ends every listener. On needs Pro or Team.
create_box

Start a new cloud box with a coding agent, and its first turn when given a prompt. Answers with its link.

POST /v1/me/boxes · spacesheep boxes create

Inputs, who can call it, refusals
CLI
spacesheep boxes create [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), quota_exceeded (429), rate_limited (429), read_only_grant (403), unavailable (503)
Old names, still answered
start_box
InputTakesWhat it is
yolotrue or falseYOLO mode: the agent runs without permission checks and may merge pull requests. Only when you ask for it.
effortone of low, medium, high, xhigh, max, defaultThe agent's effort on the box's turns; the agent's own when left out.
modeltextThe agent's model: an alias (opus, sonnet) or a model's id; default for the agent's own. (at most 80 characters)
prompttextWhat the agent should do, in your words. Without it the box waits for its first message. (at most 20,000 characters)
agentone of claude, codex, antigravityThe coding agent; claude when left out.
runs_onone of account, api_keyWhose model access it runs on; your account, unless only an API key is set up.
reposlist of textGitHub repos to clone first, each in its own folder: owner/repo or a github.com link. A private one needs a token.
message_box

Send a cloud box's session its next message. A sleeping box wakes; a busy one takes it after its turn.

POST /v1/me/boxes/{box.id}:message · spacesheep boxes message

Inputs, who can call it, refusals
CLI
spacesheep boxes message <box> --prompt <text>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), rate_limited (429), read_only_grant (403), unavailable (503)
InputTakesWhat it is
boxbox nameThe box: its name (cloud-xxxx) or its session's id. (one of box / box_id, required)
box_idbox idbox by its id, instead of its name. (one of box / box_id, required)
prompttextThe message, in your words. (required; at most 20,000 characters)
list_boxes

Your cloud boxes, newest first: state, what each is doing, the last ask and reply.

GET /v1/me/boxes · spacesheep boxes list

Inputs, who can call it, refusals
CLI
spacesheep boxes list [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), read_only_grant (403), unavailable (503)
InputTakesWhat it is
aftertextWhere to start: the last answer's next. From the start when left out.
limitintegerHow many at most; 50 when left out, for every list. (1 to 200)
get_box

One of your cloud boxes: its state, its last 12 messages and its whole last reply.

GET /v1/me/boxes/{box.id} · spacesheep boxes get

Inputs, who can call it, refusals
CLI
spacesheep boxes get <box>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected, read-only ones too (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
boxbox nameThe box: its name (cloud-xxxx) or its session's id. (one of box / box_id, required)
box_idbox idbox by its id, instead of its name. (one of box / box_id, required)
stop_box

Stop a cloud box's current turn and drop the messages waiting behind it. The box and its files stay.

POST /v1/me/boxes/{box.id}:stop · spacesheep boxes stop

Inputs, who can call it, refusals
CLI
spacesheep boxes stop <box>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
InputTakesWhat it is
boxbox nameThe box: its name (cloud-xxxx) or its session's id. (one of box / box_id, required)
box_idbox idbox by its id, instead of its name. (one of box / box_id, required)
update_box

Change a cloud box's YOLO mode, effort or model, from its next turn. Only what's given changes.

PATCH /v1/me/boxes/{box.id} · spacesheep boxes update

Inputs, who can call it, refusals
CLI
spacesheep boxes update <box> [flags]
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
Old names, still answered
configure_box
InputTakesWhat it is
boxbox nameThe box to change. (one of box / box_id, required)
box_idbox idbox by its id, instead of its name. (one of box / box_id, required)
yolotrue or falseYOLO mode: the agent runs without permission checks and may merge pull requests. Only when you ask for it.
effortone of low, medium, high, xhigh, max, defaultThe agent's effort on the box's turns; the agent's own when left out.
modeltextThe agent's model: an alias (opus, sonnet) or a model's id; default for the agent's own. (at most 80 characters)
delete_box

Delete a cloud box: its container, files and disk. Its session and thread stay readable on /sessions.

DELETE /v1/me/boxes/{box.id} · spacesheep boxes delete

Inputs, who can call it, refusals
CLI
spacesheep boxes delete <box>
Who can call it
a person in the browser; your API keys (the CLI, scripts); apps you connected (Claude, ChatGPT, Gemini, Grok); spacesheep's own agents
Refusals
forbidden (403), invalid (400), not_found (404), read_only_grant (403), unavailable (503)
Old names, still answered
clear_box
InputTakesWhat it is
boxbox nameThe box: its name (cloud-xxxx) or its session's id. (one of box / box_id, required)
box_idbox idbox by its id, instead of its name. (one of box / box_id, required)
get_session_filesOne Claude Code session's own files — its .jsonl and its folder of subagents and tool results — uploaded from the computer that ran it: the command that uploads them, then a download link, the sha256 of every file and how to resume it on another account. Yours only.
talk_listenLet a space's owner message the coding session that published it, from the page's Session tab; returns the link the session listens on.
talk_replyAnswer in the page's Session tab.
talk_settingsRead or switch Talk to your sessions (Pro and Team).
start_boxStart a cloud box: Claude Code and sessionpipe on a Linux machine spacesheep runs, nothing to install, on your Claude account or your own key (Max). Its session shows on /sessions.
configure_boxChange a cloud box's settings: YOLO mode (no permission checks, merging allowed), and Claude Code's effort level and model.
clear_boxDelete a cloud box; its session stays on /sessions.

Feedback from a shell: npx -y spacesheep@latest feedback "what broke and how" --client-id report-001 --category bug. Or just tell your agent “this is broken: … — report it to spacesheep”.

Was this page helpful?