# API token management in ui

**URL:** https://community.datagerry.com/t/api-token-management-in-ui/522
**Category:** Community Support
**Created:** [July 7, 2023, 2:47pm UTC](https://community.datagerry.com/t/api-token-management-in-ui/522 "2023-07-07T14:47:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hopentux](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@hopentux](https://community.datagerry.com/u/hopentux)
#### Post date: [July 7, 2023, 2:47pm UTC](https://community.datagerry.com/t/api-token-management-in-ui/522/1 "2023-07-07T14:47:15Z")

</div>

Hello Dear DataGerry Team, I do not understand how to generate token for api management. Nothing is related on API in admin datagerry panel ui ? I go on a restheart solution to plug on mongodb for the moment but that is not a great thinks.  
As you see my administrator panel, nothing is related to API.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/datagerry/original/1X/799730e3991749799c451e236b7eb55b8ee8ed59.png)  
Where do i can find / generate token ? I did not find what I search in DataGerry.  
I think that api is running because api url answer.  
Please tell me what can I do to generate and use token ?  
I user docker docker-compose as below 🙂  
[https://docs.datagerry.com/latest/admin\_guide/setup.html#docker-image](https://docs.datagerry.com/latest/admin_guide/setup.html#docker-image)  
My DG version is :  
{  
“title”: “DATAGERRY”,  
“version”: “1.7.2”,  
“connected”: true  
}

Thank you  
Gauthier

---

<div class="post-metadata">

### Author: ![acpfn](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@acpfn](https://community.datagerry.com/u/acpfn)
#### Post date: [December 4, 2023, 3:31pm UTC](https://community.datagerry.com/t/api-token-management-in-ui/522/2 "2023-12-04T15:31:27Z")

</div>

I have got the exact same question. I cannot find a way to test the rest API. I have installed datagerry 2.0.0 rpm on a linux test server and curl -u admin:admin -k “[https://192.168.56.3/rest/objects/](https://192.168.56.3/rest/objects/)” returns {“description”:“The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn’t understand how to supply the credentials required.”,“joke”:“Even a blind squirrel finds a nut once in a while.”,“message”:“”,“response”:“Unauthorized: [https://192.168.56.3/rest/objects/","status](https://192.168.56.3/rest/objects/%22,%22status)”:401}

AC

---

<div class="post-metadata">

### Author: ![adnan.smajic](https://dub1.discourse-cdn.com/flex013/user_avatar/community.datagerry.com/adnan.smajic/32/754_2.png) [@adnan.smajic](https://community.datagerry.com/u/adnan.smajic)
#### Post date: [December 12, 2023, 7:46am UTC](https://community.datagerry.com/t/api-token-management-in-ui/522/3 "2023-12-12T07:46:10Z")

</div>

Hi @hopentux @acpfn,  
the generated token can be found in the mongodb database under cmdb =\> settings.conf =\> \_id=security.

The is currently an issue with the base login which we will try to fix for the next monir release, see more info here in forum [Setup/permissions for ansible inventory - #5 by MiB](https://community.datagerry.com/t/setup-permissions-for-ansible-inventory/543/5) .

BR Adnan
