---
title: "Create a caregiver invite link"
method: POST
path: "/api/vega/invite"
tags: ["Account"]
---

# Create a caregiver invite link

`POST /api/vega/invite`

## Request

- Base URL: `https://getmyluna.app`
- URL: `https://getmyluna.app/api/vega/invite`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `luna_session`

Admin only. A 48-hour invite link a partner, grandparent or nanny uses at `/join` to get their own login for this family.

## Response `200`

Success

- InviteResponse
  - `code` string, required
  - `join_url` string, required
  - `expires_at` string, required
  - `expires_in_hours` integer, required

## Other responses

- `401`: Missing or invalid credentials
- `403`: Forbidden, or `insufficient_scope` when a bearer token lacks the `write` scope

---

[API](https://skmtc.dev/getmyluna/apis/luna-api.md) · [All operations](https://skmtc.dev/getmyluna/apis/luna-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getmyluna/apis/luna-api/revisions/ef7b359c9648?raw)
