api-reference > graphql

Folders

Last updated Invalid Date

Our GraphQL endpoint allows you to easily query for Folders.

First, you need the Folder id, which you can find in the Tipe dashboard URL of the folder. Open a folder and look in the address bar. In the following example, the id comes after folder/, 5ade080a358150001370dc4b.

app.tipe.io/5ade080a358150001370dc49/folder/5ade080a358150001370dc4b

You can also get the Folder ID from outside the Folder by clicking on the Options icon with three dots and selecting Copy Folder ID. For more information on finding a Folder ID, see Copy Folder ID in the Folders documentation.

Next, replace YOUR_FOLDER_ID with the Folder ID, or the alphanumeric string that comes immediately after folder/.

graphql
query API {
  Folder(id: "YOUR_FOLDER_ID") { //<-- here
    //     id
    //     name
    // documents {
    //     _meta {
    //       id
    //     }
    //    // depending on your Templates you need to request certain fields
    //     ... on Page {
    //       title // your custom Block API ID
    //     }
    // }
    // folders {
    //     id
    //     name
    // }
  }
}

Still have questions?

If these GraphQL docs haven't answered all your Tipe GraphQL questions, email us at support@tipe.io or start a chat with us in the Tipe Dashboard. We're always working on our docs and welcome suggestions.