# Create a tag in Asana using python

**URL:** <https://forum.asana.com/t/create-a-tag-in-asana-using-python/97067>\
**Category:** API & Developers\
**Tags:** tags\
**Created:** [13 October 2020 11:09 UTC](https://forum.asana.com/t/create-a-tag-in-asana-using-python/97067 "2020-10-13T11:09:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bel1](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/bel1/32/63207_2.png) [@Bel1](https://forum.asana.com/u/Bel1)\
**Post date:** [13 October 2020 11:09 UTC](https://forum.asana.com/t/create-a-tag-in-asana-using-python/97067/1 "2020-10-13T11:09:07Z")

</div>

import asana

result = client.tags.create\_tag({‘field’: ‘value’, ‘field’: ‘value’}, opt\_pretty=True)

//body parameter

{  
“data”: {  
“color”: “light-green”,  
“followers”: [  
“12345”,  
“42563”  
],  
“name”: “hub-acc-[FirstName][LastName]”,  
“workspace”: “12345”  
}  
}

//201 Response

{  
“data”: {  
“gid”: “12345”,  
“resource\_type”: “tag”,  
“color”: “light-green”,  
“followers”: [  
{  
“gid”: “12345”,  
“resource\_type”: “user”,  
“name”: “Rahul Kumar”  
}  
],  
“name”: “hub-acc-[FirstName][LastName]”,  
“permalink\_url”:  
“workspace”: {  
“gid”: “12345”,  
“resource\_type”: “workspace”,  
“name”: “Rahul Kumar”  
}  
}  
}

Can you help me and edit the correct code with this please^^

---

<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:** [13 October 2020 13:48 UTC](https://forum.asana.com/t/create-a-tag-in-asana-using-python/97067/3 "2020-10-13T13:48:58Z")

</div>

@Bel1 - please edit your posts to remove those access tokens immediately! By posting them here, you’ve just given the whole world total access to all of your Asana data!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 19:06 UTC](https://forum.asana.com/t/create-a-tag-in-asana-using-python/97067/4 "2025-05-30T19:06:26Z")

</div>

Closed on 30 May 2025 19:06 UTC


