Skip to main content

How to get folders in the main workspace via the API?

  • November 9, 2023
  • 1 reply
  • 275 views

PluginGenie
Forum|alt.badge.img

Is it possible to get the folder names in the main workspace via the API?

I’ve tried the following, and none seem to work:

The following two queries return no data:
query { folders (workspace_ids: "null") {id name}}
query { folders (workspace_ids: -1) {id name}}

The following query returns all the folders in all workspaces:
query { folders (workspace_ids: null) {id name}}

1 reply

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • November 12, 2023

Hello there @PluginGenie,

You were close!

You can use a query like this one:

{
  folders(workspace_ids: [null]) {
    name
    id
  }
}

Hope that helps!

Cheers,
Matias