List API keys

List API keys

This endpoint returns the API keys in paginated format.

import requests
 
response = requests.get(
    "https://proxy.webshare.io/api/v2/apikey/", 
    headers={"Authorization": "Token APIKEY"}
)
response.json()
curl "https://proxy.webshare.io/api/v2/apikey/" \
  -H "Authorization: Token APIKEY"

The above command returns JSON structured like this:

{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 1337,
      "key": "abc1234...zzz",
      "label": "server1 key",
      "created_at": "2022-06-14T11:58:10.246406-07:00",
      "updated_at": "2022-06-14T11:58:10.246406-07:00"
    },
    ...
  ]
}

HTTP request

GET https://proxy.webshare.io/api/v2/apikey/