Base URL
All Company Docs endpoints are available under:Authorization header:
OrganizationId claim. Nymble Commerce uses this claim to enforce organization-level isolation — you only ever see your organization’s folders and documents.
Folder management
Folders let you organize documents into a hierarchy. You can nest folders to any depth by settingparentId when you create a child folder.
Create a folder
/ and \ characters are not allowed.
Build a nested folder structure
Use thefolderId returned from a parent folder creation as the parentId for child folders:
List all folders
Delete a folder
204 No Content on success. You must remove all documents and subfolders from a folder before you can delete it — attempting to delete a non-empty folder returns a 400 error.
Uploading documents
Upload files using a multipartPOST request. Include the file in the file field and optionally specify a target folderId.
- Maximum file size: 50 MB
- Files are scanned before storage; uploads that fail the virus scan are rejected
- Omit
folderId(or sendnull) to place the file at the root level
Listing and retrieving documents
List all documents in your organization, or filter to a specific folder:Downloading documents
To stream a file’s binary content directly (for example, to trigger a browser download), use the download endpoint:Content-Type and a Content-Disposition: attachment; filename="..." header.
Moving documents
Move a single document to a different folder:targetFolderId to null to move the document back to the root level. Returns 204 No Content on success.
Move multiple documents at once using the bulk endpoint:
CDN URL expiry and refresh
ThecdnUrl on every document is a signed URL that expires after 1 hour. If you cache document metadata and display the URL later, you must refresh it first.
Storage statistics
Check your organization’s storage usage at any time:Bulk operations
Use bulk endpoints to perform batch actions in a single API call, reducing round-trips and improving performance.Bulk delete
Delete up to 100 documents at once:bulk-delete and bulk-move accept a maximum of 100 document IDs per request. Split larger batches into multiple calls.