Create an app key
Makes another publishable key or secret token for a tenant, with its own rules: the origins it works from, how fast it can call, the luna types it reaches and when it expires. A secret token is shown once, in this response.
/_luna/tenants/{tenant}/keysAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
keys:writetenantstringrequiredThe tenant, by its full name.
application/jsonkindstring | nullpublishable, which is the default, or secret. Only read when a key is made.
namestring | nullA name to tell the key by.
originsstring[] | nullThe origins a browser can use the key from, such as https://app.example.com. Empty means any origin.
ratePerSecondnumber<double> | nullThe most requests a second the key can make. More than 0.
typesstring[] | nullThe luna types the key can call. Empty sets no such limit.
expiresIninteger<int64> | nullHow long the key works, in seconds from now.
The new key.
idstringrequiredThe key's id, for changing, rotating or revoking it.
kindstringrequiredpublishable or secret.
keystringrequiredThe key itself. A secret token is shown only this once.
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.