# Inviting people

> Invite one person by email, or create a link for a verified domain or, deliberately, for anyone. How each kind is protected.

Source: https://docs.ligament.ai/guides/workspaces/inviting-people/

Admins invite people from **Settings › Members** with **Invite member**. There are three kinds of invite. Pick the narrowest one that works:

| Kind | Who can accept | Limits |
| --- | --- | --- |
| **One person, by email** (the default) | Only the invited address, signed in and verified | Works once; expires after 14 days (you can change this, up to 30); can be resent |
| **Anyone at a verified domain** | Anyone signed in with a verified address at one of your [verified domains](https://docs.ligament.ai/guides/identity/domains/index.md) | Expires within 30 days; optional usage limit |
| **Open link** | Anyone who has the link | Expires within 30 days, and has a usage limit |

Only owners and admins can create and revoke invites, and only an owner can invite another owner. Links (domain and open) can’t give the owner or admin role: invite admins by email.

## Invite one person by email

1.  Open **Settings › Members** and select **Invite member**.
2.  Keep **One person, by email** selected and enter their address.
3.  Choose a **Role** and select **Send invite**.

Ligament emails them a link and shows it to you too, so you can send it another way if the email doesn’t arrive. The email says the link only works for that address.

The invite is bound to that address. To accept it, the person must be signed in with that email address (upper or lower case doesn’t matter), and the address must be verified:

-   they confirmed it with the link Ligament emailed when they signed up, or signed in with a magic link, or
-   they signed in with [single sign-on](https://docs.ligament.ai/guides/identity/sso/index.md) through your workspace’s identity provider, at your verified domain.

The invite works once, and it expires 14 days after you send it. If it expires before they accept it, resend it (see [Expired invites and Resend](#expired-invites-and-resend)). To change how long email invites last, select **Change** under the address in the **Invite member** panel and enter 1 to 30 days. The new length applies to invites you send or resend from then on; invites already sent keep their date.

When the right person opens the link, they see the **Join** page (see [Opening an invite](#opening-an-invite)). Once they select **Join**, they’re in with the role you chose and the invite moves to **Accepted**. Opening it again later just offers to open the workspace.

## Opening an invite

Opening an invite link never joins anyone by itself. Chat apps and email clients fetch links to show a preview, and browsers sometimes load pages ahead of time: none of that can make someone a member.

The person first signs in (or signs up) if they aren’t signed in yet, then sees a page that shows:

-   your workspace’s name and logo (the logo set in **Settings › Portal**, if any);
-   the role they’ll get and who invited them;
-   the address they’re signed in with.

They select **Join** to accept. If it’s the wrong account, **Not you? Switch account** signs them out and brings them back to the invite after they sign in again.

\[Screenshot: The Join page: Join Northwind Group, Ada Admin invited you to join as Member, Signed in as uma.lindqvist@northwind-example.com, Role Member, the Join Northwind Group button and Not you? Switch account\]

The page only shows your workspace to someone who can accept the invite. Anyone else gets the same refusal as before, which says nothing about your workspace (see [A forwarded invite doesn’t work](#a-forwarded-invite-doesnt-work)).

### A forwarded invite doesn’t work

If anyone else opens the link (a colleague it was forwarded to, or the invitee signed in with a different account), Ligament doesn’t let them in. They see the address it was meant for, partly hidden, and nothing about your workspace:

```text
This invite was sent to j***@acme.com. Sign in with that address or ask your admin for a new invite.
```

They can select **Sign in with another address** to sign out and come back to the invite with the right account. The invite stays valid for the right person.

Every refused attempt is recorded as **Invite refused** in **Logs › Audit › Security & sign-ins**, with who tried, from which IP address and why (for example `expired`). Accepted invites are recorded as **Invite accepted**, and resent ones as **Invite resent**.

## Create a link for a verified domain

Use this when you want a group of colleagues to join and they all have addresses at a domain you’ve verified, for example everyone at `@northwind-example.com` who should be a member rather than the domain’s default role.

1.  Select **Invite member**, then **Anyone at a verified domain**. The option is only available once you have [verified a domain](https://docs.ligament.ai/guides/identity/domains/index.md).
2.  Choose the **Domain**, the number of days until it **Expires** (1 to 30), and optionally a **Usage limit**.
3.  Choose a **Role** and select **Create link**. Copy the link and share it.

Someone signed in with a verified address at that domain joins when they open the link. Anyone else is refused:

```text
This invite is for people with an @northwind-example.com email address. Sign in with that address or ask your admin for a new invite.
```

If you remove the domain or it stops being verified, the link stops working.

## Create an open link

An open link lets anyone who has it join, whoever passed it on to them. Use it only when you can’t name the people, for example a link you read out at a training session.

1.  Select **Invite member**, then **Open link: anyone with the link**.
2.  Read the warning and tick **I understand: create an open link**.
3.  Set **Expires after (days)**, from 1 to 30, and a **Usage limit**, up to 1,000. Both are required.
4.  Choose a **Role** and select **Create link**.

\[Screenshot: The Invite team member panel with Open link selected: the warning with the I understand checkbox, Expires after 7 days, Usage limit 10, Role Member, and the Create link button\]

Each person who joins uses one use. Someone who is already a member doesn’t use one. When the link runs out or expires, people who open it see:

```text
This invite link has reached its usage limit. Please ask your admin for a new invite.
This invite link has expired. Please ask your admin for a new invite.
```

## See and revoke invites

Pending invites and links are listed with your members. Filter **Status** by **Invitation sent** to see only them, or by **Accepted or revoked invites** to see the invites accepted or revoked in the last 30 days.

| Status | Meaning |
| --- | --- |
| **Expires in 5 days** | An email invite nobody has accepted yet, and how many days it has left (rounded up) |
| **Link** | A domain or open link that still works |
| **Expired** | An email invite or a link past its expiry date |
| **Used up** | A link with no uses left |
| **Accepted** | An email invite the person accepted |
| **Revoked** | An invite or a link an admin revoked (or replaced by inviting the same address again) |

Select an invite to see when it expires, and for a link how many uses are left (for example **3 of 10 left**), and to copy it again.

To revoke an invite or a link, select it and choose **Revoke invite** or **Revoke link**, or tick several and use **Revoke invite** in the toolbar. A revoked link stops working at once:

```text
This invite was revoked. Please ask your admin for a new invite.
```

People who already joined with it stay members. Remove them from **Settings › Members** if you need to.

## Expired invites and Resend

When an email invite expires, the person who opens it sees:

```text
This invite has expired. Ask your admin to resend it.
```

The page says nothing about your workspace, and the attempt is recorded as **Invite refused** (reason `expired`).

To resend an invite, pending or expired, select it in **Settings › Members** and choose **Resend invite**, or tick several and use **Resend invite** in the toolbar. Resending:

-   creates a new link and emails it to the same address again (the panel shows the new link too);
-   stops the old link working at once: whoever opens it is told the link isn’t valid;
-   starts the expiry again from now (14 days, or what you set).

Links (domain and open) can’t be resent: create a new one and revoke the old one.

When this feature arrived, invites that were still pending got 14 days from that day, not from when they were sent.

## People who don’t need an invite

-   People who sign up, or sign in for the first time with single sign-on or a magic link, with an address at one of your verified domains join automatically with the domain’s default role. See [Verified domains](https://docs.ligament.ai/guides/identity/domains/index.md).
-   People your identity provider adds through [SCIM provisioning](https://docs.ligament.ai/guides/identity/scim/index.md) are members as soon as it adds them.

## With the API

Invites need the `members:write` scope (see [API keys](https://docs.ligament.ai/developers/api-keys/index.md)). Send `kind` to create a link; without it, the request is an email invite.

| Body | Creates |
| --- | --- |
| `{"email": "jane@acme.com", "role": "member"}` | An email invite (emailed to that address) |
| `{"kind": "domain", "domain": "acme.com", "role": "member", "expiresInDays": 14}` | A domain link; `maxUses` is optional |
| `{"kind": "open", "role": "member", "expiresInDays": 14, "maxUses": 25}` | An open link |

Use `expiresInDays` (1 to 30) or `expiresAt` (an ISO date-time at most 30 days ahead).

```bash
curl -s -X POST "https://app.ligament.ai/api/invites" \
  -H "authorization: Bearer $LIGAMENT_API_KEY" \
  -H 'content-type: application/json' \
  -d '{"kind": "open", "role": "member", "expiresInDays": 14, "maxUses": 25}'
```

```json
{
  "invite": {
    "id": "cmx6uqfeb0081fm80uy7ta73p",
    "kind": "open",
    "email": null,
    "domain": null,
    "role": "member",
    "token": "<token>",
    "status": "pending",
    "expiresAt": "2026-12-17T01:04:05.747Z",
    "maxUses": 25,
    "useCount": 0,
    "remainingUses": 25
  },
  "link": "https://app.ligament.ai/invite/<token>",
  "emailSent": false
}
```

Invalid links are refused with `422`, for example:

```json
{ "error": "An invite link can last at most 30 days" }
{ "error": "An open invite link needs a usage limit" }
{ "error": "An invite link can't give the admin role: invite admins by email" }
```

`GET /api/invites` lists pending invites and links, expired ones included, with `state` (`pending`, `expired`, `used_up`, `accepted`, `revoked`), `expiresAt`, `expiresInDays`, `remainingUses` and `expired`. Add `?history=1` to include invites accepted or revoked in the last 30 days. The `token` is only returned to admins signed in to the app and to keys with `members:write`; any other key gets `"token": null`. Revoke with `DELETE /api/invites/{id}`.

Resend an email invite (pending or expired) with `POST /api/invites/{id}/resend` and a `members:write` key. The response has the invite with its new `token` and `expiresAt`, the new `link`, and `emailSent`. Links answer `422`.

How long email invites last is a workspace setting: `GET /api/settings/invites` (`settings:read`) returns `{"expiryDays": 14, "defaultExpiryDays": 14, "maxExpiryDays": 30}`; change it with `PUT /api/settings/invites` and `{"expiryDays": 7}` (`settings:write`).

API keys can’t accept invites: a person accepts one in the browser with **Join**.

### With MCP

A key with `members:write`, made by an owner or admin, also gets two tools on the [MCP server](https://docs.ligament.ai/developers/mcp/index.md): `invites_list` (the same list, with `history: true` for past invites) and `invites_resend` (`{"id": "<invite id>"}`).
