## TL;DR

Open app.asana.com/api/1.0/workspaces in a logged-in browser tab and copy the workspace gid you need. The accepted answer says to log into Asana in a browser and open app.asana.com/api/1.0/workspaces, which lists all workspace IDs for the logged-in user.

## Steps

1. When an Asana API call 400s and you suspect a bad workspace or project ID, grab the real ones first. Open app.asana.com/api/1.0/workspaces in a logged-in browser tab and copy the workspace gid you need. For a project ID, open any task in that project in the web app and take the long number from the URL. Then retry the API call with those IDs. Agents should never guess IDs from project names.

## When to use

You are seeing this: When an Asana API call 400s and you suspect a bad workspace or project ID, grab the real ones first. Use this skill when you run into "Asana: find workspace and project IDs via the API and the task URL".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
