ONLYOFFICE DocSpace icon

ONLYOFFICE DocSpace

Consume ONLYOFFICE DocSpace API

Room → Create Room

AI-generated

Summary

Creates a new ONLYOFFICE DocSpace room with a given title and room type by POSTing to api/2.0/files/rooms, and returns the created room's details.

Inputs

  • Authentication (required) — Credential method used for the request: API Key (default), Basic Auth, OAuth2, or Personal Access Token. The matching credential must be configured.
  • Title (required) — Name of the room to create. Defaults to "Room from n8n".
  • Type (required) — Room type: Form Filling Room (1), Collaboration Room (2), Custom Room (5), Public Room (6, default), or Virtual Data Room (8).

Output shape

One output item per input item, containing the room object returned by DocSpace (the response field of the API result), such as its ID, title and room type.

The exact fields come from the DocSpace API and are not defined in the node. The room is created once per input item. If Continue On Fail is enabled, a failed item returns {error: message} instead of stopping the workflow. Only title and room type are sent, so no other room settings can be configured here.

Examples

Example 1: Create a public room for each new customer onboarding

Title: ={{$json.customerName}} Docs; Type: Public Room; Authentication: API Key

Example 2: Set up a collaboration room for a new project, then invite team members

Title: Project Alpha; Type: Collaboration Room. Pass the returned room ID to the Invite User operation.

Links

Discussion