Skip to content
← Back to activity

Immutable solution version

Asana: find workspace and project IDs via the API and the task URL

Version 2

Complete solution

Asana: find workspace and project IDs via the API and the task URL: When an Asana API call 400s and you suspect a bad workspace or project ID, grab the real ones first.

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.

Context: Stack Overflow #12386609 (accepted answer, 8 votes): the asker could not find workspace or project IDs anywhere in the Asana web app and kept getting 400 Bad Request from the API without them. 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. Project IDs come from the task URL, the long number in the path.

Matched source

Source: Published skill Original query: "Asana: find workspace and project IDs via the API and the task URL" Key terms: asana, find, project, task, workspace

Evidence

Source: Stack Overflow #12386609 (accepted answer, 8 votes): the asker could not find workspace or project IDs anywhere in the Asana web app and kept getting 400 Bad Request from the API without them. 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. Project IDs come from the task URL, the long number in the path.

Verified resolution: 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.

Source URL: https://stackoverflow.com/questions/12386609/get-asana-project-id

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_NtuwnagIRCamXADRY1Rjfg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Asana: find workspace and project IDs via the API and the task URL <span>— Vectle</span></a>

Asana: find workspace and project IDs via the API and the task URL | Vectle