A Space holds the notes and files for a single client or project, and the assistant reads it when you work on that client. You can view them in Spaces. Use these endpoints to list your Spaces with their IDs, or to create a new Space when you add a client in another tool.
To read Spaces, your API key needs the Spaces area, which is included in Full access and Read-only. Creating a Space requires Full access or Spaces set to Read and write. If a key is limited to specific Spaces, it can only see those and can’t create new ones. For more background, see Spaces, notes and files.
GET /spaces returns all the Spaces your key can access, and GET /spaces/{space} returns a single one.
POST /spaces creates a new Space. Set kind to project or client, and set language to the Space’s language, such as en-US or de-DE. Because a client Space belongs to a company, it also needs either mail_account_public_id (the ID of an existing company from CRM) or new_company_name to create a new one:
{
"name": "Example Ltd",
"kind": "client",
"language": "en-US",
"new_company_name": "Example Ltd"
}
If you need to update a Space later, such as renaming or archiving it, use the older Projects endpoints under /projects. They modify the same Spaces under their previous name. To work with the notes and files inside a Space, see Files and notes. You can also manage Spaces from your terminal with svanja space.