workspace

Create Protected Workspace

Create a new workspace with encryption and access controls. Sets up vector storage and associates the creator as the initial workspace user.

Server generates the workspace symmetric key and wraps it with the user's public key. The wrapped key is returned in the response for client-side storage.

Public workspaces are visible to all users and grant non-members limited access:

  • Non-members can view shared documents and tags
  • Non-members can create conversations and send messages
  • Only members can upload documents
  • Only members can see the member list

Only users with developer flag can create public workspaces.

post/api/workspace/create_protected

Request body

namestring required
descriptionstring nullable
is_publicboolean

Response

Successful Response

external_idstring required
namestring required
descriptionstring nullable required
is_publicboolean required
created_by_ext_idstring required
updated_by_ext_idstring nullable
created_atstring date-time required
updated_atstring date-time required
wrapped_keystring nullable
shared_conversation_countinteger
private_conversation_countinteger
shared_document_countinteger
private_document_countinteger
user_files_mbnumber

Changes

Changed in 5 of the 34 revisions of this API.9119

  • b91e4b449d56515See the full diff
    • removed the required property users/items/email from the response with the 200 status

      response-required-property-removed

    • removed the required property users/items/encryption_public_key from the response with the 200 status

      response-required-property-removed

    • removed the required property users/items/external_id from the response with the 200 status

      response-required-property-removed

    • removed the required property users/items/family_name from the response with the 200 status

      response-required-property-removed

    • removed the required property users/items/given_name from the response with the 200 status

      response-required-property-removed

    • removed the optional property users/items/picture from the response with the 200 status

      response-optional-property-removed

    • added the optional property users/items/conversation_count to the response with the 200 status

      response-optional-property-added

    • added the optional property users/items/document_count to the response with the 200 status

      response-optional-property-added

    • added the required property users/items/joined_at to the response with the 200 status

      response-required-property-added

    • added the required property users/items/role to the response with the 200 status

      response-required-property-added

    • added the required property users/items/user to the response with the 200 status

      response-required-property-added

    This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • aa4b06f8dede45See the full diff
    • the response property updated_by_ext_id became optional for the status 200

      response-property-became-optional

    • removed the required property users/items/last_name from the response with the 200 status

      response-required-property-removed

    • removed the required property users/items/name from the response with the 200 status

      response-required-property-removed

    • removed the required property users/items/user_ext_id from the response with the 200 status

      response-required-property-removed

    • added the optional property users/items/picture to the response with the 200 status

      response-optional-property-added

    • added the required property users/items/encryption_public_key to the response with the 200 status

      response-required-property-added

    • added the required property users/items/external_id to the response with the 200 status

      response-required-property-added

    • added the required property users/items/family_name to the response with the 200 status

      response-required-property-added

    • added the required property users/items/given_name to the response with the 200 status

      response-required-property-added

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the optional property user_files_mb to the response with the 200 status

      response-optional-property-added

    • added the optional property private_conversation_count to the response with the 200 status

      response-optional-property-added

    • added the optional property private_document_count to the response with the 200 status

      response-optional-property-added

    • added the optional property shared_conversation_count to the response with the 200 status

      response-optional-property-added

    • added the optional property shared_document_count to the response with the 200 status

      response-optional-property-added

    • added the optional property users to the response with the 200 status

      response-optional-property-added

    • added the optional property wrapped_key to the response with the 200 status

      response-optional-property-added

    This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional request property is_public

      new-optional-request-property

    • added the required property is_public to the response with the 200 status

      response-required-property-added