Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

List account keys

Lists the keys of your account, newest first. You must be logged in. Key values are never returned.

GET/_luna/auth/keys
Authorization
AuthorizationBearer token · headerrequired

An account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.

Responses
200

The account's keys.

keysAccountKeyItem[]required

The account's keys, newest first.

Show properties
Array of AccountKeyItem
idstringrequired
namestringrequired
accessstringrequired

read or write.

loginbooleanrequired

Whether luna login made the key.

createdMsinteger<int64>required
min 0
expiresMsinteger<int64> | null
min 0
lastUsedMsinteger<int64> | null

When the key was last used, in milliseconds since the Unix epoch.

min 0
default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Authorization
Request
curl -X GET 'https://luna.example.com/_luna/auth/keys' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "keys": [
    {
      "id": "string",
      "name": "string",
      "access": "string",
      "login": true,
      "createdMs": 0,
      "expiresMs": 0,
      "lastUsedMs": 0
    }
  ]
}

Was this page helpful?