Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. You need your Asana API token for authentication. You can find it in My Profile Settings > Apps > Manage Developer Apps > Personal Access Tokens.

  2. API base URL for Asana is https://app.asana.com/api/1.0.

  1. Set Up Authentication

    • Asana uses Bearer Token Authentication. You will set this up in Bearer Token.

  2. Create your task

    • Set the request type to POST.

    • Set the URL to https://app.asana.com/api/1.0/tasks.

    • Select Authentication from step 1.

    • Switch to the 'Body' tab, select 'raw', and then from the dropdown on the right, choose 'JSON'

    • Fill in the details of your task. The body of your Post request should have the following structure, replacing the <project-id> and <Other-details> with actual information:

      json

      { "data": { "workspace": "<workspace-id>", "name": "<task-name>", "notes": "<task-description>", "assignee": "<assignee-id>", "due_on": "<due-date>", "projects": ["<project-id-1>", "<project-id-2>"] } }

      Note: <workspace-id><assignee-id>, and <project-id> can be found in the URL of your Asana board. If a field is not required, you can leave it out.

    • Click 'Send'. Your task will be created in Asana and will return a 201 status code if successful.