---
search:
  tags:
    - Members
    - POST
seo:
  description: >-
    Invites an email address to an organisation. An address has one open
    invitation at… Reference for the POST /_luna/orgs/{org}/invites endpoint in
    the Luna API.
sidebar:
  label: Invite a member
  badge: POST
title: Invite a member
type: openapi-operation
---
Invites an email address to an organisation. An address has one open invitation at a time, so a new one replaces the last. The invitation lasts seven days and its code is shown once. Only an owner can invite an owner.

`POST /_luna/orgs/{org}/invites`

**Request body** (`application/json`, required)

- `email` (string | null) — The address to invite. Leave it out for a link that anyone can use once.
- `role` (string | null) — The role the new member gets. \`viewer\` when left out.

Request body example:

```json
{
  "email": null,
  "role": null
}
```

**Responses**

- `200` — The new invitation.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "id": "string",
  "invite": "string",
  "path": "string",
  "expiresMs": 0
}
```
