Projects, folders and databases
These guides describe the current version of Space, which you can use today at app.getspace.sh.
Workspace items and records.
Send every request to your API URL with your key, as described in the reference overview. Read API concepts for paging, safe retries, revisions and errors.
GET / v1/ spaces/ {space_id}/ items
List workspace items of one kind
Sections, projects, folders, categories, databases or skills of one kind. Pass deleted=true to list deleted ones. A database is listed with its fields and record_count, never its records: read one item for them, or query it.
Path parameters
space_idstring (uuid)Required
Query parameters
kindstringRequiredOne of
project,database,category,section,folder,skillafterstring (uuid) or nulldeletedbooleanDefault
false
Responses
200Success
itemsarray of objectRequired19 fields in
itemsidstring (uuid)RequiredkindstringRequiredOne of
section,project,folder,category,database,skillrevisionintegerRequireddeletedbooleanRequiredupdated_atstring (date-time)Requiredauthor_agentobject or nullRequired5 fields in
author_agentidstring (uuid)RequiredrevisionintegerRequirednamestringRequiredharnessstringRequiredThe agent's software, such as claude, codex or cursor.
{key}anyAny other key.
namestringRequireddescriptionstringRequiredsection_idstring (uuid) or nullProjects: the parent section.
project_idstring (uuid) or nullFolders and databases.
statusstring or nullProjects: a task column value.
fieldsarray of object or nullDatabases.
4 fields in
fieldsidstringRequirednamestringRequiredtypestringRequiredtext, number, select, checkbox, date and similar.
optionsarray of stringChoices for select fields.
recordsarray of object or nullDatabases, when one item is read; listings carry record_count instead.
6 fields in
recordsidstringRequirednamestringRequirednotesstringRequiredcreatedAtstring (date-time) or nullupdatedAtstring (date-time) or nullvaluesobjectRequiredField values keyed by field id.
record_countinteger or nullDatabases: how many records the database holds.
viewstring or nullDatabases: table or board.
groupBystring or nullDatabases: the board's field.
tasksobject or nullDatabases: present when the rows are tracked as tasks.
3 fields in
tasksstatusstringRequiredID of the select field holding each row's status.
donearray of stringRequiredStatus options that close a row.
plannedstringRequiredID of the date field holding the day a row is planned for.
filesarray of object or nullSkills: the folder's text files, SKILL.md first.
2 fields in
filespathstringRequiredRelative to the skill's folder, such as references/style.md.
textstringRequired
warningsarray of string or nullSkills: what other tools would refuse, read from SKILL.md at each save.
next_cursorstring (uuid) or nullRequired
Example response
{
"items": [
{
"author_agent": null,
"deleted": false,
"description": "",
"fields": [
{
"id": "company",
"name": "Company",
"options": [],
"type": "text"
},
{
"id": "value",
"name": "Value",
"options": [],
"type": "number"
}
],
"groupBy": null,
"id": "dfb21eb3-b1f2-4f5e-8497-eef13aa3c4e0",
"kind": "database",
"name": "Leads",
"record_count": 1,
"revision": 2,
"updated_at": "2026-10-22T09:59:29.920445+00:00",
"view": "table"
}
],
"next_cursor": null
}Errors
- 401The API key is missing, unknown, expired or revoked. Error
- 403Not allowed: a read-only key, a view-only role, or an operation keys cannot do. Error
- 404Not found. Other Spaces also look absent to a key. Error
- 422Invalid fields, revision or payload. Error
- 503Temporarily unavailable or busy. Retry with backoff, honouring Retry-After. Error
Example request
curl "https://<api-host>/v1/spaces/{space_id}/items?kind=project" \
-H "Authorization: Bearer $SPACE_API_KEY"POST / v1/ spaces/ {space_id}/ items
Create or update a workspace item
Creates an item with a new item_id and expected_revision: 0, or replaces its data at the current revision. data depends on kind. Databases carry fields and optionally records: with records, the list is the whole table and only the rows that differ are stored, each as its own encrypted revision; without it, the stored records stay as they are. Skills carry files, with SKILL.md naming and describing the skill. Only the Space's owner changes skills, and only on the Teams plan: on other plans a skill that stays active is refused with 402.
Path parameters
space_idstring (uuid)Required
Request bodyRequired
command_idstring (uuid)Requireditem_idstring (uuid)Requiredexpected_revisionintegerRequiredAt least 0
kindstringRequiredOne of
project,database,category,section,folder,skilldataobjectRequired
Responses
200Success
idstring (uuid)RequiredkindstringRequiredOne of
section,project,folder,category,database,skillrevisionintegerRequireddeletedbooleanRequiredupdated_atstring (date-time)Requiredauthor_agentobject or nullRequired5 fields in
author_agentidstring (uuid)RequiredrevisionintegerRequirednamestringRequiredharnessstringRequiredThe agent's software, such as claude, codex or cursor.
{key}anyAny other key.
namestringRequireddescriptionstringRequiredsection_idstring (uuid) or nullProjects: the parent section.
project_idstring (uuid) or nullFolders and databases.
statusstring or nullProjects: a task column value.
fieldsarray of object or nullDatabases.
4 fields in
fieldsidstringRequirednamestringRequiredtypestringRequiredtext, number, select, checkbox, date and similar.
optionsarray of stringChoices for select fields.
recordsarray of object or nullDatabases, when one item is read; listings carry record_count instead.
6 fields in
recordsidstringRequirednamestringRequirednotesstringRequiredcreatedAtstring (date-time) or nullupdatedAtstring (date-time) or nullvaluesobjectRequiredField values keyed by field id.
record_countinteger or nullDatabases: how many records the database holds.
viewstring or nullDatabases: table or board.
groupBystring or nullDatabases: the board's field.
tasksobject or nullDatabases: present when the rows are tracked as tasks.
3 fields in
tasksstatusstringRequiredID of the select field holding each row's status.
donearray of stringRequiredStatus options that close a row.
plannedstringRequiredID of the date field holding the day a row is planned for.
filesarray of object or nullSkills: the folder's text files, SKILL.md first.
2 fields in
filespathstringRequiredRelative to the skill's folder, such as references/style.md.
textstringRequired
warningsarray of string or nullSkills: what other tools would refuse, read from SKILL.md at each save.
Example response
{
"author_agent": null,
"deleted": false,
"description": "",
"id": "28dbd728-f736-4563-af9a-8d12adab8a62",
"kind": "project",
"name": "Beacon",
"revision": 1,
"section_id": "de2494c6-49cc-4ac7-b9e9-74f90cde7f2e",
"status": "todo",
"updated_at": "2026-10-22T09:59:30.504433+00:00"
}Errors
- 401The API key is missing, unknown, expired or revoked. Error
- 402An active subscription is required to add content. Reading, export and deletion still work. Error
- 403Not allowed: a read-only key, a view-only role, or an operation keys cannot do. Error
- 404Not found. Other Spaces also look absent to a key. Error
- 409Conflict: a stale expected_revision, a reused command_id, or a changed snapshot. Re-read and retry. Error
- 422Invalid fields, revision or payload. Error
- 429A Space quota is exhausted (storage, items or monthly model requests). Error
- 503Temporarily unavailable or busy. Retry with backoff, honouring Retry-After. Error
Example request
curl -X POST "https://<api-host>/v1/spaces/{space_id}/items" \
-H "Authorization: Bearer $SPACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"command_id": "2a702d9a-317c-4246-acf6-71cf2c4b61ae",
"data": {
"name": "Beacon",
"section_id": "de2494c6-49cc-4ac7-b9e9-74f90cde7f2e"
},
"expected_revision": 0,
"item_id": "28dbd728-f736-4563-af9a-8d12adab8a62",
"kind": "project"
}'GET / v1/ spaces/ {space_id}/ items/ {item_id}
Get a workspace item
One item. Pass revision to read an earlier revision. A database carries its records as they were at that revision.
Path parameters
space_idstring (uuid)Requireditem_idstring (uuid)Required
Query parameters
revisioninteger or null
Responses
200Success
idstring (uuid)RequiredkindstringRequiredOne of
section,project,folder,category,database,skillrevisionintegerRequireddeletedbooleanRequiredupdated_atstring (date-time)Requiredauthor_agentobject or nullRequired5 fields in
author_agentidstring (uuid)RequiredrevisionintegerRequirednamestringRequiredharnessstringRequiredThe agent's software, such as claude, codex or cursor.
{key}anyAny other key.
namestringRequireddescriptionstringRequiredsection_idstring (uuid) or nullProjects: the parent section.
project_idstring (uuid) or nullFolders and databases.
statusstring or nullProjects: a task column value.
fieldsarray of object or nullDatabases.
4 fields in
fieldsidstringRequirednamestringRequiredtypestringRequiredtext, number, select, checkbox, date and similar.
optionsarray of stringChoices for select fields.
recordsarray of object or nullDatabases, when one item is read; listings carry record_count instead.
6 fields in
recordsidstringRequirednamestringRequirednotesstringRequiredcreatedAtstring (date-time) or nullupdatedAtstring (date-time) or nullvaluesobjectRequiredField values keyed by field id.
record_countinteger or nullDatabases: how many records the database holds.
viewstring or nullDatabases: table or board.
groupBystring or nullDatabases: the board's field.
tasksobject or nullDatabases: present when the rows are tracked as tasks.
3 fields in
tasksstatusstringRequiredID of the select field holding each row's status.
donearray of stringRequiredStatus options that close a row.
plannedstringRequiredID of the date field holding the day a row is planned for.
filesarray of object or nullSkills: the folder's text files, SKILL.md first.
2 fields in
filespathstringRequiredRelative to the skill's folder, such as references/style.md.
textstringRequired
warningsarray of string or nullSkills: what other tools would refuse, read from SKILL.md at each save.
Example response
{
"author_agent": null,
"deleted": false,
"description": "The Atlas launch.",
"id": "04ec7390-c1d2-4977-ad00-f3cfdd36b423",
"kind": "project",
"name": "Atlas",
"revision": 1,
"section_id": null,
"status": "todo",
"updated_at": "2026-10-22T09:59:29.845016+00:00"
}Errors
- 401The API key is missing, unknown, expired or revoked. Error
- 403Not allowed: a read-only key, a view-only role, or an operation keys cannot do. Error
- 404Not found. Other Spaces also look absent to a key. Error
- 422Invalid fields, revision or payload. Error
- 503Temporarily unavailable or busy. Retry with backoff, honouring Retry-After. Error
Example request
curl "https://<api-host>/v1/spaces/{space_id}/items/{item_id}" \
-H "Authorization: Bearer $SPACE_API_KEY"POST / v1/ spaces/ {space_id}/ databases/ {database_id}/ query
Query a database
Runs SQLite-dialect SQL against one database's records table. Reads need nothing else; writes (INSERT, UPDATE, DELETE) need a read-write key plus command_id and the database's current expected_revision. include_schema=true maps field names to SQL columns.
Path parameters
space_idstring (uuid)Requireddatabase_idstring (uuid)Required
Request bodyRequired
sqlstring or null1 to 10000 characters
paramsarray of (string or integer or number or boolean or null)Up to 100 items
statementsarray of object or null1 to 20 items
2 fields in
statementssqlstringRequired1 to 10000 characters
paramsarray of (string or integer or number or boolean or null)Up to 100 items
command_idstring (uuid) or nullexpected_revisioninteger or nullAt least 1
max_rowsinteger1 to 500Default
100include_schemabooleanDefault
false
Responses
200Success
databaseobjectRequired2 fields in
databaseidstring (uuid)RequiredrevisionintegerRequired
resultsarray of objectRequiredOne result per statement.
4 fields in
resultscolumnsarray of stringRequiredrowsarray of array of anyRequiredrow_countintegerRequiredtruncatedbooleanRequiredTrue when more rows matched than max_rows.
changesobject or nullRequiredRow counts for a write; null for a read.
3 fields in
changesinsertedintegerRequiredupdatedintegerRequireddeletedintegerRequired
schemaarray of object or nullWith include_schema=true.
4 fields in
schemacolumnstringRequiredThe SQL column name to use in queries.
field_idstringRequiredtypestringRequiredoptionsarray of stringRequired
Example response
{
"changes": {
"deleted": 0,
"inserted": 0,
"updated": 1
},
"database": {
"id": "dfb21eb3-b1f2-4f5e-8497-eef13aa3c4e0",
"revision": 2
},
"results": [
{
"columns": [],
"row_count": 0,
"rows": [],
"truncated": false
}
]
}Errors
- 401The API key is missing, unknown, expired or revoked. Error
- 402An active subscription is required to add content. Reading, export and deletion still work. Error
- 403Not allowed: a read-only key, a view-only role, or an operation keys cannot do. Error
- 404Not found. Other Spaces also look absent to a key. Error
- 409Conflict: a stale expected_revision, a reused command_id, or a changed snapshot. Re-read and retry. Error
- 422Invalid fields, revision or payload. Error
- 429A Space quota is exhausted (storage, items or monthly model requests). Error
- 503Temporarily unavailable or busy. Retry with backoff, honouring Retry-After. Error
Example request
curl -X POST "https://<api-host>/v1/spaces/{space_id}/databases/{database_id}/query" \
-H "Authorization: Bearer $SPACE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"command_id": "70c2336a-1521-48fd-8e6b-70a90819ca2d",
"expected_revision": 1,
"params": [
150,
"Acme"
],
"sql": "UPDATE records SET Value = ? WHERE name = ?"
}'