Report how can i use api key in General OS Kazoo Questions Posted August 19, 2023 · Edited August 19, 2023 by smiley (see edit history) i get APIkey ``` API_KEY=$(curl -v -X GET \ -H "X-Auth-Token: $auth_token" \ http://$SERVER:8000/v2/accounts/$account_id/api_key | jq -r .data.api_key) echo $API_KEY ``` but how can i get devices list with API key i already know how to do with token . but i want to use api key ``` curl -v -X GET \ -H "Content-Type: application/json" \ -H "X-Auth-Token:$API_KEY" \ http://$SERVER:8000/v2/accounts/$account_id/devices | jq ``` this is not working
how can i use api key
in General OS Kazoo Questions
Posted · Edited by smiley (see edit history)
i get APIkey
```
API_KEY=$(curl -v -X GET \
-H "X-Auth-Token: $auth_token" \
http://$SERVER:8000/v2/accounts/$account_id/api_key | jq -r .data.api_key)
echo $API_KEY
```
but how can i get devices list with API key
i already know how to do with token . but i want to use api key
```
curl -v -X GET \
-H "Content-Type: application/json" \
-H "X-Auth-Token:$API_KEY" \
http://$SERVER:8000/v2/accounts/$account_id/devices | jq
```
this is not working