Asana · Capability

Asana Task Templates API — Task Templates

Asana Task Templates API — Task Templates. 4 operations. Lead operation: Asana Get multiple task templates. Self-contained Naftiko capability covering one Asana business surface.

Run with Naftiko AsanaTask Templates

What You Can Do

GET
Gettasktemplates — Asana Get multiple task templates
/v1/task-templates
GET
Gettasktemplate — Asana Get a task template
/v1/task-templates/{task-template-gid}
DELETE
Deletetasktemplate — Asana Delete a task template
/v1/task-templates/{task-template-gid}
POST
Instantiatetask — Asana Instantiate a task from a task template
/v1/task-templates/{task-template-gid}/instantiatetask

MCP Tools

asana-get-multiple-task-templates

Asana Get multiple task templates

read-only idempotent
asana-get-task-template

Asana Get a task template

read-only idempotent
asana-delete-task-template

Asana Delete a task template

idempotent
asana-instantiate-task-task-template

Asana Instantiate a task from a task template

Capability Spec

task-templates-task-templates.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Asana Task Templates API — Task Templates
  description: 'Asana Task Templates API — Task Templates. 4 operations. Lead operation: Asana Get multiple task templates.
    Self-contained Naftiko capability covering one Asana business surface.'
  tags:
  - Asana
  - Task Templates
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ASANA_API_KEY: ASANA_API_KEY
capability:
  consumes:
  - type: http
    namespace: task-templates-task-templates
    baseUri: https://app.asana.com/api/1.0
    description: Asana Task Templates API — Task Templates business capability. Self-contained, no shared references.
    resources:
    - name: task_templates
      path: /task_templates
      operations:
      - name: gettasktemplates
        method: GET
        description: Asana Get multiple task templates
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project
          in: query
          type: string
        - name: limit
          in: query
          type: integer
        - name: offset
          in: query
          type: string
    - name: task_templates-task_template_gid
      path: /task_templates/{task_template_gid}
      operations:
      - name: gettasktemplate
        method: GET
        description: Asana Get a task template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: task_template_gid
          in: path
          type: string
          required: true
      - name: deletetasktemplate
        method: DELETE
        description: Asana Delete a task template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: task_template_gid
          in: path
          type: string
          required: true
    - name: task_templates-task_template_gid-instantiateTask
      path: /task_templates/{task_template_gid}/instantiateTask
      operations:
      - name: instantiatetask
        method: POST
        description: Asana Instantiate a task from a task template
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: task_template_gid
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.ASANA_API_KEY}}'
  exposes:
  - type: rest
    namespace: task-templates-task-templates-rest
    port: 8080
    description: REST adapter for Asana Task Templates API — Task Templates. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/task-templates
      name: task-templates
      description: REST surface for task_templates.
      operations:
      - method: GET
        name: gettasktemplates
        description: Asana Get multiple task templates
        call: task-templates-task-templates.gettasktemplates
        with:
          project: rest.project
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/task-templates/{task-template-gid}
      name: task-templates-task-template-gid
      description: REST surface for task_templates-task_template_gid.
      operations:
      - method: GET
        name: gettasktemplate
        description: Asana Get a task template
        call: task-templates-task-templates.gettasktemplate
        with:
          task_template_gid: rest.task_template_gid
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletetasktemplate
        description: Asana Delete a task template
        call: task-templates-task-templates.deletetasktemplate
        with:
          task_template_gid: rest.task_template_gid
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/task-templates/{task-template-gid}/instantiatetask
      name: task-templates-task-template-gid-instantiatetask
      description: REST surface for task_templates-task_template_gid-instantiateTask.
      operations:
      - method: POST
        name: instantiatetask
        description: Asana Instantiate a task from a task template
        call: task-templates-task-templates.instantiatetask
        with:
          task_template_gid: rest.task_template_gid
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: task-templates-task-templates-mcp
    port: 9090
    transport: http
    description: MCP adapter for Asana Task Templates API — Task Templates. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: asana-get-multiple-task-templates
      description: Asana Get multiple task templates
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: task-templates-task-templates.gettasktemplates
      with:
        project: tools.project
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-get-task-template
      description: Asana Get a task template
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: task-templates-task-templates.gettasktemplate
      with:
        task_template_gid: tools.task_template_gid
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-delete-task-template
      description: Asana Delete a task template
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: task-templates-task-templates.deletetasktemplate
      with:
        task_template_gid: tools.task_template_gid
      outputParameters:
      - type: object
        mapping: $.
    - name: asana-instantiate-task-task-template
      description: Asana Instantiate a task from a task template
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: task-templates-task-templates.instantiatetask
      with:
        task_template_gid: tools.task_template_gid
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.