---
title: "Seed the sample document matching step 2's installed preset"
---

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

# Seed the sample document matching step 2's installed preset

Path: CloudRaker Workspace API › Onboarding

`POST /onboarding/sample-document`

Seeds a sample file into the default space matching the given preset, so a run against it demos meaningfully instead of using the generic sample W-9. `industry` only matters for `fill-form-from-records`, `base-redact-pdf`, and `base-redact-audio`, whose samples are industry-keyed. Idempotent: seeds nothing if a file with that name already exists. Given `installId`, a Fill install is also pointed at the blank form this seeds, so its first run has a template.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Request body

_Required._

- `presetSlug` (`seedOnboardingPresetDocument.presetSlug`; string, required)
  - one of `"patient-intake-extraction"`, `"claim-packet-extraction"`, `"insurance-policy-declarations-extraction"`, `"contract-key-terms"`, `"manufacturing-invoice-extraction"`, `"real-estate-lease-abstraction-extraction"`, `"credit-agreement-extraction"`, `"public-sector-solicitation-extraction"`, `"signature-packet"`, `"base-redact-pdf"`, `"base-redact-audio"`, `"fill-form-from-records"`; example `"patient-intake-extraction"`
- `industry` (`seedOnboardingPresetDocument.industry`; string, optional)
  - example `"healthcare"`
- `installId` (`seedOnboardingPresetDocument.installId`; string, optional)
  - minLength 1; maxLength 128; pattern `^[A-Za-z0-9_-]+$`; example `"act_01J…"`

## Example request

```json
{
  "presetSlug": "patient-intake-extraction",
  "industry": "healthcare",
  "installId": "act_01J…"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.cloudraker.com/onboarding/sample-document \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "presetSlug": "patient-intake-extraction",
  "industry": "healthcare",
  "installId": "act_01J…"
}
'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/onboarding/sample-document';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    presetSlug: 'patient-intake-extraction',
    industry: 'healthcare',
    installId: 'act_01J…'
  })
};

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/sample-document"

payload = {
    "presetSlug": "patient-intake-extraction",
    "industry": "healthcare",
    "installId": "act_01J…"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 204

Seeded (or already present).

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`seedOnboardingPresetDocument.response.400.success`; boolean, required)
  - one of `false`
- `error` (`seedOnboardingPresetDocument.response.400.error`; array<unknown>, required)
- `data` (`seedOnboardingPresetDocument.response.400.data`; unknown, required)


Source: https://docs.cloudraker.com/workspace/api/onboarding/seed-onboarding-preset-document/index.md
