> ## Documentation Index
> Fetch the complete documentation index at: https://docs.personal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Onboarding Invite

> Create a QR code anyone can scan to start setup

## Overview

Creates an invite to a live onboarding, ready to print as a QR code. Every person who opens it gets their own private setup conversation.

> [!NOTE]
>
> Requires an admin key.

Operation name: `onboarding.invite`.

## Authorization

**x-api-key** `string` *required*

Your Composer API key

## Headers

**Content-Type** `string` *required*

Must be set to application/json

## Body

**onboarding** `string` *required*

The name of a live onboarding.

```json Example theme={null}
"onboarding": "New customer"
```

**label** `string`

Where it will be shown, such as "front desk poster".

```json Example theme={null}
"label": "front desk poster"
```

**hours** `integer`

How long it keeps working, 1–8760 hours. Default 720 (30 days).

```json Example theme={null}
"hours": 720
```

**session\_hours** `integer`

How long each person's conversation stays open, 1–2160 hours. Default 72.

**max\_sessions** `integer`

How many people can use it in total. Omit for no limit.

**known** `object`

Details to prefill for everyone who uses it.

```json Example Request theme={null}
{
  "onboarding": "New customer",
  "label": "front desk poster"
}
```

***

## Response

**id** `string`

The invite's id.

**url** `string`

The invite link.

**qr\_svg** `string`

The QR code as SVG, ready to place.

**qr\_payload** `string`

The URL inside the QR code.

**expires\_at** `string`

When it stops working.

```json Example Success Response theme={null}
{
  "id": "4d5e6f70-8192-4a3b-b4c5-d6e7f8091a2b",
  "onboarding": "New customer",
  "url": "https://composer.personal.ai/onboard/i/XyZ789...",
  "path": "/onboard/i/XyZ789...",
  "qr_payload": "https://composer.personal.ai/onboard/i/XyZ789...",
  "qr_svg": "<svg ...>",
  "label": "front desk poster",
  "expires_at": "2026-12-30T12:00:00Z",
  "max_sessions": null,
  "session_hours": 72
}
```

***

## Example cURL

```bash cURL theme={null}
curl --request POST 'https://composer.personal.ai/lab/api/v1/op/onboarding.invite' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{"onboarding": "New customer", "label": "front desk poster"}'
```

***

## Error Codes

| Code | Description |
| - | - |
| 400 | The body doesn't match the fields above, or the operation failed. The response body says why. |
| 401 | Missing or invalid API key |
| 403 | This key isn't allowed to call this operation (it needs an admin key) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.