Query Team ID and Organization ID in an API request

team

#1

Hi,
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.

Thanks.


#2

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


#3

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


#4

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

Thanks.


#5

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


#6

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?

Thanks.


#7

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:


#8

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