Jump to content

how can i use api key


Recommended Posts

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 by smiley (see edit history)
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...