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
  }
}

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

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/

Last updated

Was this helpful?