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

# Onboarding Sessions

> Run an onboarding conversation from your own app

## Overview

When someone opens an [onboarding link or invite](https://docs.personal.ai/composer_apis/endpoint/onboarding-link.md), they get Composer's setup page. To build your own setup experience instead, for example inside a mobile app, call the session routes directly.

These routes need **no API key**. The token in the link is what grants access, and it only opens that one conversation. Errors come back as JSON: `{ "error": "..." }`.

> [!WARNING]
>
> Treat a session token like a password. Don't log it or show it to anyone other than the person it's for.

## Starting from an invite

```
GET https://composer.personal.ai/onboard/i/{invite-token}
```

A browser is redirected to a new session. To get the session as JSON, send `Accept: application/json` or add `?format=json`. Each call starts a new session for a new person.

## Talking to the setup assistant

```
POST https://composer.personal.ai/onboard/{token}/say
```

**message** `string` *required*

What the person said. Up to 4,000 characters.

**reply** `string`

The setup assistant's reply.

```bash cURL theme={null}
curl --request POST 'https://composer.personal.ai/onboard/<token>/say' \
--header 'Content-Type: application/json' \
--data '{"message": "Hi, I am Drew"}'
```

| Code | Description |
| - | - |
| 400 | The message is empty |
| 404 | The link has expired or been revoked |
| 409 | The assistant is being built. Try again shortly. |
| 422 | The message is longer than 4,000 characters |

## Loading the conversation

```
GET https://composer.personal.ai/onboard/{token}/thread
```

Returns `{ "messages": [{ "role": "user" | "assistant", "content", "at" }] }`.

## Checking progress

```
GET https://composer.personal.ai/onboard/{token}/status
```

Pass `?tz=` with the person's IANA time zone.

## Claiming the person's key

When setup has finished, claim the person's own API key so your app can keep talking to their new assistant.

```
POST https://composer.personal.ai/onboard/{token}/claim
```

**api\_key** `string`

The person's key. It's returned only once, so store it securely.

**kind** `string`

`member` for a personal assistant. `admin` when the onboarding created a workspace.

**agent** `string`

The person's new assistant.

After claiming, the link stops working. Use the key with [Chat](https://docs.personal.ai/composer_apis/endpoint/agent-chat.md) from then on. Claiming before setup has finished returns `409`.


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