Troubleshooting "Workspace not found" Error When Creating Docs via API Mutation

I’m trying to use the create_doc mutation to create a new doc in a specific workspace on Monday.com, but I’m encountering an error: Workspace not found. I’ve confirmed that the workspace_id is correct and matches the workspace where I want the doc to be created. Here’s my mutation:

mutation {
  create_doc(location: {workspace: {workspace_id: 12345678, name: "New Doc", kind: private}}) {
    id
  }
}

Despite following the steps in the (site.developer.monday.com/api-reference/reference/docs), I still get this error. I’ve also verified that the workspace exists and that I have the appropriate permissions to create docs in it.

Could there be a problem with the workspace_id format or the workspace’s visibility settings? Is there something I’m missing in the mutation setup? Any help or tips would be greatly appreciated.

1 reply