InternetDataInternetData

List

GET
/api/v1/iam/apikeys

Metadata only. A key's secret is never in a list - not here and not in the console - because a list is the response that ends up in logs, caches and support tickets.

retrievable says whether the secret could still be read back at all. A key issued before this product stored secrets recoverably was never kept, so reveal will refuse it permanently; rotating produces one that can be read.

Authorization

BearerAuth apikeys.read
AuthorizationBearer <token>

Authorization: Bearer <key>, with a key from the console. Keys are default-deny: each operation names the scope it needs, and an existing key does not gain an operation until that scope is added to it.

In: header

Scope: apikeys.read

Response Body

application/json

application/json

application/json

curl -X GET "https://internetdata.io/api/v1/iam/apikeys"
{
  "rc": "string",
  "keys": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "key_prefix": "string",
      "created": "2019-08-24T14:15:22Z",
      "expires": "2019-08-24T14:15:22Z",
      "last_used_at": "2019-08-24T14:15:22Z",
      "revoked_at": "2019-08-24T14:15:22Z",
      "allowed_cidrs": [
        "string"
      ],
      "allowed_scopes": [
        "string"
      ],
      "retrievable": true
    }
  ]
}
{
  "rc": "string"
}
{
  "rc": "string"
}