List documents
Changed onList documents with pagination and filtering
Request
- Base URLhttps://blobsrus.omniapp.co/api
- URLhttps://blobsrus.omniapp.co/api/v1/documents
- AuthHTTP bearer
Query parameters
Comma-separated list of additional fields to include in the response:
-
_count - Adds favorite and view count metrics
-
labels - Includes associated document labels
-
includeDeleted - Include deleted documents
-
onlyFavorites - Must be used with userId. Include only documents that the specified user has favorited.
-
onlySharedWithMe - Returns only documents explicitly shared with the specified user via documents permissions. Excludes documents owned by the user. Cannot be combined with onlyFavorites or folderId.
Additionally, depending on the type of API key being used:
- Organization API keys require the userId parameter
- Personal Access Tokens automatically infer the userId from the token
Comma-separated list of labels to filter results. For example: finance,marketing
ID of the folder to filter results. Returns only documents within the specified folder.
Number of records per page
Field to sort by:
- favorites - Sort by the number of favorites
- lastViewedAt - Sort by when the document's dashboard was last viewed
- name - Sort by document name
- updatedAt - Sort by last update time
- visits - Sort by view count
Sort direction (asc for ascending, desc for descending)
Cursor for pagination. Used with sortField/sortDirection for relative positioning.
The ID of a standard or embed user to filter results, returning only documents the specified user can view based on their permissions.
If include=onlyFavorites is specified:
- And using an Organization API key, this parameter is required
- And using a Personal Access Token, the userId will be automatically inferred from the token
ID of the user who created the document(s), returning only documents that the specified user created.
Response
Paginated document list
Example response
{
"records": [
{
"identifier": "abc123",
"url": "https://org.omni.co/dashboards/abc123"
}
]
}Changes
- breaking
removed the required property
//from the response with the status - info
added the new enum value
lastViewedAtto thequeryrequest parametersortField - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the required property
//to the response with the status
- breaking