8

I am trying to find out how to get the workspace and project id's from the main web app. I cant seem to find them anywhere.

I am attempting to write a VB.Net app and am trying to get some info out of the API other than 400 Bad request. If I had these id's I might be able to get further

randominstanceOfLivingThing
  • 16,873
  • 13
  • 49
  • 72
Stevo_300
  • 321
  • 5
  • 14
  • 1
    I put https://app.asana.com/api/1.0/workspaces into a browser (after I had logged into Asana) and it gave me all of my workspace ID's – Stevo_300 Sep 12 '12 at 12:45

2 Answers2

16

I put app.asana.com/api/1.0/workspaces into a browser (after I had logged into Asana) and it gave me all of my workspace ID's.

Alex Celeste
  • 12,824
  • 10
  • 46
  • 89
Stevo_300
  • 321
  • 5
  • 14
  • As of October 22 2014 cookie authentication for the API will no longer work, so you can't just put that url in your browser. You will need to use basic authentication with your API key or oauth. The simplest is to "curl -u "your-apikey:" https://app.asana.com/api/1.0/workspaces . See http://developer.asana.com/api-change-to-cookie-auth/ – Marc Oct 26 '14 at 20:00
  • works here as well. I wonder what's the ID we see on main pages... that should be the Organization ID, that should be the same as a Workspace? – igorsantos07 Dec 15 '17 at 01:58
3

The Project ID is most easily found in the URL of your project when using the web interface: https://app.asana.com/0/{PROJECT_ID}/.... It works with API calls such as pointing your browser to https://app.asana.com/api/1.0/projects/{PROJECT_ID}/tasks?assignee=me

hamx0r
  • 4,081
  • 1
  • 33
  • 46