Query Team ID and Organization ID in an API request



I am new to Asana. I’m trying to access asana API.
My aim is to create a Project under a specific team. Is it possible?
Please help me with this.



That’s definitely possible. What language/environment will you be developing in?


Thanks for replying Phil.
I am using salesforce to access Asana API.


Sorry I missed one information. I am using developing the program in java to access Asana API. I need to know the endpoint where i can hit to get team Id.

All i have at this moment:

  1. A Team Name
  2. PAT



There is a Java client library available here: https://github.com/Asana/java-asana/

The endpoint for creating a project is documented here: https://asana.com/developers/api-reference/projects#create

To get a list of teams in an organization including their IDs, use: https://asana.com/developers/api-reference/teams#get


Thanks for sharing those docs. That’s helps a lot.
Beside that can you please tell me how to get the organization id in an api call? Maybe it’s a silly question but i really don’t have any idea.

I am using endpoint : https://app.asana.com/api/1.0/workspace to get the workspace details. Is that workspace Id and organization ID same?



Yep, it’s the same! An organization is really just a workspace with some special properties to it, like the ability to have teams within the organization. You can see some more about the distinctions here:


I really appreciate your help. Thank you so much :slight_smile: