# Can\`t create task with API

**URL:** <https://forum.asana.com/t/can-t-create-task-with-api/40625>\
**Category:** API & Developers\
**Tags:** api, tasks\
**Created:** [28 January 2019 17:37 UTC](https://forum.asana.com/t/can-t-create-task-with-api/40625 "2019-01-28T17:37:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [30 January 2019 07:55 UTC](https://forum.asana.com/t/can-t-create-task-with-api/40625/4 "2019-01-30T07:55:09Z")

</div>

I’m not entirely clear if you’re having trouble with creating a task or with reading already-created tasks; if it’s the former (which I think it is) then here’s an example of creating a task using CURL:

> [@Developer Question On Creating Tasks With Tags](https://forum.asana.com/t/developer-question-on-creating-tasks-with-tags/5109/5):
>
> Read responses and write data are not uniformly symmetrical in the Asana API. To create a task with tags, you only need to supply an array of tag IDs. If you GET a task, the response will include tags as an array of key value pairs. To fix your data, you need to change your tags array to only include tag IDs. Here’s an example request to create a task with two tags: curl --request POST -H 'Content-Type: application/json' -H "Authorization: Bearer 0/abc123456789" \ https://app.asana.com/api/1.0…

Note this sample uses JSON which is how I recommend you do it.

---

_[View the full topic](https://forum.asana.com/t/can-t-create-task-with-api/40625)._
