List
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.readAuthorization: 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"
}Members GET
Read-only. Adding or removing a member is an invitation flow with email in the middle rather than a POST, and modelling it as one here would promise something this API does not do.
Create POST
Creates a key and returns its secret. This is the ONLY response that ever carries the secret, and only because this is the moment it comes into existence. Store it now.