Asana
asana · Developer Tools
This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).
Authentication
Sample Requests
Returns the compact records for all attachments on the object. There are three possible `parent` values for this request: `project`, `project_brief`, and `task`. For a project, an attachment refers to a file uploaded to the "Key resources" section in the project Overview. For a project brief, an at
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/asana.com/1.0/attachments?limit=10&offset=0&parent=example&opt_fields=example&opt_pretty=true"
import requests
params = {
"limit": "10",
"offset": "0",
"parent": "example",
"opt_fields": "example",
"opt_pretty": "true"
}
response = requests.get(
"https://api.apis.guru/v2/specs/asana.com/1.0/attachments",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/asana.com/1.0/attachments');
url.searchParams.set('limit', '10');
url.searchParams.set('offset', '0');
url.searchParams.set('parent', 'example');
url.searchParams.set('opt_fields', 'example');
url.searchParams.set('opt_pretty', 'true');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/asana.com/1.0/attachments")
q := baseURL.Query()
q.Set("limit", "10")
q.Set("offset", "0")
q.Set("parent", "example")
q.Set("opt_fields", "example")
q.Set("opt_pretty", "true")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/asana.com/1.0/attachments")
uri.query = URI.encode_www_form({
"limit" => "10",
"offset" => "0",
"parent" => "example",
"opt_fields" => "example",
"opt_pretty" => "true"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/asana.com/1.0/attachments?" . http_build_query([
"limit" => "10",
"offset" => "0",
"parent" => "example",
"opt_fields" => "example",
"opt_pretty" => "true"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns compact goal relationship records.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/asana.com/1.0/goal_relationships?opt_fields=example&opt_pretty=true&supported_goal=example&resource_subtype=example"
import requests
params = {
"opt_fields": "example",
"opt_pretty": "true",
"supported_goal": "example",
"resource_subtype": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/asana.com/1.0/goal_relationships",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/asana.com/1.0/goal_relationships');
url.searchParams.set('opt_fields', 'example');
url.searchParams.set('opt_pretty', 'true');
url.searchParams.set('supported_goal', 'example');
url.searchParams.set('resource_subtype', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/asana.com/1.0/goal_relationships")
q := baseURL.Query()
q.Set("opt_fields", "example")
q.Set("opt_pretty", "true")
q.Set("supported_goal", "example")
q.Set("resource_subtype", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/asana.com/1.0/goal_relationships")
uri.query = URI.encode_www_form({
"opt_fields" => "example",
"opt_pretty" => "true",
"supported_goal" => "example",
"resource_subtype" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/asana.com/1.0/goal_relationships?" . http_build_query([
"opt_fields" => "example",
"opt_pretty" => "true",
"supported_goal" => "example",
"resource_subtype" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns compact goal records.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/asana.com/1.0/goals?team=example&limit=10&offset=0&project=example&portfolio=example&workspace=example&opt_fields=example&opt_pretty=true&time_periods=example&is_workspace_level=true"
import requests
params = {
"team": "example",
"limit": "10",
"offset": "0",
"project": "example",
"portfolio": "example",
"workspace": "example",
"opt_fields": "example",
"opt_pretty": "true",
"time_periods": "example",
"is_workspace_level": "true"
}
response = requests.get(
"https://api.apis.guru/v2/specs/asana.com/1.0/goals",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/asana.com/1.0/goals');
url.searchParams.set('team', 'example');
url.searchParams.set('limit', '10');
url.searchParams.set('offset', '0');
url.searchParams.set('project', 'example');
url.searchParams.set('portfolio', 'example');
url.searchParams.set('workspace', 'example');
url.searchParams.set('opt_fields', 'example');
url.searchParams.set('opt_pretty', 'true');
url.searchParams.set('time_periods', 'example');
url.searchParams.set('is_workspace_level', 'true');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/asana.com/1.0/goals")
q := baseURL.Query()
q.Set("team", "example")
q.Set("limit", "10")
q.Set("offset", "0")
q.Set("project", "example")
q.Set("portfolio", "example")
q.Set("workspace", "example")
q.Set("opt_fields", "example")
q.Set("opt_pretty", "true")
q.Set("time_periods", "example")
q.Set("is_workspace_level", "true")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/asana.com/1.0/goals")
uri.query = URI.encode_www_form({
"team" => "example",
"limit" => "10",
"offset" => "0",
"project" => "example",
"portfolio" => "example",
"workspace" => "example",
"opt_fields" => "example",
"opt_pretty" => "true",
"time_periods" => "example",
"is_workspace_level" => "true"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/asana.com/1.0/goals?" . http_build_query([
"team" => "example",
"limit" => "10",
"offset" => "0",
"project" => "example",
"portfolio" => "example",
"workspace" => "example",
"opt_fields" => "example",
"opt_pretty" => "true",
"time_periods" => "example",
"is_workspace_level" => "true"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Asana?
Asana is a Developer Tools API. Developers commonly use developer tools APIs for:
- automating code review and quality checks
- integrating CI/CD pipelines and build systems
- managing feature flags and A/B tests
- monitoring errors and application performance
- generating and validating test data
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Asana is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?