---
updatedAt: 2026-05-11T06:52:42.000Z
agentTools:
  projectIndex: https://platform.simpplr.com/llms.txt
---

# Get files

This API lets you search for files in different scopes like across sites, within a site, within a content or a particular file.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "1.0.0",
    "title": "Simpplr User API Documentation",
    "description": ""
  },
  "x-proxy-enabled": true,
  "tags": [
    {
      "name": "Files",
      "description": "Everything about Files"
    }
  ],
  "servers": [
    {
      "url": "https://{endpoint}/v1",
      "variables": {
        "env": {
          "default": "app"
        },
        "endpoint": {
          "default": "platform.app.simpplr.com"
        }
      }
    }
  ],
  "paths": {
    "/content/files/list": {
      "post": {
        "operationId": "getFilesFromSiteUser",
        "tags": [
          "Files"
        ],
        "summary": "Get files",
        "description": "This API lets you search for files in different scopes like across sites, within a site, within a content or a particular file.",
        "requestBody": {
          "description": "Get Files using site ID, content ID, or file ID",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetFiles"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "nextPageToken": {
                          "type": "string",
                          "example": "41"
                        },
                        "canCreateFolder": {
                          "type": "boolean",
                          "example": true
                        },
                        "canUpload": {
                          "type": "boolean",
                          "example": true
                        },
                        "listOfItems": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "example": "System Folder"
                              },
                              "title": {
                                "type": "string",
                                "example": "Site Videos"
                              },
                              "provider": {
                                "type": "string",
                                "example": "native_video"
                              },
                              "driveType": {
                                "type": "string",
                                "example": null
                              },
                              "owner": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "example": "Sourya kaushik"
                                  },
                                  "id": {
                                    "type": "string",
                                    "example": "0502f3c5-7142-4892-bb28-7d3de6c711cb"
                                  }
                                }
                              },
                              "onlyPDFDownload": {
                                "type": "boolean",
                                "example": false
                              },
                              "modifiedAtDateTime": {
                                "type": "string",
                                "example": "2024-04-22T06:07:30.587Z"
                              },
                              "modifiedAt": {
                                "type": "string",
                                "example": "2024-04-22T06:07:30.587Z"
                              },
                              "createdAt": {
                                "type": "string",
                                "example": "2025-08-25T15:34:28.099Z"
                              },
                              "filepk": {
                                "type": "string",
                                "example": "2549994"
                              },
                              "listOfSite": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "access": {
                                      "type": "string",
                                      "example": "public"
                                    },
                                    "img": {
                                      "type": "string"
                                    },
                                    "isListed": {
                                      "type": "boolean",
                                      "example": true
                                    },
                                    "isPrivate": {
                                      "type": "boolean",
                                      "example": false
                                    },
                                    "name": {
                                      "type": "string",
                                      "example": "Sopan Test"
                                    },
                                    "siteId": {
                                      "type": "string",
                                      "example": "39096bec-2115-48bd-94d0-d9c40c74b70d"
                                    }
                                  }
                                }
                              },
                              "isDownloadableOniOS": {
                                "type": "boolean",
                                "example": true
                              },
                              "id": {
                                "type": "string",
                                "example": "6248d5e2-8bc7-41ba-9419-2b0ae2b81bae"
                              },
                              "permissions": {
                                "type": "string",
                                "example": "readwrite"
                              },
                              "isDir": {
                                "type": "boolean",
                                "example": true
                              },
                              "isSystemDir": {
                                "type": "boolean",
                                "example": true
                              },
                              "canDelete": {
                                "type": "string"
                              },
                              "canMove": {
                                "type": "boolean",
                                "example": false
                              },
                              "canChangeName": {
                                "type": "boolean",
                                "example": false
                              },
                              "canSetPermissions": {
                                "type": "boolean",
                                "example": false
                              },
                              "canUnlink": {
                                "type": "boolean",
                                "example": false
                              },
                              "isLinkedFolder": {
                                "type": "boolean",
                                "example": false
                              },
                              "isExternal": {
                                "type": "boolean",
                                "example": false
                              },
                              "fileExtension": {
                                "type": "string",
                                "example": "webp"
                              },
                              "isImage": {
                                "type": "boolean",
                                "example": true
                              },
                              "isAudio": {
                                "type": "boolean",
                                "example": false
                              },
                              "thumbnailImg": {
                                "type": "string",
                                "nullable": true,
                                "example": "https://example.com/content/r/file-id?ts=timestamp"
                              },
                              "downloadUrl": {
                                "type": "string",
                                "example": "https://example.com/content/r/file-id?ts=timestamp"
                              },
                              "fileId": {
                                "type": "string",
                                "example": "74079ea4-b33e-440a-9fa9-965bf2110a04"
                              },
                              "size": {
                                "type": "string",
                                "example": "13304"
                              },
                              "version": {
                                "type": "integer",
                                "example": 1
                              },
                              "description": {
                                "type": "string",
                                "example": ""
                              },
                              "canFavorite": {
                                "type": "boolean",
                                "example": true
                              },
                              "canLike": {
                                "type": "boolean",
                                "example": true
                              },
                              "isLiked": {
                                "type": "boolean",
                                "example": false
                              },
                              "isFavorited": {
                                "type": "boolean",
                                "example": false
                              },
                              "canEditDescription": {
                                "type": "boolean",
                                "example": false
                              },
                              "canCreateNewVersion": {
                                "type": "boolean",
                                "example": false
                              },
                              "canDownload": {
                                "type": "boolean",
                                "example": true
                              },
                              "altText": {
                                "type": "string",
                                "nullable": true,
                                "example": ""
                              },
                              "previewUrl": {
                                "type": "string",
                                "nullable": true,
                                "example": "https://example.com/content/r/file-id?t=pv&site_id=encoded-site-id"
                              },
                              "signedThumbnailImg": {
                                "type": "string",
                                "nullable": true,
                                "example": "https://example.com/signed-file/restricted/file-id?ts=timestamp&isImgOpt=true&Policy=..."
                              },
                              "signedDownloadUrl": {
                                "type": "string",
                                "example": "https://example.com/signed-file/restricted/file-id?ts=timestamp&isImgOpt=true&Policy=..."
                              },
                              "signedPreviewUrl": {
                                "type": "string",
                                "nullable": true,
                                "example": "https://example.com/signed-file/restricted/file-id?site_id=encoded-site-id&ts=timestamp&isImgOpt=false&Policy=..."
                              }
                            }
                          },
                          "example": [
                            {
                              "type": "System Folder",
                              "title": "Site Videos",
                              "provider": "native_video",
                              "driveType": null,
                              "owner": {
                                "name": "Sourya kaushik",
                                "id": "0502f3c5-7142-4892-bb28-7d3de6c711cb"
                              },
                              "onlyPDFDownload": false,
                              "modifiedAtDateTime": "2024-04-22T06:07:30.587Z",
                              "modifiedAt": "2024-04-22T06:07:30.587Z",
                              "listOfSite": [
                                {
                                  "access": "public",
                                  "img": null,
                                  "isListed": true,
                                  "isPrivate": false,
                                  "name": "Sopan Test",
                                  "siteId": "39096bec-2115-48bd-94d0-d9c40c74b70d"
                                }
                              ],
                              "isDownloadableOniOS": true,
                              "id": "6248d5e2-8bc7-41ba-9419-2b0ae2b81bae",
                              "permissions": "readwrite",
                              "isDir": true,
                              "isSystemDir": true,
                              "canDelete": null,
                              "canMove": false,
                              "canChangeName": false,
                              "canSetPermissions": false,
                              "canUnlink": false,
                              "isLinkedFolder": false
                            },
                            {
                              "type": "System Folder",
                              "title": "Feed files",
                              "provider": "intranet",
                              "driveType": null,
                              "owner": {
                                "name": "Sourya kaushik",
                                "id": "0502f3c5-7142-4892-bb28-7d3de6c711cb"
                              },
                              "onlyPDFDownload": false,
                              "modifiedAtDateTime": "2024-04-25T09:51:52.133Z",
                              "modifiedAt": "2024-04-25T09:51:52.133Z",
                              "listOfSite": [
                                {
                                  "access": "public",
                                  "img": null,
                                  "isListed": true,
                                  "isPrivate": false,
                                  "name": "Sopan Test",
                                  "siteId": "39096bec-2115-48bd-94d0-d9c40c74b70d"
                                }
                              ],
                              "isDownloadableOniOS": true,
                              "id": "e61f7ef7-1421-4222-bcea-782d311c179e",
                              "permissions": "read",
                              "isDir": true,
                              "isSystemDir": true,
                              "canDelete": null,
                              "canMove": false,
                              "canChangeName": false,
                              "canSetPermissions": false,
                              "canUnlink": false,
                              "isLinkedFolder": false
                            },
                            {
                              "type": "System Folder",
                              "title": "Content files",
                              "provider": "intranet",
                              "driveType": null,
                              "owner": {
                                "name": "Sourya kaushik",
                                "id": "0502f3c5-7142-4892-bb28-7d3de6c711cb"
                              },
                              "onlyPDFDownload": false,
                              "modifiedAtDateTime": "2024-05-02T09:02:09.829Z",
                              "modifiedAt": "2024-05-02T09:02:09.829Z",
                              "listOfSite": [
                                {
                                  "access": "public",
                                  "img": null,
                                  "isListed": true,
                                  "isPrivate": false,
                                  "name": "Sopan Test",
                                  "siteId": "39096bec-2115-48bd-94d0-d9c40c74b70d"
                                }
                              ],
                              "isDownloadableOniOS": true,
                              "id": "e773ff2c-b392-42a0-b30d-4461d097e31e",
                              "permissions": "read",
                              "isDir": true,
                              "isSystemDir": true,
                              "canDelete": null,
                              "canMove": false,
                              "canChangeName": false,
                              "canSetPermissions": false,
                              "canUnlink": false,
                              "isLinkedFolder": false
                            }
                          ]
                        },
                        "listOfParents": {
                          "type": "array",
                          "example": []
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "seq_id": {
                            "type": "integer",
                            "example": 0
                          },
                          "field_name": {
                            "type": "string",
                            "example": "additional_property"
                          },
                          "error_code": {
                            "type": "integer",
                            "example": 1007
                          },
                          "message": {
                            "type": "string",
                            "example": "Request body contains additional properties: siteI"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GetFiles": {
        "type": "object",
        "properties": {
          "size": {
            "type": "integer",
            "description": "Maximum number of results to return",
            "minimum": 1,
            "maximum": 250,
            "default": 16,
            "example": 16
          },
          "siteId": {
            "type": "string",
            "description": "ID of the Site to search for",
            "example": "d096db67-954a-4ff5-94a7-ccc437f2fd81"
          },
          "contentId": {
            "type": "string",
            "description": "ID of the content associated with the file",
            "example": "d096db67-954a-4ff5-94a7-ccc437f2fd81"
          },
          "term": {
            "type": "string",
            "description": "Search term",
            "example": ""
          },
          "context": {
            "type": "string",
            "description": "Context of the search",
            "example": "siteFiles"
          },
          "provider": {
            "type": "string",
            "description": "Provider of the search",
            "default": "intranet",
            "enum": [
              "intranet",
              "googledrive",
              "sharepoint",
              "onedrive",
              "box",
              "native_video",
              "dropbox"
            ],
            "example": "intranet"
          },
          "sortBy": {
            "type": "string",
            "description": "Technique for sorting results",
            "enum": [
              "alphabetical",
              "createdNewest",
              "createdOldest",
              "modifiedNewest",
              "modifiedOldest"
            ],
            "example": "createdNewest"
          },
          "filter": {
            "type": "string",
            "description": "Filter criteria for search",
            "enum": [
              "favorites",
              "write_folders",
              "this_week",
              "this_month",
              "last_week",
              "recents",
              "inactive_authors"
            ]
          },
          "authorId": {
            "type": "string",
            "format": "uuid",
            "description": "Filter files by author ID"
          },
          "reportType": {
            "type": "string",
            "enum": [
              "file_author_report_generation"
            ],
            "description": "Specifies which bulk operation report to generate. Use 'file_author_report_generation' for file author change CSV export."
          },
          "directory": {
            "type": "string",
            "description": "Id(uuid) of the directory to search in"
          },
          "id": {
            "type": "string",
            "description": "ID of the file"
          },
          "nextPageToken": {
            "type": "string",
            "description": "Token for fetching the next page of results",
            "example": "15"
          },
          "extensions": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "pattern": "^[a-zA-Z0-9_-]+$",
              "maxLength": 10,
              "minLength": 1
            },
            "minItems": 1,
            "maxItems": 20,
            "uniqueItems": true,
            "description": "Array of file extensions to search for (e.g., ['pdf', 'docx', 'png']). Do not include dots in extension names."
          }
        },
        "required": [
          "provider"
        ]
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Authorize error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Missing/Invalid authentication token"
                }
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden error",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error_code": {
                  "type": "integer",
                  "example": 2001
                },
                "message": {
                  "type": "string",
                  "example": "Something went wrong, please try again"
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "apiAuthSecurity": {
        "type": "oauth2",
        "description": "This API uses OAuth 2 with the implicit grant flow.",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://platform.test.simpplr.xyz/v1",
            "scopes": {
              "read": "read data",
              "write": "create/update data",
              "everything": "allow full access"
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "apiAuthSecurity": []
    }
  ]
}
```