How to get workspace ID from Asana UI.

The “workspace_gid” in Asana UI and Asana API response are not identical. The “workspace_gid” found in the URL of the Asana UI is different from the API response of GET /workspaces request. For example; GET /workspaces/{workspace_gid} endpoint accepts “gid” from API response whereas if we use the “gid” found in the URL of Asana UI, API throws an error saying “Not a recognized workspace gid”. How can we get the exact “workspace_gid” from Asana UI?

Hi @Raaghul and welcome to the forum!

The only place in the UI I’m aware of where the workspace ID is shown is in the Admin Console URL.

1 Like

@Phil_Seeman
Is my understanding is correct that the IDs found in the Admin Console URL is different from the IDs received from the API response.
And the requests made for any API endpoint accepts only the IDs from the API response and not the ID found in Admin Console URL?

@Raaghul
In my organization, the ID shown in the Admin Console URL matches the ID from the API.

Note, though, that the Admin Console is only available for organizations. For non-organization workspaces, I’m not aware of any place in the UI that displays the workspace ID.

1 Like