Skip to main content
GET
/
folder
/
v1
/
libraries
/
{libraryId}
/
foldersAndDocuments
cURL
curl --request GET \
  --url https://aodocs.altirnao.com/api/folder/v1/libraries/{libraryId}/foldersAndDocuments \
  --header 'Authorization: Bearer <token>'
{
  "folders": [
    {
      "editable": true,
      "editableDocuments": true,
      "fileId": "<string>",
      "folderAodocsId": "<string>",
      "folderDefinitionId": "<string>",
      "folderIsRoot": true,
      "kind": "<string>",
      "libraryId": "<string>",
      "libraryName": "<string>",
      "name": "<string>",
      "parentFolderAodocsId": "<string>",
      "parentFolderDriveId": "<string>",
      "parentFolderIsRoot": true,
      "permittedOperations": [
        "DELETE"
      ],
      "resourceKey": "<string>",
      "restrictedDownload": true,
      "subfolders": "<array>"
    }
  ],
  "kind": "<string>",
  "nextPageOffset": 123,
  "total": 123,
  "trashedDocuments": [
    {
      "classId": "<string>",
      "className": "<string>",
      "className_i18n": "<string>",
      "deleteReason": "<string>",
      "deletedTime": "2023-11-07T05:31:56Z",
      "deletingUser": {
        "email": "<string>",
        "kind": "<string>",
        "name": "<string>",
        "nonGoogle": true,
        "thumbnailPictureUrl": "<string>"
      },
      "documentId": "<string>",
      "folders": [
        {
          "editable": true,
          "editableDocuments": true,
          "fileId": "<string>",
          "folderAodocsId": "<string>",
          "folderDefinitionId": "<string>",
          "folderIsRoot": true,
          "kind": "<string>",
          "libraryId": "<string>",
          "libraryName": "<string>",
          "name": "<string>",
          "parentFolderAodocsId": "<string>",
          "parentFolderDriveId": "<string>",
          "parentFolderIsRoot": true,
          "permittedOperations": [
            "DELETE"
          ],
          "resourceKey": "<string>",
          "restrictedDownload": true,
          "subfolders": "<array>"
        }
      ],
      "kind": "<string>",
      "libraryId": "<string>",
      "title": "<string>"
    }
  ],
  "trashedFolders": [
    {
      "deletedTime": "2023-11-07T05:31:56Z",
      "deletingUser": {
        "email": "<string>",
        "kind": "<string>",
        "name": "<string>",
        "nonGoogle": true,
        "thumbnailPictureUrl": "<string>"
      },
      "folderId": "<string>",
      "folderName": "<string>",
      "folders": [
        {
          "editable": true,
          "editableDocuments": true,
          "fileId": "<string>",
          "folderAodocsId": "<string>",
          "folderDefinitionId": "<string>",
          "folderIsRoot": true,
          "kind": "<string>",
          "libraryId": "<string>",
          "libraryName": "<string>",
          "name": "<string>",
          "parentFolderAodocsId": "<string>",
          "parentFolderDriveId": "<string>",
          "parentFolderIsRoot": true,
          "permittedOperations": [
            "DELETE"
          ],
          "resourceKey": "<string>",
          "restrictedDownload": true,
          "subfolders": "<array>"
        }
      ],
      "kind": "<string>",
      "libraryId": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

libraryId
string
required

The ID of the library

Query Parameters

referenceFolderId
string
ascendingOrder
boolean
limit
integer<int32>
default:50
securityCode
string

The security code

nextPageOffset
integer<int32>
domain
string

The G Suite domain

Response

200 - application/json

A ApiTrashedDocumentAndFolderList response

folders
object[]
kind
string
nextPageOffset
integer<int32>
total
integer<int32>
trashedDocuments
object[]
trashedFolders
object[]