Create an account key
Creates a key that acts as your account, with the roles you hold when the key is used. You must be logged in: a session or the key luna login made. The key is shown once.
/_luna/auth/keysAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
application/jsonnamestringrequiredaccessstringrequiredread or write. A read key cannot change anything.
expiresIninteger<int64> | nullSeconds from now until the key expires. Leave it out for a key that does not expire.
The new key.
idstringrequiredkeystringrequiredThe key itself (la_…). Luna keeps only its hash.
expiresMsinteger<int64> | nullWhen the key expires, in milliseconds since the Unix epoch.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.