# \[API\] Cleaner way to create a tag?

**URL:** https://meta.discourse.org/t/api-cleaner-way-to-create-a-tag/70526
**Category:** Development
**Tags:** rest-api
**Created:** [September 21, 2017, 4:52pm UTC](https://meta.discourse.org/t/api-cleaner-way-to-create-a-tag/70526 "2017-09-21T16:52:27Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![syl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/syl/32/98883_2.png) [@syl](https://meta.discourse.org/u/syl)
#### Post date: [November 23, 2019, 11:22pm UTC](https://meta.discourse.org/t/api-cleaner-way-to-create-a-tag/70526/10 "2019-11-23T23:22:23Z")

</div>

> [@jack2](#):
>
> Right now, in order to create a tag with the API, I create a temporary topic with the new tag, then delete the temporary topic. Is there a cleaner way?

Yes there is: create a **tag group** populated with the tag you want to create (see the API [here](https://docs.discourse.org/#tag/Tags/paths/~1tag_groups.json/post)).

---

_[View the full topic](https://meta.discourse.org/t/api-cleaner-way-to-create-a-tag/70526)._
