API reference / Space guide

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

  • kindstringRequired

    One of project, database, category, section, folder, skill

  • afterstring (uuid) or null
  • deletedboolean

    Default false

Responses

200Success

  • itemsarray of objectRequired
    19 fields in items
    • idstring (uuid)Required
    • kindstringRequired

      One of section, project, folder, category, database, skill

    • revisionintegerRequired
    • deletedbooleanRequired
    • updated_atstring (date-time)Required
    • author_agentobject or nullRequired
      5 fields in author_agent
      • idstring (uuid)Required
      • revisionintegerRequired
      • namestringRequired
      • harnessstringRequired

        The agent's software, such as claude, codex or cursor.

      • {key}any

        Any other key.

    • namestringRequired
    • descriptionstringRequired
    • section_idstring (uuid) or null

      Projects: the parent section.

    • project_idstring (uuid) or null

      Folders and databases.

    • statusstring or null

      Projects: a task column value.

    • fieldsarray of object or null

      Databases.

      4 fields in fields
      • idstringRequired
      • namestringRequired
      • typestringRequired

        text, number, select, checkbox, date and similar.

      • optionsarray of string

        Choices for select fields.

    • recordsarray of object or null

      Databases, when one item is read; listings carry record_count instead.

      6 fields in records
      • idstringRequired
      • namestringRequired
      • notesstringRequired
      • createdAtstring (date-time) or null
      • updatedAtstring (date-time) or null
      • valuesobjectRequired

        Field values keyed by field id.

    • record_countinteger or null

      Databases: how many records the database holds.

    • viewstring or null

      Databases: table or board.

    • groupBystring or null

      Databases: the board's field.

    • tasksobject or null

      Databases: present when the rows are tracked as tasks.

      3 fields in tasks
      • statusstringRequired

        ID of the select field holding each row's status.

      • donearray of stringRequired

        Status options that close a row.

      • plannedstringRequired

        ID of the date field holding the day a row is planned for.

    • filesarray of object or null

      Skills: the folder's text files, SKILL.md first.

      2 fields in files
      • pathstringRequired

        Relative to the skill's folder, such as references/style.md.

      • textstringRequired
    • warningsarray of string or null

      Skills: 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)Required
  • item_idstring (uuid)Required
  • expected_revisionintegerRequired

    At least 0

  • kindstringRequired

    One of project, database, category, section, folder, skill

  • dataobjectRequired

Responses

200Success

  • idstring (uuid)Required
  • kindstringRequired

    One of section, project, folder, category, database, skill

  • revisionintegerRequired
  • deletedbooleanRequired
  • updated_atstring (date-time)Required
  • author_agentobject or nullRequired
    5 fields in author_agent
    • idstring (uuid)Required
    • revisionintegerRequired
    • namestringRequired
    • harnessstringRequired

      The agent's software, such as claude, codex or cursor.

    • {key}any

      Any other key.

  • namestringRequired
  • descriptionstringRequired
  • section_idstring (uuid) or null

    Projects: the parent section.

  • project_idstring (uuid) or null

    Folders and databases.

  • statusstring or null

    Projects: a task column value.

  • fieldsarray of object or null

    Databases.

    4 fields in fields
    • idstringRequired
    • namestringRequired
    • typestringRequired

      text, number, select, checkbox, date and similar.

    • optionsarray of string

      Choices for select fields.

  • recordsarray of object or null

    Databases, when one item is read; listings carry record_count instead.

    6 fields in records
    • idstringRequired
    • namestringRequired
    • notesstringRequired
    • createdAtstring (date-time) or null
    • updatedAtstring (date-time) or null
    • valuesobjectRequired

      Field values keyed by field id.

  • record_countinteger or null

    Databases: how many records the database holds.

  • viewstring or null

    Databases: table or board.

  • groupBystring or null

    Databases: the board's field.

  • tasksobject or null

    Databases: present when the rows are tracked as tasks.

    3 fields in tasks
    • statusstringRequired

      ID of the select field holding each row's status.

    • donearray of stringRequired

      Status options that close a row.

    • plannedstringRequired

      ID of the date field holding the day a row is planned for.

  • filesarray of object or null

    Skills: the folder's text files, SKILL.md first.

    2 fields in files
    • pathstringRequired

      Relative to the skill's folder, such as references/style.md.

    • textstringRequired
  • warningsarray of string or null

    Skills: 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)Required
  • item_idstring (uuid)Required

