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

List invitations

Lists an organisation’s open invitations, with the ones that have expired. Invitation codes are never returned.

GET/_luna/orgs/{org}/invites
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:members:write
Path parameters
orgstringrequired

The organisation, by its slug.

Responses
200

The organisation's invitations.

invitesInviteItem[]required
Show properties
Array of InviteItem
idstringrequired
emailstring | null

The address it is for. Null for a link anyone can use.

rolestringrequired
createdMsinteger<int64>required
min 0
expiresMsinteger<int64>required
min 0
expiredbooleanrequired

Whether it has run out. An expired invitation can be sent again.

createdBystringrequired

Who made it: an email address or a key's label.

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

Was this page helpful?