Skip to main content
This API reference documents the endpoints for managing Document Collections and Files in Domo from within a Domo app.
Note: All code examples below are tested and match the working Domo app UI. Use domo.* methods for all API calls except File upload/download, which require fetch for binary or FormData support.

Get File by Path

Method: GET
Endpoint: /domo/files/v1/filesets/{documentCollectionId}/path?path={filePath}
Path Parameters:
Response:

Get File by Id

Method: GET
Endpoint: /domo/files/v1/filesets/{documentCollectionId}/files/{fileId}
Path Parameters:
Response:

Download File by Id

Method: GET
Endpoint: /domo/files/v1/filesets/{documentCollectionId}/files/{fileId}/download
Path Parameters:
Note: Use fetch for File downloads. domo.get does not support binary downloads.
Response:
  • Returns the File contents as a download (binary/text stream).

Query Files

Method: POST
Endpoint: /domo/files/v1/filesets/{documentCollectionId}/query
Path Parameters: Request Body Parameters:
Response:

Upload File

Method: POST
Endpoint: /domo/files/v1/filesets/{documentCollectionId}/files
Path Parameters:
Note: Use fetch for file uploads. Always set the file content type to text/plain for text files, as in the app code.
Response:

Search Files in Document Collection

Method: POST
Endpoint: /domo/files/v1/filesets/{documentCollectionId}/files/search
Path Parameters: Query Parameters: Request Body Parameters: Filter Object Properties: FieldSort Object Properties: DateFilter Object Properties:
Response:

Delete Files by Path

Method: DELETE
Endpoint: /domo/files/v1/filesets/{documentCollectionId}/path?path={filePath}
Path Parameters:
Response:

Delete File by Id

Method: DELETE
Endpoint: /domo/files/v1/filesets/{documentCollectionId}/files/{fileId}
Path Parameters:
Response:

Search Document Collections

Method: POST
Endpoint: /domo/files/v1/filesets/search
Query Parameters:
Note: To list all Document Collections, send an empty object as the body. To filter, provide filter parameters in the body.
Request Body Parameters: Filter Object Properties: FieldSort Object Properties: DateFilter Object Properties:
Response:

Create Document Collection

Method: POST
Endpoint: /domo/files/v1/filesets
Request Body Parameters: ConnectorContext Object Properties:
Response:

Get Document Collection by Id

Method: GET Endpoint: /domo/files/v1/filesets/{documentCollectionId} Path Parameters:
Response:

Update Document Collection by Id

Method: POST
Endpoint: /domo/files/v1/filesets/{documentCollectionId}
Path Parameters: Request Body Parameters:
Response:

Delete Document Collection by Id

Method: DELETE
Endpoint: /domo/files/v1/filesets/{documentCollectionId}
Path Parameters:
Response: