# Device Preauthorization

**URL:** <https://hub.mender.io/t/device-preauthorization/5154>\
**Category:** General Discussions\
**Tags:** mender, preauthorization\
**Created:** [July 29, 2022, 11:00am UTC](https://hub.mender.io/t/device-preauthorization/5154 "2022-07-29T11:00:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KunalK](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@KunalK](https://hub.mender.io/u/KunalK)\
**Post date:** [July 29, 2022, 11:00am UTC](https://hub.mender.io/t/device-preauthorization/5154/1 "2022-07-29T11:00:58Z")

</div>

Hi Team,

We are following below link to preauthorize the mender device.

> **[Preauthorizing devices | Mender documentation](https://docs.mender.io/server-integration/preauthorizing-devices)**
>
> Mender documentation

In our test mender server we are getting the device as pending and instead of accepting it from GUI, we are trying to authorize it using curl command mentioned in above URL. However we are getting same response back and unable to authorize using curl command. Can anyone please guide me on this issue?

Regards,  
Kunal

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [July 29, 2022, 6:50pm UTC](https://hub.mender.io/t/device-preauthorization/5154/2 "2022-07-29T18:50:02Z")

</div>

It sound like your trying to pre-authorize the device after it has already connected rather than before it’s connected, is that correct?
