# Como encontrar o ID das tags para adicioná-las ao criar um tópico via API

**URL:** <https://meta.discourse.org/t/how-find-tags-id-to-add-tags-when-create-topic-via-api/84387>\
**Category:** Product Support\
**Created:** [Abril 2, 2018, 3:31pm UTC](https://meta.discourse.org/t/how-find-tags-id-to-add-tags-when-create-topic-via-api/84387 "2018-04-02T15:31:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dpausp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dpausp/32/95291_2.png) [@dpausp](https://meta.discourse.org/u/dpausp)\
**Post date:** [Maio 13, 2018, 8:50pm UTC](https://meta.discourse.org/t/how-find-tags-id-to-add-tags-when-create-topic-via-api/84387/3 "2018-05-13T20:50:21Z")

</div>

> [@vinothkannans](#):
>
> AFAIK you don’t need tag ids. You can just pass the tag names.

Does anyone know if this should work in 2.0.0.beta9? Tags are not mentioned in the API docs for `POST /posts`.  
I tried to create topics with `tags="testtag"` but got a HTTP 500 error.

From the logs:

```plaintext
NoMethodError (undefined method `-' for "testtag":String)                                                                                                                                                                                       
/var/www/discourse/lib/discourse_tagging.rb:220:in `tags_for_saving' 

```

---

_[View the full topic](https://meta.discourse.org/t/how-find-tags-id-to-add-tags-when-create-topic-via-api/84387)._
