Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: spacesheep Group Service API
version: v1
contact:
name: spacesheep
url: https://spacesheep.dev/feedback
description: 'spacesheep''s API: every call it answers today, made from the same call table as `/v1/doors.json`. Each call is also an MCP tool (`x-mcp-tool`) and a CLI command (`x-cli-command`). `x-callers` says which kinds of connection may make it: `person`, a person in the browser; `key`, your API keys (the CLI, scripts); `read_key`, read-only API keys; `connector`, apps you connected (Claude, ChatGPT, Gemini, Grok); `connector_read`, read-only connected apps; `agent`, spacesheep''s own agents; `box`, cloud boxes; `stream`, a streams-only key (a machine sending values). A refusal is an `ErrorInfo`: `code` is a word a program can branch on, and each call lists the words it can give, with what they mean.'
servers:
- url: https://spacesheep.dev
tags:
- name: GroupService
paths:
/v1/me/groups:
get:
operationId: list_groups
summary: Your groups (share lists) with their sizes; or one group's people and the…
tags:
- GroupService
parameters:
- name: group
in: query
required: false
description: One group, to see its people and the spaces shared with it. Every group, with its size, when left out. (group name)
schema:
type: string
- name: group_id
in: query
required: false
description: '`group` by its id, instead of its name. (group id)'
schema:
type: string
- name: after
in: query
required: false
description: 'Where to start: the last answer''s `next`. From the start when left out. (text)'
schema:
type: string
- name: limit
in: query
required: false
description: How many at most; 50 when left out, for every list. (integer; 1 to 200)
schema:
type: integer
minimum: 1
maximum: 200
responses:
'200':
description: 'Done: the call''s answer.'
content:
application/json:
schema:
type: object
properties:
groups:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
title:
type: string
size:
type: integer
people:
type: array
items:
type: string
spaces:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
page:
type: object
properties:
next:
type: string
'400':
description: '`invalid`: An input broke a rule (`violations` names it when it can). Fix it and send again.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- invalid
'401':
description: '`unauthenticated`: No credential, or one that expired or was revoked. Sign in, or send a valid key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- unauthenticated
'403':
description: '`insufficient_scope`: This call is outside the key''s or token''s scope; a streams or session-hooks key opens none. Use a full key.
`needs_consent`: This call needs a permission you haven''t given yet; open the link to answer.
`not_granted`: This call is outside what the skill may ever ask for, so it can''t be granted. Nothing changed.
`not_in_trial`: A trial can''t reach MCP or an outside host. Carry a fixture in the draft, or approve it first.
`read_only_grant`: This read-only connection (a read key, or a spacesheep:read grant) can''t make this call. Use a full key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- insufficient_scope
- needs_consent
- not_granted
- not_in_trial
- read_only_grant
'404':
description: '`not_found`: Nothing by that name or id here: no such space, version, file, comment, post, list, team or member.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- not_found
'409':
description: '`replay_mismatch`: This restarted run asked for a different call than the one that already ran here; nothing was written.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- replay_mismatch
'413':
description: '`payload_too_large`: Too big: over the request''s size cap, or over the plan''s limits on files and bytes.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- payload_too_large
'500':
description: '`internal`: Something failed on spacesheep''s side; the call may not have finished. Read before you try again.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- internal
security:
- bearer: []
- session: []
x-mcp-tool: list_groups
x-cli-command: spacesheep groups list
x-callers:
- person
- key
- connector
- connector_read
- agent
- box
post:
operationId: create_group
summary: 'Make a group: its title, and the addresses or @handles on it. Nobody is emailed'
tags:
- GroupService
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
title:
type: string
description: Its title, e.g. F26. (a title; at most 60 characters)
add:
type: string
description: 'Addresses or @handles to put on it, in any form: one per line, commas, a CSV row, ''Name <addr>''. (text; at most 200,000 characters)'
remove:
type: string
description: Addresses or @handles to take off it. (text; at most 200,000 characters)
share:
type: string
description: 'A space you own to share with everyone on it: they may view, comment and fill in forms. Nobody is emailed. (space name)'
share_id:
type: string
description: '`share` by its id, instead of its name. (space id)'
unshare:
type: string
description: A space you own to stop sharing with it. (space name)
unshare_id:
type: string
description: '`unshare` by its id, instead of its name. (space id)'
additionalProperties: false
required:
- title
responses:
'200':
description: 'Done: the call''s answer.'
content:
application/json:
schema:
type: object
properties:
group:
type: object
properties:
id:
type: string
name:
type: string
title:
type: string
size:
type: integer
people:
type: array
items:
type: string
spaces:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
change:
type: object
properties:
added:
type: integer
already:
type: integer
over:
type: integer
removed:
type: integer
invalid:
type: array
items:
type: string
unknown:
type: array
items:
type: string
'400':
description: '`invalid`: An input broke a rule (`violations` names it when it can). Fix it and send again.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- invalid
'401':
description: '`unauthenticated`: No credential, or one that expired or was revoked. Sign in, or send a valid key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- unauthenticated
'403':
description: '`forbidden`: This account, or this kind of connection, may not do this here. Resending won''t help.
`insufficient_scope`: This call is outside the key''s or token''s scope; a streams or session-hooks key opens none. Use a full key.
`needs_consent`: This call needs a permission you haven''t given yet; open the link to answer.
`not_granted`: This call is outside what the skill may ever ask for, so it can''t be granted. Nothing changed.
`not_in_trial`: A trial can''t reach MCP or an outside host. Carry a fixture in the draft, or approve it first.
`read_only_grant`: This read-only connection (a read key, or a spacesheep:read grant) can''t make this call. Use a full key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- forbidden
- insufficient_scope
- needs_consent
- not_granted
- not_in_trial
- read_only_grant
'404':
description: '`not_found`: Nothing by that name or id here: no such space, version, file, comment, post, list, team or member.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- not_found
'409':
description: '`replay_mismatch`: This restarted run asked for a different call than the one that already ran here; nothing was written.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- replay_mismatch
'413':
description: '`payload_too_large`: Too big: over the request''s size cap, or over the plan''s limits on files and bytes.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- payload_too_large
'429':
description: '`quota_exceeded`: A limit is reached: the day''s publish budget, your share lists, a team''s seats or a discussion''s posts.
`rate_limited`: Too many calls too fast. Wait as long as Retry-After or the message says, then send again.'
headers:
Retry-After:
description: 'With `rate_limited`: how many seconds to wait before sending again.'
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- quota_exceeded
- rate_limited
'500':
description: '`internal`: Something failed on spacesheep''s side; the call may not have finished. Read before you try again.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- internal
security:
- bearer: []
- session: []
x-mcp-tool: create_group
x-cli-command: spacesheep groups create
x-callers:
- person
- key
- connector
- agent
/v1/me/groups/{group_id}:
patch:
operationId: update_group
summary: Rename a group, put people on it or take them off, or share a space of yours…
tags:
- GroupService
parameters:
- name: group_id
in: path
required: true
description: 'The group to change. A name (not an id) goes here and in `group` too, as one path segment: a `/` is `%2F`.'
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
group:
type: string
description: The group to change. (group name)
title:
type: string
description: Its title, e.g. F26. (a title; at most 60 characters)
add:
type: string
description: 'Addresses or @handles to put on it, in any form: one per line, commas, a CSV row, ''Name <addr>''. (text; at most 200,000 characters)'
remove:
type: string
description: Addresses or @handles to take off it. (text; at most 200,000 characters)
share:
type: string
description: 'A space you own to share with everyone on it: they may view, comment and fill in forms. Nobody is emailed. (space name)'
share_id:
type: string
description: '`share` by its id, instead of its name. (space id)'
unshare:
type: string
description: A space you own to stop sharing with it. (space name)
unshare_id:
type: string
description: '`unshare` by its id, instead of its name. (space id)'
additionalProperties: false
required: []
responses:
'200':
description: 'Done: the call''s answer.'
content:
application/json:
schema:
type: object
properties:
group:
type: object
properties:
id:
type: string
name:
type: string
title:
type: string
size:
type: integer
people:
type: array
items:
type: string
spaces:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
change:
type: object
properties:
added:
type: integer
already:
type: integer
over:
type: integer
removed:
type: integer
invalid:
type: array
items:
type: string
unknown:
type: array
items:
type: string
'400':
description: '`invalid`: An input broke a rule (`violations` names it when it can). Fix it and send again.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- invalid
'401':
description: '`unauthenticated`: No credential, or one that expired or was revoked. Sign in, or send a valid key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- unauthenticated
'403':
description: '`forbidden`: This account, or this kind of connection, may not do this here. Resending won''t help.
`insufficient_scope`: This call is outside the key''s or token''s scope; a streams or session-hooks key opens none. Use a full key.
`needs_consent`: This call needs a permission you haven''t given yet; open the link to answer.
`not_granted`: This call is outside what the skill may ever ask for, so it can''t be granted. Nothing changed.
`not_in_trial`: A trial can''t reach MCP or an outside host. Carry a fixture in the draft, or approve it first.
`read_only_grant`: This read-only connection (a read key, or a spacesheep:read grant) can''t make this call. Use a full key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- forbidden
- insufficient_scope
- needs_consent
- not_granted
- not_in_trial
- read_only_grant
'404':
description: '`not_found`: Nothing by that name or id here: no such space, version, file, comment, post, list, team or member.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- not_found
'409':
description: '`replay_mismatch`: This restarted run asked for a different call than the one that already ran here; nothing was written.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- replay_mismatch
'413':
description: '`payload_too_large`: Too big: over the request''s size cap, or over the plan''s limits on files and bytes.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- payload_too_large
'429':
description: '`rate_limited`: Too many calls too fast. Wait as long as Retry-After or the message says, then send again.'
headers:
Retry-After:
description: 'With `rate_limited`: how many seconds to wait before sending again.'
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- rate_limited
'500':
description: '`internal`: Something failed on spacesheep''s side; the call may not have finished. Read before you try again.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- internal
security:
- bearer: []
- session: []
x-mcp-tool: update_group
x-cli-command: spacesheep groups update
x-callers:
- person
- key
- connector
- agent
delete:
operationId: delete_group
summary: Delete a group. Every space shared with it stops being shared with its people
tags:
- GroupService
parameters:
- name: group_id
in: path
required: true
description: 'One of your groups, by its title (any case). A name (not an id) goes here and in `group` too, as one path segment: a `/` is `%2F`.'
schema:
type: string
- name: group
in: query
required: false
description: One of your groups, by its title (any case). (group name)
schema:
type: string
responses:
'200':
description: 'Done: the call''s answer.'
content:
application/json:
schema:
type: object
properties: {}
'400':
description: '`invalid`: An input broke a rule (`violations` names it when it can). Fix it and send again.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- invalid
'401':
description: '`unauthenticated`: No credential, or one that expired or was revoked. Sign in, or send a valid key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- unauthenticated
'403':
description: '`forbidden`: This account, or this kind of connection, may not do this here. Resending won''t help.
`insufficient_scope`: This call is outside the key''s or token''s scope; a streams or session-hooks key opens none. Use a full key.
`needs_consent`: This call needs a permission you haven''t given yet; open the link to answer.
`not_granted`: This call is outside what the skill may ever ask for, so it can''t be granted. Nothing changed.
`not_in_trial`: A trial can''t reach MCP or an outside host. Carry a fixture in the draft, or approve it first.
`read_only_grant`: This read-only connection (a read key, or a spacesheep:read grant) can''t make this call. Use a full key.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- forbidden
- insufficient_scope
- needs_consent
- not_granted
- not_in_trial
- read_only_grant
'404':
description: '`not_found`: Nothing by that name or id here: no such space, version, file, comment, post, list, team or member.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- not_found
'409':
description: '`replay_mismatch`: This restarted run asked for a different call than the one that already ran here; nothing was written.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- replay_mismatch
'413':
description: '`payload_too_large`: Too big: over the request''s size cap, or over the plan''s limits on files and bytes.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- payload_too_large
'429':
description: '`rate_limited`: Too many calls too fast. Wait as long as Retry-After or the message says, then send again.'
headers:
Retry-After:
description: 'With `rate_limited`: how many seconds to wait before sending again.'
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- rate_limited
'500':
description: '`internal`: Something failed on spacesheep''s side; the call may not have finished. Read before you try again.'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorInfo'
properties:
code:
enum:
- internal
security:
- bearer: []
- session: []
x-mcp-tool: delete_group
x-cli-command: spacesheep groups delete
x-callers:
- person
- key
- connector
- agent
components:
schemas:
ErrorInfo:
type: object
description: Why a call was refused.
required:
- code
- message
- violations
properties:
code:
type: string
enum:
- invalid
- bad_host
- bad_path
- unauthenticated
- forbidden
- read_only_grant
- insufficient_scope
- not_granted
- needs_consent
- not_in_trial
- content_blocked
- not_found
- conflict
- turn_held
- replay_mismatch
- payload_too_large
- signed_space
- wrong_kind
- answer_too_large
- failed_precondition
- rate_limited
- quota_exceeded
- suspended
- publish_failed
- internal
- unimplemented
- unavailable
description: A word a program can branch on. What each one means is in the responses that give it.
message:
type: string
description: One sentence for a person.
violations:
type: array
description: The inputs that broke a rule, when the refusal can name them.
items:
type: object
required:
- field
- message
properties:
field:
type: string
description: The input, as a dotted path.
message:
type: string
description: What's wrong with it.
consent:
type: object
description: 'For `needs_consent`: the ask it opened. Open `url` to answer.'
properties:
id:
type: string
url:
type: string
scope:
type: string
description: The one scope asked for; empty for an install.
why:
type: string
kind:
type: string
enum:
- SKILL_CONSENT_KIND_INSTALL
- SKILL_CONSENT_KIND_MOMENT
securitySchemes:
bearer:
type: http
scheme: bearer
description: A spacesheep key (`ss_…`, from Settings → API keys), or an OAuth access token from a connected app.
session:
type: apiKey
in: cookie
name: ss_app
description: A signed-in browser session on spacesheep. A write sent from another site is refused.
externalDocs:
description: The docs
url: https://spacesheep.dev/docs