API roundup: latest updates for ONLYOFFICE DocSpace and Docs
The August 2025 updates for ONLYOFFICE DocSpace and Docs APIs bring a fresh wave of integration possibilities and development tools. Whether you’re building document workflows, creating custom plugins, or connecting ONLYOFFICE with your existing tech stack, these updates deliver practical solutions that save time and streamline development.
DocSpace: Integration samples for Backend REST API
The latest DocSpace API update includes comprehensive integration examples that demonstrate real-world use cases. These aren’t just code snippets – they’re complete solutions you can adapt for your projects.
Trello integrations
Bi-directional user sync. Automatically sync users between DocSpace and Trello boards. This eliminates manual onboarding and ensures team consistency across platforms. Add DocSpace users to Trello / Add Trello users to DocSpace
Asset migration. Import Trello card attachments directly into DocSpace rooms. This scenario streamlines project handoffs and centralizes documentation.
Project structure mirroring. Create DocSpace rooms directly from Trello boards with matching titles. Perfect for maintaining unified project organization. Check the code sample:
import requests
# ONLYOFFICE DocSpace configuration
ONLYOFFICE_API_HOST = "your-docspace.onlyoffice.com"
ONLYOFFICE_API_KEY = "your_onlyoffice_api_key"
# Trello configuration
TRELLO_API_KEY = "your_trello_api_key"
TRELLO_TOKEN = "your_trello_token"
TRELLO_BOARD_ID = "your_board_id"
ONLYOFFICE_HEADERS = {
"Authorization": f"Bearer {ONLYOFFICE_API_KEY}",
"Content-Type": "application/json",
"Accept": "application/json"
}
# Step 1: Get Trello board name
def get_trello_board_name(board_id):
url = f"https://api.trello.com/1/boards/{board_id}"
params = {"key": TRELLO_API_KEY, "token": TRELLO_TOKEN}
response = requests.get(url, params=params)
if response.status_code == 200:
return response.json()["name"]
else:
print(f"Trello board fetch error: {response.status_code}")
return None
# Step 2: Create a DocSpace room with board name
def create_docspace_room(room_title):
url = f"https://{ONLYOFFICE_API_HOST}/api/2.0/files/rooms"
payload = {
"title": room_title,
"roomType": 2, # Collaboration room
"private": True
}
response = requests.post(url, headers=ONLYOFFICE_HEADERS, json=payload)
if response.status_code == 200:
print(f"Room created: {room_title}")
return response.json()
else:
print(f"DocSpace room creation error: {response.status_code}, {response.text}")
return None
# Run integration
if __name__ == "__main__":
board_name = get_trello_board_name(TRELLO_BOARD_ID)
if board_name:
create_docspace_room(board_name)
Cloud storage integrations
Dropbox connectivity. The new Dropbox integrations support both import and export workflows. Export files from DocSpace using presigned URLs for archiving or backup. Import files directly into specific rooms for centralized document management.
Folder sharing automation. Automatically share Dropbox folders with DocSpace users or group members, creating seamless collaboration bridges between platforms.
Notion and Asana workflows
Notion user integration. Sync Notion workspace users with DocSpace, ensuring consistent access across your documentation ecosystem.
Asana project automation. Generate DocSpace room structures based on Asana projects, with folders automatically created for each task. This creates perfect alignment between project management and document collaboration.
Task-based invitations. Automatically invite Asana task assignees to relevant DocSpace rooms, eliminating manual access management.
DocSpace: Enhanced Plugins SDK
The Plugins SDK receives significant updates with both advanced and basic samples to accelerate plugin development.
Advanced plugin samples
- File extension filter plugin. Adds contextual filtering capabilities with a clean modal interface. Users can filter room contents by file type, improving navigation in document-heavy environments.
- Modal dialog plugin. Demonstrates custom toolbar integration with backend API calls. Create new documents directly from the interface with user-defined parameters.
- Settings plugin UI. Provides administrators with custom configuration interfaces, enabling fine-tuned control over plugin behavior.
Basic component samples
New basic samples cover essential UI components:
- API plugin – shows proper platform API connection handling.
- Box component – layout and spacing configuration examples.
- Button component – interactive element implementation.
- ComboBox component – dropdown selection interfaces.
- Text component – typography and styling options.
- ToggleButton component – binary state controls.
These samples provide the building blocks for more complex plugin development, with clear implementation patterns you can follow.
What’s new for Docs API: Customization
The new suggestFeature parameter gives you granular control over the newly added editor interface element.
const config = {
editorConfig: {
customization: {
...
suggestFeature: true,
This parameter controls the visibility of the “Suggest a Feature” menu button in the File tab. Set it to false
for internal deployments where feature suggestions aren’t relevant, or keep it true
to maintain user engagement with product development.
Docs: New Office API examples
To support diverse use cases, we’ve introduced new document creation samples with practical applications.
- Sequential numbers. Enhance table navigation and row referencing by adding sequential numbering to the first column.
- Formatted table creation. Automatically format tables during creation by adding borders, styling headers, and aligning text within cells. Perfect for reports, database exports, or templates that require a polished and readable layout.
- Spreadsheet with filters. Generate a spreadsheet featuring interactive header filters, enabling users to easily sort and filter data for seamless navigation and analysis.
- Footer with date and company name. Automatically add a footer to your document featuring the current date on one side and your company name on the other. Ideal for standard formatting of memos, reports, letters, and templates.
- Auto-width table. Generate a document with a table that dynamically adjusts column widths to fit the content perfectly.
- Bulleted task list. Generate a document featuring a clear and organized bulleted list, perfect for outlining tasks, steps, or requirements.
Create your free ONLYOFFICE account
View, edit and collaborate on docs, sheets, slides, forms, and PDF files online.