I want to get the list of active projects only from GET WorkspaceProjects but it's giving me both active and inactive projects

Post Title: Trying to retrieving only ACTIVE projects using GET WorkspaceProjects.

Your Question/Topic: Per the documentation, I should be able to use the parameter “active” to get active, inactive and both. I specified the field to be “true” but I get all the projects. I only pass in 3 parameters: “active”, “sort_pinned” and “page”.

The 1st question is:

  1. Does this API endpoint support returning active projects only?
  2. If (1) above is true, how should I set the parameter?

Hi Anna! Can you share which GET query in specific you’re using?

I’m using the GET WorkspaceProjects API.
https://api.track.toggl.com/api/v9/workspaces/{workspaceID}/projects

I’m using python.

projectsURL='https://api.track.toggl.com/api/v9/workspaces/{my project workspace ID}/projects'

pageNo = 1
header2 = {
	"content-type": "applicaiton/json",
	"Authorization": f'Basic {encoded_token}',
	"active": "True",
	"sort_pinned": "False",
	"page": str(pageNo)
}

data = requests.get(projectsURL, headers=header2)