# Cannot add tags via the API

**URL:** <https://meta.discourse.org/t/cannot-add-tags-via-the-api/44120>\
**Category:** Support\
**Created:** [12 Maggio 2016, 2:10pm UTC](https://meta.discourse.org/t/cannot-add-tags-via-the-api/44120 "2016-05-12T14:10:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [12 Maggio 2016, 2:10pm UTC](https://meta.discourse.org/t/cannot-add-tags-via-the-api/44120/1 "2016-05-12T14:10:59Z")

</div>

I’m trying to add tags via the API, but I’m doing something wrong.

Here’s a good request made from the website:

```plaintext
PUT https://example.com/t/ueber-die-kategorie-organisation/74 HTTP/1.1
Host: example.com
Connection: keep-alive
Content-Length: 53
Accept: */*
Origin: https://example.com
X-CSRF-Token: ■■■■■■■■■■■■■■■■■■■■■■
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
DNT: 1
Referer: https://example.com/t/ueber-die-kategorie-organisation/74
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,de;q=0.6
Cookie: ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■

tags%5B%5D=archiv-organisation&tags%5B%5D=archiv-2015

```

Here’s what I am trying to do:

```plaintext
PUT https://example.com/t/74?api_key=■■■■■■■■■■■■■■■■■■■■&api_username=system HTTP/1.1
host: example.com
content-type: application/x-www-form-urlencoded
content-length: 22
Connection: close

tags%5B%5D=archiv-2015

```

The server responds with `403 Forbidden`.

Does anyone see what I’m doing wrong?

---

_[View the full topic](https://meta.discourse.org/t/cannot-add-tags-via-the-api/44120)._
