List access keys for the current account
const url = 'https://api.aetherpush.com/v1/access-keys';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.aetherpush.com/v1/access-keys \ --header 'Authorization: Bearer <token>'Returns all access keys (sessions and CLI keys) belonging to the
current account. The raw key value is always masked as
(hidden) in the response — there is no way to recover an
existing key. Lost keys must be revoked and recreated.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”List of access keys with name masked.
object
object
The raw key string. Only returned in full on POST /v1/access-keys
(creation). On GET /v1/access-keys it is masked as (hidden).
On GET /v1/access-keys/{name} it is omitted entirely.
Human-friendly identifier for the key.
Mirrors friendlyName. Kept for legacy clients.
IP address that created the key.
Unix timestamp in milliseconds.
Unix timestamp in milliseconds.
True if the key was created by a login flow (vs. CLI/manual creation).
How the credential was created. Absent on credentials that predate
CLI browser login. cli_browser and cli_device credentials are
the ones listed and revoked through /v1/cli/devices.
Stable identifier the CLI generates once per machine.
Human-facing device label shown on the approval screen.
Client that requested the credential.
Client version at the time of authorization.
Operating system and architecture reported by the client.
Example
{ "accessKeys": [ { "name": "(hidden)", "friendlyName": "my-laptop", "description": "my-laptop", "createdBy": "203.0.113.42", "createdTime": 1714867200000, "expires": 1719964800000, "isSession": true } ]}Unauthenticated.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}API keys and named access keys cannot access this endpoint; a login session is required.
object
Human-readable error message.
Unique identifier for the request, also exposed as the X-Request-Id response header.
Example
{ "error": "The requested resource was not found.", "requestId": "req_abc123"}