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

List the lunas of a type

Returns a page of the lunas of one type, by their keys. With search, the page holds only the lunas whose key contains the text in any field. A search reads for a few seconds at most, so a page can come back short with a cursor to carry on from.

GET/_luna/tenants/{tenant}/lunas/{type}
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.

Scopes:data:read
Path parameters
tenantstringrequired

The tenant, by its name.

typestringrequired

The luna type, by its name.

Query parameters
afterstring

The cursor of the last page, as JSON, to read the next one.

limitinteger<int32>

How many lunas to return. 100 when left out, 1000 at most.

min 0
searchstring

Text to look for in the keys.

Responses
200

A page of keys.

keysobject[]required

The key of each luna, with a value for every field of the type's key.

cursorobject | null

Where the next page starts. Send it back as after. It is null on the last page.

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
Parameters
Request
curl -X GET 'https://luna.example.com/_luna/tenants/string/lunas/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "keys": [
    {}
  ],
  "cursor": {}
}

Was this page helpful?