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

List organisations

Lists the organisations your account is a member of, with your role in each. An API key cannot list organisations.

GET/_luna/orgs
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

Your organisations.

orgsOrgWithRole[]required
Show properties
Array of OrgWithRole
idstringrequired
slugstringrequired

The name paths use for it. Luna makes it from the name.

namestringrequired
createdMsinteger<int64>required
min 0
rolestring | null

Your role: owner, admin, developer, viewer or billing. An API key has none.

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/orgs' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "orgs": [
    {
      "id": "string",
      "slug": "string",
      "name": "string",
      "createdMs": 0,
      "role": "string"
    }
  ]
}

Was this page helpful?