# TTNv3 MQTT Mosquitto and AppKey

**URL:** <https://www.thethingsnetwork.org/forum/t/ttnv3-mqtt-mosquitto-and-appkey/46354>\
**Category:** V3 Integrations\
**Created:** [April 4, 2021, 12:22pm UTC](https://www.thethingsnetwork.org/forum/t/ttnv3-mqtt-mosquitto-and-appkey/46354 "2021-04-04T12:22:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![oberon](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/oberon/32/35697_2.png) [@oberon](https://www.thethingsnetwork.org/forum/u/oberon)\
**Post date:** [April 4, 2021, 12:22pm UTC](https://www.thethingsnetwork.org/forum/t/ttnv3-mqtt-mosquitto-and-appkey/46354/1 "2021-04-04T12:22:48Z")

</div>

Hi,  
I’m migrated from v2 to v3.  
Now I follow quick start on MQTT:  
[https://www.thethingsnetwork.org/docs/applications/mqtt/quick-start/index.html](https://www.thethingsnetwork.org/docs/applications/mqtt/quick-start/index.html)  
It wants me to replace AppKey with my Access Key (base64).  
As far as I know (and can see) there is no AppKey created when I created the application.  
Tried the AppKey of my device, but that is not working.  
What am I missing?  
Thnx!

---

<div class="post-metadata">

**Author:** ![oberon](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/oberon/32/35697_2.png) [@oberon](https://www.thethingsnetwork.org/forum/u/oberon)\
**Post date:** [April 4, 2021, 12:48pm UTC](https://www.thethingsnetwork.org/forum/t/ttnv3-mqtt-mosquitto-and-appkey/46354/2 "2021-04-04T12:48:15Z")

</div>

Found it, need to use tenant (@ttn) in username and MQTT api key as password

---

<div class="post-metadata">

**Author:** ![spegg](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/spegg/32/35697_2.png) [@spegg](https://www.thethingsnetwork.org/forum/u/spegg)\
**Post date:** [June 11, 2021, 8:04am UTC](https://www.thethingsnetwork.org/forum/t/ttnv3-mqtt-mosquitto-and-appkey/46354/3 "2021-06-11T08:04:39Z")

</div>

I see the App Key but not the access key in the console

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 11, 2021, 8:17am UTC](https://www.thethingsnetwork.org/forum/t/ttnv3-mqtt-mosquitto-and-appkey/46354/4 "2021-06-11T08:17:17Z")

</div>

Go in to the MQTT Integration …

---

<div class="post-metadata">

**Author:** ![spegg](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/spegg/32/35697_2.png) [@spegg](https://www.thethingsnetwork.org/forum/u/spegg)\
**Post date:** [June 11, 2021, 9:09am UTC](https://www.thethingsnetwork.org/forum/t/ttnv3-mqtt-mosquitto-and-appkey/46354/5 "2021-06-11T09:09:25Z")

</div>

Dear descarts, thank you for the response. I use the “the things stack” be in the MQTT integration but there is only a  
1.) Public address  
2.) Public TLS address  
3) Username  
4) password  
but no acces key…

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 11, 2021, 9:13am UTC](https://www.thethingsnetwork.org/forum/t/ttnv3-mqtt-mosquitto-and-appkey/46354/6 "2021-06-11T09:13:11Z")

</div>

Password = Access Key

It does say **key** twice on that line.

Probably help to read the docs?

[https://www.thethingsindustries.com/docs/integrations/mqtt/](https://www.thethingsindustries.com/docs/integrations/mqtt/)

---

<div class="post-metadata">

**Author:** ![spegg](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/spegg/32/35697_2.png) [@spegg](https://www.thethingsnetwork.org/forum/u/spegg)\
**Post date:** [June 11, 2021, 9:30am UTC](https://www.thethingsnetwork.org/forum/t/ttnv3-mqtt-mosquitto-and-appkey/46354/7 "2021-06-11T09:30:30Z")

</div>

thanks for these importent information!  
I have look for access\_key with “ttn-account.” with first letters.  
Only the password as access key will not work…

```auto
import time
import ttn

app_id = "foo"
access_key = "ttn-account.eiPq8mEeYRL_PNBZsOpPy-O3ABJXYWulODmQGR5PZzg"

```

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 11, 2021, 10:12am UTC](https://www.thethingsnetwork.org/forum/t/ttnv3-mqtt-mosquitto-and-appkey/46354/8 "2021-06-11T10:12:47Z")

</div>

You got that access key from v2.

But you need a Password / API key from v3 to access v3.

Read the documentation - it explains in detail how to do these things - I didn’t find the right section and copy & paste it over for my own personal pleasure.
