smiley Posted August 19, 2023 Report Posted August 19, 2023 (edited) 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 Edited August 19, 2023 by smiley (see edit history) Quote
Administrators mc_ Posted August 21, 2023 Administrators Report Posted August 21, 2023 You still swap the account token for an auth token: https://docs.2600hz.com/dev/applications/crossbar/doc/api_authentication/ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.