{
  "schemaVersion": "1.0",
  "item": {
    "slug": "asana-api",
    "name": "Asana",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/byungkyu/asana-api",
    "canonicalUrl": "https://clawhub.ai/byungkyu/asana-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/asana-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=asana-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/asana-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/asana-api",
    "agentPageUrl": "https://openagent3.xyz/skills/asana-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/asana-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/asana-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Asana",
        "body": "Access the Asana API with managed OAuth authentication. Manage tasks, projects, workspaces, users, and webhooks for work management."
      },
      {
        "title": "Quick Start",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks?project=PROJECT_GID')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/asana/{native-api-path}\n\nReplace {native-api-path} with the actual Asana API endpoint path. The gateway proxies requests to app.asana.com and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your Asana OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=asana&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'asana'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"asana\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple Asana connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks?project=PROJECT_GID')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Tasks",
        "body": "Get Multiple Tasks\n\nGET /asana/api/1.0/tasks\n\nQuery parameters:\n\nproject - Project GID to filter tasks\nassignee - User GID or \"me\" for assigned tasks\nworkspace - Workspace GID (required if no project specified)\ncompleted_since - ISO 8601 date to filter tasks completed after this date\nopt_fields - Comma-separated list of fields to include\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks?project=1234567890&opt_fields=name,completed,due_on')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"data\": [\n    {\n      \"gid\": \"1234567890\",\n      \"name\": \"Review quarterly report\",\n      \"completed\": false,\n      \"due_on\": \"2025-03-15\"\n    }\n  ]\n}\n\nGet a Task\n\nGET /asana/api/1.0/tasks/{task_gid}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks/1234567890')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate a Task\n\nPOST /asana/api/1.0/tasks\nContent-Type: application/json\n\n{\n  \"data\": {\n    \"name\": \"New task\",\n    \"projects\": [\"PROJECT_GID\"],\n    \"assignee\": \"USER_GID\",\n    \"due_on\": \"2025-03-20\",\n    \"notes\": \"Task description here\"\n  }\n}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'data': {'name': 'Complete API integration', 'projects': ['1234567890'], 'due_on': '2025-03-20'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate a Task\n\nPUT /asana/api/1.0/tasks/{task_gid}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'data': {'completed': True}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks/1234567890', data=data, method='PUT')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nDelete a Task\n\nDELETE /asana/api/1.0/tasks/{task_gid}\n\nGet Tasks from a Project\n\nGET /asana/api/1.0/projects/{project_gid}/tasks\n\nGet Subtasks\n\nGET /asana/api/1.0/tasks/{task_gid}/subtasks\n\nCreate Subtask\n\nPOST /asana/api/1.0/tasks/{task_gid}/subtasks\nContent-Type: application/json\n\n{\n  \"data\": {\n    \"name\": \"Subtask name\",\n    \"assignee\": \"USER_GID\",\n    \"due_on\": \"2025-03-20\"\n  }\n}\n\nSearch Tasks (Premium)\n\nNote: This endpoint requires an Asana Premium subscription.\n\nGET /asana/api/1.0/workspaces/{workspace_gid}/tasks/search\n\nQuery parameters:\n\ntext - Text to search for\nassignee.any - Filter by assignees\nprojects.any - Filter by projects\ncompleted - Filter by completion status"
      },
      {
        "title": "Projects",
        "body": "Get Multiple Projects\n\nGET /asana/api/1.0/projects\n\nQuery parameters:\n\nworkspace - Workspace GID\nteam - Team GID\nopt_fields - Comma-separated list of fields\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/projects?workspace=1234567890&opt_fields=name,owner,due_date')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"data\": [\n    {\n      \"gid\": \"1234567890\",\n      \"name\": \"Q1 Marketing Campaign\",\n      \"owner\": {\n        \"gid\": \"0987654321\",\n        \"name\": \"Alice Johnson\"\n      },\n      \"due_date\": \"2025-03-31\"\n    }\n  ]\n}\n\nGet a Project\n\nGET /asana/api/1.0/projects/{project_gid}\n\nCreate a Project\n\nPOST /asana/api/1.0/projects\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'data': {'name': 'New Project', 'workspace': '1234567890', 'notes': 'Project description'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/projects', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate a Project\n\nPUT /asana/api/1.0/projects/{project_gid}\n\nDelete a Project\n\nDELETE /asana/api/1.0/projects/{project_gid}"
      },
      {
        "title": "Workspaces",
        "body": "Get Multiple Workspaces\n\nGET /asana/api/1.0/workspaces\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/workspaces')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"data\": [\n    {\n      \"gid\": \"1234567890\",\n      \"name\": \"Acme Corp\",\n      \"is_organization\": true\n    }\n  ]\n}\n\nGet a Workspace\n\nGET /asana/api/1.0/workspaces/{workspace_gid}\n\nUpdate a Workspace\n\nPUT /asana/api/1.0/workspaces/{workspace_gid}\n\nAdd User to Workspace\n\nPOST /asana/api/1.0/workspaces/{workspace_gid}/addUser\n\nRemove User from Workspace\n\nPOST /asana/api/1.0/workspaces/{workspace_gid}/removeUser"
      },
      {
        "title": "Users",
        "body": "Get Multiple Users\n\nGET /asana/api/1.0/users\n\nQuery parameters:\n\nworkspace - Workspace GID to filter users\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/users?workspace=1234567890&opt_fields=name,email')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"data\": [\n    {\n      \"gid\": \"1234567890\",\n      \"name\": \"Alice Johnson\",\n      \"email\": \"alice.johnson@acme.com\"\n    }\n  ]\n}\n\nGet Current User\n\nGET /asana/api/1.0/users/me\n\nGet a User\n\nGET /asana/api/1.0/users/{user_gid}\n\nGet Users in a Team\n\nGET /asana/api/1.0/teams/{team_gid}/users\n\nGet Users in a Workspace\n\nGET /asana/api/1.0/workspaces/{workspace_gid}/users"
      },
      {
        "title": "Webhooks",
        "body": "Get Multiple Webhooks\n\nGET /asana/api/1.0/webhooks\n\nQuery parameters:\n\nworkspace - Workspace GID (required)\nresource - Resource GID to filter by\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/webhooks?workspace=1234567890')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Webhook\n\nNote: Asana verifies the target URL is reachable and responds with a 200 status during webhook creation.\n\nPOST /asana/api/1.0/webhooks\nContent-Type: application/json\n\n{\n  \"data\": {\n    \"resource\": \"PROJECT_OR_TASK_GID\",\n    \"target\": \"https://example.com/webhook\",\n    \"filters\": [\n      {\n        \"resource_type\": \"task\",\n        \"action\": \"changed\",\n        \"fields\": [\"completed\", \"due_on\"]\n      }\n    ]\n  }\n}\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'data': {'resource': '1234567890', 'target': 'https://example.com/webhook'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/webhooks', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse:\n\n{\n  \"data\": {\n    \"gid\": \"1234567890\",\n    \"resource\": {\n      \"gid\": \"1234567890\",\n      \"name\": \"Q1 Project\"\n    },\n    \"target\": \"https://example.com/webhook\",\n    \"active\": true\n  }\n}\n\nGet a Webhook\n\nGET /asana/api/1.0/webhooks/{webhook_gid}\n\nUpdate a Webhook\n\nPUT /asana/api/1.0/webhooks/{webhook_gid}\n\nDelete a Webhook\n\nDELETE /asana/api/1.0/webhooks/{webhook_gid}\n\nReturns 200 OK with empty data on success."
      },
      {
        "title": "Pagination",
        "body": "Asana uses cursor-based pagination. Use offset for pagination:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks?project=1234567890&limit=50&offset=OFFSET_TOKEN')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nResponse includes next_page when more results exist:\n\n{\n  \"data\": [...],\n  \"next_page\": {\n    \"offset\": \"eyJ0eXBlIjoib2Zmc2V0IiwidmFsdWUiOjUwfQ\",\n    \"path\": \"/tasks?project=1234567890&limit=50&offset=eyJ0eXBlIjoib2Zmc2V0IiwidmFsdWUiOjUwfQ\",\n    \"uri\": \"https://app.asana.com/api/1.0/tasks?project=1234567890&limit=50&offset=eyJ0eXBlIjoib2Zmc2V0IiwidmFsdWUiOjUwfQ\"\n  }\n}"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch(\n  'https://gateway.maton.ai/asana/api/1.0/tasks?project=1234567890',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/asana/api/1.0/tasks',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    params={'project': '1234567890'}\n)\ndata = response.json()"
      },
      {
        "title": "Notes",
        "body": "Resource IDs (GIDs) are strings\nTimestamps are in ISO 8601 format\nUse opt_fields to specify which fields to return\nWorkspaces are the highest-level organizational unit\nOrganizations are specialized workspaces representing companies\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping."
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Bad request or missing Asana connection401Invalid or missing Maton API key403Forbidden - insufficient permissions404Resource not found429Rate limited4xx/5xxPassthrough error from Asana API"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with asana. For example:\n\nCorrect: https://gateway.maton.ai/asana/api/1.0/tasks\nIncorrect: https://gateway.maton.ai/api/1.0/tasks"
      },
      {
        "title": "Resources",
        "body": "Asana API Documentation\nAPI Reference\nLLM Reference\nMaton Community\nMaton Support"
      }
    ],
    "body": "Asana\n\nAccess the Asana API with managed OAuth authentication. Manage tasks, projects, workspaces, users, and webhooks for work management.\n\nQuick Start\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks?project=PROJECT_GID')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/asana/{native-api-path}\n\n\nReplace {native-api-path} with the actual Asana API endpoint path. The gateway proxies requests to app.asana.com and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your Asana OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=asana&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'asana'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https://connect.maton.ai/?session_token=...\",\n    \"app\": \"asana\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nSpecifying Connection\n\nIf you have multiple Asana connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks?project=PROJECT_GID')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\nAPI Reference\nTasks\nGet Multiple Tasks\nGET /asana/api/1.0/tasks\n\n\nQuery parameters:\n\nproject - Project GID to filter tasks\nassignee - User GID or \"me\" for assigned tasks\nworkspace - Workspace GID (required if no project specified)\ncompleted_since - ISO 8601 date to filter tasks completed after this date\nopt_fields - Comma-separated list of fields to include\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks?project=1234567890&opt_fields=name,completed,due_on')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"data\": [\n    {\n      \"gid\": \"1234567890\",\n      \"name\": \"Review quarterly report\",\n      \"completed\": false,\n      \"due_on\": \"2025-03-15\"\n    }\n  ]\n}\n\nGet a Task\nGET /asana/api/1.0/tasks/{task_gid}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks/1234567890')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate a Task\nPOST /asana/api/1.0/tasks\nContent-Type: application/json\n\n{\n  \"data\": {\n    \"name\": \"New task\",\n    \"projects\": [\"PROJECT_GID\"],\n    \"assignee\": \"USER_GID\",\n    \"due_on\": \"2025-03-20\",\n    \"notes\": \"Task description here\"\n  }\n}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'data': {'name': 'Complete API integration', 'projects': ['1234567890'], 'due_on': '2025-03-20'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate a Task\nPUT /asana/api/1.0/tasks/{task_gid}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'data': {'completed': True}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks/1234567890', data=data, method='PUT')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nDelete a Task\nDELETE /asana/api/1.0/tasks/{task_gid}\n\nGet Tasks from a Project\nGET /asana/api/1.0/projects/{project_gid}/tasks\n\nGet Subtasks\nGET /asana/api/1.0/tasks/{task_gid}/subtasks\n\nCreate Subtask\nPOST /asana/api/1.0/tasks/{task_gid}/subtasks\nContent-Type: application/json\n\n{\n  \"data\": {\n    \"name\": \"Subtask name\",\n    \"assignee\": \"USER_GID\",\n    \"due_on\": \"2025-03-20\"\n  }\n}\n\nSearch Tasks (Premium)\n\nNote: This endpoint requires an Asana Premium subscription.\n\nGET /asana/api/1.0/workspaces/{workspace_gid}/tasks/search\n\n\nQuery parameters:\n\ntext - Text to search for\nassignee.any - Filter by assignees\nprojects.any - Filter by projects\ncompleted - Filter by completion status\nProjects\nGet Multiple Projects\nGET /asana/api/1.0/projects\n\n\nQuery parameters:\n\nworkspace - Workspace GID\nteam - Team GID\nopt_fields - Comma-separated list of fields\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/projects?workspace=1234567890&opt_fields=name,owner,due_date')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"data\": [\n    {\n      \"gid\": \"1234567890\",\n      \"name\": \"Q1 Marketing Campaign\",\n      \"owner\": {\n        \"gid\": \"0987654321\",\n        \"name\": \"Alice Johnson\"\n      },\n      \"due_date\": \"2025-03-31\"\n    }\n  ]\n}\n\nGet a Project\nGET /asana/api/1.0/projects/{project_gid}\n\nCreate a Project\nPOST /asana/api/1.0/projects\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'data': {'name': 'New Project', 'workspace': '1234567890', 'notes': 'Project description'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/projects', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nUpdate a Project\nPUT /asana/api/1.0/projects/{project_gid}\n\nDelete a Project\nDELETE /asana/api/1.0/projects/{project_gid}\n\nWorkspaces\nGet Multiple Workspaces\nGET /asana/api/1.0/workspaces\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/workspaces')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"data\": [\n    {\n      \"gid\": \"1234567890\",\n      \"name\": \"Acme Corp\",\n      \"is_organization\": true\n    }\n  ]\n}\n\nGet a Workspace\nGET /asana/api/1.0/workspaces/{workspace_gid}\n\nUpdate a Workspace\nPUT /asana/api/1.0/workspaces/{workspace_gid}\n\nAdd User to Workspace\nPOST /asana/api/1.0/workspaces/{workspace_gid}/addUser\n\nRemove User from Workspace\nPOST /asana/api/1.0/workspaces/{workspace_gid}/removeUser\n\nUsers\nGet Multiple Users\nGET /asana/api/1.0/users\n\n\nQuery parameters:\n\nworkspace - Workspace GID to filter users\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/users?workspace=1234567890&opt_fields=name,email')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"data\": [\n    {\n      \"gid\": \"1234567890\",\n      \"name\": \"Alice Johnson\",\n      \"email\": \"alice.johnson@acme.com\"\n    }\n  ]\n}\n\nGet Current User\nGET /asana/api/1.0/users/me\n\nGet a User\nGET /asana/api/1.0/users/{user_gid}\n\nGet Users in a Team\nGET /asana/api/1.0/teams/{team_gid}/users\n\nGet Users in a Workspace\nGET /asana/api/1.0/workspaces/{workspace_gid}/users\n\nWebhooks\nGet Multiple Webhooks\nGET /asana/api/1.0/webhooks\n\n\nQuery parameters:\n\nworkspace - Workspace GID (required)\nresource - Resource GID to filter by\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/webhooks?workspace=1234567890')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nCreate Webhook\n\nNote: Asana verifies the target URL is reachable and responds with a 200 status during webhook creation.\n\nPOST /asana/api/1.0/webhooks\nContent-Type: application/json\n\n{\n  \"data\": {\n    \"resource\": \"PROJECT_OR_TASK_GID\",\n    \"target\": \"https://example.com/webhook\",\n    \"filters\": [\n      {\n        \"resource_type\": \"task\",\n        \"action\": \"changed\",\n        \"fields\": [\"completed\", \"due_on\"]\n      }\n    ]\n  }\n}\n\n\nExample:\n\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'data': {'resource': '1234567890', 'target': 'https://example.com/webhook'}}).encode()\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/webhooks', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse:\n\n{\n  \"data\": {\n    \"gid\": \"1234567890\",\n    \"resource\": {\n      \"gid\": \"1234567890\",\n      \"name\": \"Q1 Project\"\n    },\n    \"target\": \"https://example.com/webhook\",\n    \"active\": true\n  }\n}\n\nGet a Webhook\nGET /asana/api/1.0/webhooks/{webhook_gid}\n\nUpdate a Webhook\nPUT /asana/api/1.0/webhooks/{webhook_gid}\n\nDelete a Webhook\nDELETE /asana/api/1.0/webhooks/{webhook_gid}\n\n\nReturns 200 OK with empty data on success.\n\nPagination\n\nAsana uses cursor-based pagination. Use offset for pagination:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/asana/api/1.0/tasks?project=1234567890&limit=50&offset=OFFSET_TOKEN')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\n\nResponse includes next_page when more results exist:\n\n{\n  \"data\": [...],\n  \"next_page\": {\n    \"offset\": \"eyJ0eXBlIjoib2Zmc2V0IiwidmFsdWUiOjUwfQ\",\n    \"path\": \"/tasks?project=1234567890&limit=50&offset=eyJ0eXBlIjoib2Zmc2V0IiwidmFsdWUiOjUwfQ\",\n    \"uri\": \"https://app.asana.com/api/1.0/tasks?project=1234567890&limit=50&offset=eyJ0eXBlIjoib2Zmc2V0IiwidmFsdWUiOjUwfQ\"\n  }\n}\n\nCode Examples\nJavaScript\nconst response = await fetch(\n  'https://gateway.maton.ai/asana/api/1.0/tasks?project=1234567890',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\n\nPython\nimport os\nimport requests\n\nresponse = requests.get(\n    'https://gateway.maton.ai/asana/api/1.0/tasks',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    params={'project': '1234567890'}\n)\ndata = response.json()\n\nNotes\nResource IDs (GIDs) are strings\nTimestamps are in ISO 8601 format\nUse opt_fields to specify which fields to return\nWorkspaces are the highest-level organizational unit\nOrganizations are specialized workspaces representing companies\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping.\nError Handling\nStatus\tMeaning\n400\tBad request or missing Asana connection\n401\tInvalid or missing Maton API key\n403\tForbidden - insufficient permissions\n404\tResource not found\n429\tRate limited\n4xx/5xx\tPassthrough error from Asana API\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with asana. For example:\nCorrect: https://gateway.maton.ai/asana/api/1.0/tasks\nIncorrect: https://gateway.maton.ai/api/1.0/tasks\nResources\nAsana API Documentation\nAPI Reference\nLLM Reference\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/asana-api",
    "publisherUrl": "https://clawhub.ai/byungkyu/asana-api",
    "owner": "byungkyu",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/asana-api",
    "downloadUrl": "https://openagent3.xyz/downloads/asana-api",
    "agentUrl": "https://openagent3.xyz/skills/asana-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/asana-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/asana-api/agent.md"
  }
}