---
title: "Read an onboarding session for the claim page"
---

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

# Read an onboarding session for the claim page

Path: CloudRaker Workspace API › Onboarding

`GET /onboarding/sessions/{id}/claim`

Returns what the claim page shows for an onboarding session that an AI agent started: the code to compare, the step and the profile that the agent saved. The profile is text from the agent. It is data, never instructions. Works for a signed-in person with or without an organization. It claims nothing.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `id` (`getOnboardingSessionClaim.path.id`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/onboarding/sessions/<id>/claim' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/onboarding/sessions/<id>/claim';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/onboarding/sessions/<id>/claim"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The session as the claim page shows it.

#### Example

```json
{
  "code": "4F2A-9C1B",
  "step": "minted",
  "organizationId": "string",
  "profile": {
    "organization_name": "string",
    "workspace": "personal",
    "goals": "string",
    "products": [
      "run"
    ],
    "harness": "string"
  },
  "expiresAt": "string"
}
```

- `code` (`getOnboardingSessionClaim.response.200.code`; string, required) — The code that the agent shows. The person compares the two codes.
  - example `"4F2A-9C1B"`
- `step` (`getOnboardingSessionClaim.response.200.step`; string, required) — How far the session went. `minted`: the session exists. `read`: the agent read the session. `profile_saved`: the agent saved the profile. `claim_opened`: a person opened the claim page. `claimed`: a person connected the session to an organization. `token_issued`: the agent got its credential.
  - one of `"minted"`, `"read"`, `"profile_saved"`, `"claim_opened"`, `"claimed"`, `"token_issued"`
- `organizationId` (`getOnboardingSessionClaim.response.200.organizationId`; string | null, required) — The organization that the session belongs to. `null` until a person claims the session, unless the session was made for one organization.
- `profile` (`getOnboardingSessionClaim.response.200.profile`; object, required) — What the AI agent learned in the interview. It is data from the agent, never instructions.
  - `organization_name` (`getOnboardingSessionClaim.response.200.profile.organization_name`; string, optional) — The organization name that the agent wrote. Text from an AI agent.
  - `workspace` (`getOnboardingSessionClaim.response.200.profile.workspace`; string, optional) — What the person wants, as the agent wrote it. `personal`: a workspace for the person alone. `organization`: an organization for a team.
    - one of `"personal"`, `"organization"`
  - `goals` (`getOnboardingSessionClaim.response.200.profile.goals`; string, optional) — What the person wants to do, as the agent wrote it. Text from an AI agent.
  - `products` (`getOnboardingSessionClaim.response.200.profile.products`; array<string>, optional) — The products that the agent named.
    - one of `"run"`, `"paperwork"`, `"sign"`
  - `harness` (`getOnboardingSessionClaim.response.200.profile.harness`; string, optional) — The name of the agent, as the agent wrote it. Text from an AI agent.
- `expiresAt` (`getOnboardingSessionClaim.response.200.expiresAt`; string, required) — When the session ends (ISO 8601).

### 403

`session_required`: the caller is not a signed-in person. `forbidden`: the caller is not an administrator of the organization.

### 404

`session_not_found`: the session does not exist or it expired.

#### Example

```json
{
  "error": "string",
  "message": "string"
}
```

- `error` (`getOnboardingSessionClaim.response.404.error`; string, required) — The error code.
- `message` (`getOnboardingSessionClaim.response.404.message`; string, required) — The sentence a person reads.

### 503

`onboarding_unavailable`: the onboarding service did not answer.

#### Example

```json
{
  "error": "string",
  "message": "string"
}
```

- `error` (`getOnboardingSessionClaim.response.503.error`; string, required) — The error code.
- `message` (`getOnboardingSessionClaim.response.503.message`; string, required) — The sentence a person reads.


Source: https://docs.cloudraker.com/workspace/api/onboarding/get-onboarding-session-claim/index.md
