> ## 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 Link

> Create a setup link for one person

## Overview

Creates a link to one of your live [onboardings](https://docs.personal.ai/composer/admin/onboarding.md) for a specific person. Whoever opens it talks to the setup assistant. No account or key is needed.

> [!WARNING]
>
> The link works like a password for that one conversation. Send it only to the person it is for.

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

Operation name: `onboarding.link`.

## 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`

Who it is for, such as "Drew at Meridian".

```json Example theme={null}
"label": "Drew at Meridian"
```

**hours** `integer`

How long it stays open, 1–2160 hours. Default 72.

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

**max\_uses** `integer`

How many times it can be opened. Omit for no limit until it expires.

**known** `object`

Details you already have, such as `{"first_name": "Drew", "email": "drew@example.com"}`, so the person isn't asked for them again.

```json Example Request theme={null}
{
  "onboarding": "New customer",
  "label": "Drew at Meridian",
  "hours": 72
}
```

***

## Response

**id** `string`

The link's id. Use it to revoke the link.

**url** `string`

The link to send.

**expires\_at** `string`

When it stops working.

**max\_uses** `integer | null`

How many opens are allowed.

```json Example Success Response theme={null}
{
  "id": "2b3c4d5e-6f70-4812-9a3b-4c5d6e7f8091",
  "onboarding": "New customer",
  "url": "https://composer.personal.ai/onboard/AbC123...",
  "label": "Drew at Meridian",
  "expires_at": "2026-12-03T12:00:00Z",
  "max_uses": null
}
```

***

## Example cURL

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

***

## 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.