List API Keys
$client->listApiKeys()
About this method
You are currently reading the JavaScript API client v4 documentation. Check our migration guide to learn how to upgrade from v3 to v4. You can still access the v3 documentation.
You are currently reading the Ruby API client v2 documentation. Check our migration guide to learn how to upgrade from v1 to v2. You can still access the v1 documentation.
Get the full list of API Keys.
Examples
List existing keys
1
$client->listApiKeys();
Parameters
No parameters for this method.
Response
In this section we document the JSON response returned by the API. Each language will encapsulate this response inside objects specific to the language and/or the implementation. So the actual type in your language might differ from what is documented.
JSON format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"keys": [
{
"value": "0eb3e6308abccdf9b67d70ddacb418b4",
"createdAt": 1513462891,
"acl": ["search"],
"validity": 0
},
{
"value": "90dff5755e694f341fe68aaf6e41a6d4"
"createdAt":1470244596,
"acl":["search"],
"validity":0,
"description": "Search-only API Key"
},
{
"value": "d6a23f212331969e41493051ede9865f",
"createdAt": 1513610838,
"acl": ["search"],
"validity": 0
}
]
}
keys
|
list of
|
keys âž” (api key)
value
|
string
The api key value |
createdAt
|
number
The timestamp at which the key has been created |
acl
|
list
List of permissions the key contains. The possible acls are:
|
validity
|
integer
Timestamp of the date at which the key expires. (0 means it will not expire automatically). |
indexes
|
list
The list of targeted indices, if any. |
description
|
string
Description of the key. |