Listing Folders

How to list folders in your account

To list your folders, you can use the following query:

query{
  folders(
    limit: 60,
    page: 1, 
    type: DEFAULT  # DEFAULT | GROUP | ORGANIZATION
  ){
    data{
      id
      name
      slug
      context
      path
      children_counter
      created_at
      updated_at
    }
    total
  }
}
circle-info

You can check what each of these parameters means directly in the full GraphQL API documentation, in the Docs menu of Altairarrow-up-right. If you're not sure how to do that, check out our tutorial on Using Altair.

circle-info

If Altair doesn't help you integrate with the API, check out some examples of how to make these requests in other ways: https://graphql.org/graphql-js/graphql-clients/arrow-up-right

Last updated