Asana · Arazzo Workflow

Asana Attach a File to a New Task

Version 1.0.0

Create a task and attach an external file URL to it as a reference.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CollaborationProductivityProject ManagementProjectTask ManagementTaskWorkflowsArazzoWorkflows

Provider

asana

Workflows

attach-file-to-task
Create a task and attach an external file URL to it.
Creates a task, then attaches an external file to it by URL.
2 steps inputs: attachmentName, attachmentUrl, taskName, workspaceGid outputs: attachmentGid, taskGid
1
createTask
Create the task in the workspace.
2
attachFile
Attach an external file to the task by URL.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Asana Attach a File to a New Task
  summary: Create a task and attach an external file URL to it as a reference.
  description: >-
    A reference-gathering flow. The workflow creates a task in a workspace and
    then attaches an external file to it by URL using the external attachment
    subtype, so the task carries its supporting material. Each request is written
    inline so the flow can be read and executed without opening the underlying
    OpenAPI description. The attachment is sent as multipart form data with the
    external url, as the create-attachment endpoint requires.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-900.30
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-900.30
      capability_name: Project Management
      spec: asana-tasks-api-openapi.yml
      confidence: 0.85
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: attachmentsApi
  url: ../openapi/asana-attachments-api-openapi.yml
  type: openapi
- name: tasksApi
  url: ../openapi/asana-tasks-api-openapi.yml
  type: openapi
workflows:
- workflowId: attach-file-to-task
  summary: Create a task and attach an external file URL to it.
  description: >-
    Creates a task, then attaches an external file to it by URL.
  inputs:
    type: object
    required:
    - workspaceGid
    - taskName
    - attachmentName
    - attachmentUrl
    properties:
      workspaceGid:
        type: string
        description: Workspace gid the task belongs to.
      taskName:
        type: string
        description: Name of the task to create.
      attachmentName:
        type: string
        description: Display name of the external attachment.
      attachmentUrl:
        type: string
        description: The external URL to attach to the task.
  steps:
  - stepId: createTask
    description: Create the task in the workspace.
    operationId: createTask
    requestBody:
      contentType: application/json
      payload:
        data:
          name: $inputs.taskName
          workspace: $inputs.workspaceGid
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      taskGid: $response.body#/data/gid
  - stepId: attachFile
    description: Attach an external file to the task by URL.
    operationId: createAttachmentForObject
    requestBody:
      contentType: multipart/form-data
      payload:
        parent: $steps.createTask.outputs.taskGid
        resource_subtype: external
        name: $inputs.attachmentName
        url: $inputs.attachmentUrl
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      attachmentGid: $response.body#/data/gid
  outputs:
    taskGid: $steps.createTask.outputs.taskGid
    attachmentGid: $steps.attachFile.outputs.attachmentGid

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/asana-attach-file-to-task-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.