Query parameters

  • revisioninteger or null

Responses

200Success

  • idstring (uuid)Required
  • kindstringRequired

    One of section, project, folder, category, database, skill

  • revisionintegerRequired
  • deletedbooleanRequired
  • updated_atstring (date-time)Required
  • author_agentobject or nullRequired
    5 fields in author_agent
    • idstring (uuid)Required
    • revisionintegerRequired
    • namestringRequired
    • harnessstringRequired

      The agent's software, such as claude, codex or cursor.

    • {key}any

      Any other key.

  • namestringRequired
  • descriptionstringRequired
  • section_idstring (uuid) or null

    Projects: the parent section.

  • project_idstring (uuid) or null

    Folders and databases.

  • statusstring or null

    Projects: a task column value.

  • fieldsarray of object or null

    Databases.

    4 fields in fields
    • idstringRequired
    • namestringRequired
    • typestringRequired

      text, number, select, checkbox, date and similar.

    • optionsarray of string

      Choices for select fields.

  • recordsarray of object or null

    Databases, when one item is read; listings carry record_count instead.

    6 fields in records
    • idstringRequired
    • namestringRequired
    • notesstringRequired
    • createdAtstring (date-time) or null
    • updatedAtstring (date-time) or null
    • valuesobjectRequired

      Field values keyed by field id.

  • record_countinteger or null

    Databases: how many records the database holds.

  • viewstring or null

    Databases: table or board.

  • groupBystring or null

    Databases: the board's field.

  • tasksobject or null

    Databases: present when the rows are tracked as tasks.

    3 fields in tasks
    • statusstringRequired

      ID of the select field holding each row's status.

    • donearray of stringRequired

      Status options that close a row.

    • plannedstringRequired

      ID of the date field holding the day a row is planned for.

  • filesarray of object or null

    Skills: the folder's text files, SKILL.md first.

    2 fields in files
    • pathstringRequired

      Relative to the skill's folder, such as references/style.md.

    • textstringRequired
  • warningsarray of string or null

    Skills: 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)Required
  • database_idstring (uuid)Required

Request bodyRequired

  • sqlstring or null

    1 to 10000 characters

  • paramsarray of (string or integer or number or boolean or null)

    Up to 100 items

  • statementsarray of object or null

    1 to 20 items

    2 fields in statements
    • sqlstringRequired

      1 to 10000 characters

    • paramsarray of (string or integer or number or boolean or null)

      Up to 100 items

  • command_idstring (uuid) or null
  • expected_revisioninteger or null

    At least 1

  • max_rowsinteger

    1 to 500Default 100

  • include_schemaboolean

    Default false

Responses

200Success

  • databaseobjectRequired
    2 fields in database
    • idstring (uuid)Required
    • revisionintegerRequired
  • resultsarray of objectRequired

    One result per statement.

    4 fields in results
    • columnsarray of stringRequired
    • rowsarray of array of anyRequired
    • row_countintegerRequired
    • truncatedbooleanRequired

      True when more rows matched than max_rows.

  • changesobject or nullRequired

    Row counts for a write; null for a read.

    3 fields in changes
    • insertedintegerRequired
    • updatedintegerRequired
    • deletedintegerRequired
  • schemaarray of object or null

    With include_schema=true.

    4 fields in schema
    • columnstringRequired

      The SQL column name to use in queries.

    • field_idstringRequired
    • typestringRequired
    • optionsarray 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 = ?"
  }'