# Give access: invite links and sign-in links

> Open an agent for a client or a user without sharing a password, with a single-use invite link or a short sign-in link into your app.

**Ask your management agent:**

- "Send me a new invite link for the acme agent."


Your clients and users should not need a molted.net account, a token or a password to reach their agent.
molted.net gives you links instead.

## Which link for which case

| You want to… | Use | Valid for | Uses |
|---|---|---|---|
| Send a client a link by email or chat so they open their agent | **Invite link** | 1 to 48 hours (you choose) | Single use |
| Open an agent from your own product, right after your user signs in to it | **Sign-in link** | 10 minutes | Single use |
| Let someone watch the agent's browser | **Live-view link** | While the browser session lasts | — |

Invite and sign-in links work with **Mue** agents, and open in the Mue web app or in your
[branded app](branded-app.md).

## Invite link

```bash
curl -X POST "https://api.<region>.molted.net/v2/instances/<instance>/invite-link" \
  -H "Authorization: Bearer $MOLTED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "applicationId": "<your app id>", "expiresInHours": 48 }'
```

- molted.net sends nothing: you send the link yourself, by email, chat or SMS.
- Opening the page does not use the link up, so link previews and mail scanners do not burn it. It is used
  when the person actually opens their agent.
- Limits: 500 links per account per day, and 20 unused links per instance at a time.

Or ask the [management agent](management-agent.md): "send me an invite link for the Acme agent".

## Sign-in link

```bash
curl -X POST "https://api.<region>.molted.net/v2/instances/<instance>/open-in-application" \
  -H "Authorization: Bearer $MOLTED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "applicationId": "<your app id>" }'
```

Your backend creates the link when your signed-in user clicks "Open my agent", and redirects them to it. The
link is valid 10 minutes and works once.

## What the person gets

Whoever opens an invite or sign-in link gets **full access to that agent**, as its user: they talk to it, see
its conversations and pages, connect their apps. They do not get access to your account, your other agents
or your billing.

## Sharing an agent from inside Mue

A Mue agent can also be shared from its own app with a link and a password. The person gets the same full
access. Use it for a family member or a colleague; use invite links for clients.

## Keep links safe

Treat a link like a key until it is used: send it to the right person only. If a link went to the wrong place,
create a new one and do not use the old one; unused links expire on their own.
