How find tags id to add tags when create topic via API

I wanna create topic via API

How find tags id to add tags when create topic via API

Thank!

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:

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

You should try like tags[]="testtag". It’s an array type.

동작하지 않아요. 태그를 추가할 수 있는 방법이 있을까요?

동작하지 않아요. 제 호출은 다음과 같은 형태입니다.

$body = '{
            "async": false,
            "title": "'.$word.'",
            "raw": "'.$definition.'",
            "category":'.$categoryId.',
            "topic_id": '.$topicsId.',
            "tags[]": "test-tag"
        }';

토픽은 생성되지만, 새로운 토픽에 태그가 생성되거나 추가되지 않아요. @vinothkannans