# KleioBase

> Keep your KleioBase family history research in step: add and update people, read records, families and sources, and act on new findings.

App · 26 actions. Web page: https://docs.lodol.com/docs/integrations/kleiobase

## Actions

### Create person

Add a person to a research workspace.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Given names (`given_name`, text): Their given names.
- Surname (`surname`, text): Their surname.
- Maiden name (`maiden_name`, text): Their maiden name.
- Nickname (`nickname`, text): A nickname.
- Gender (`gender`, text): Their gender. One of: `M` (Male), `F` (Female), `X` (Other), `U` (Unknown).
- Birth date (`birth_date`, text): The birth date as the record gives it, such as 12 MAY 1867 or ABT 1890.
- Birth place (`birth_place`, text): Where they were born.
- Death date (`death_date`, text): The death date as the record gives it, such as 3 JAN 1931 or BEF 1940.
- Death place (`death_place`, text): Where they died.
- Occupation (`occupation`, text): Their occupation.
- Religion (`religion`, text): Their religion.
- Notes (`notes`, text): Notes about them.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "birth": {
      "date": "12 MAY 1867",
      "place": "Brno, Moravia",
      "year": 1867
    },
    "burial": {
      "date": "1931",
      "place": "Vienna, Austria",
      "year": 1931
    },
    "christening": {
      "date": "14 MAY 1867",
      "place": "Brno, Moravia",
      "year": 1867
    },
    "created_at": "2026-11-12T10:15:00.000Z",
    "death": {
      "cause": "Pneumonia",
      "date": "ABT 1931",
      "place": "Vienna, Austria",
      "year": 1931
    },
    "display_name": "Josef Novak",
    "gender": "M",
    "given_name": "Josef",
    "id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
    "living_status": "deceased",
    "maiden_name": "",
    "name_prefix": "",
    "name_suffix": "",
    "nickname": "Pepa",
    "notes": "From the parish register.",
    "occupation": "Blacksmith",
    "religion": "Catholic",
    "surname": "Novak",
    "surname_prefix": "",
    "title": "",
    "updated_at": "2026-11-12T10:15:00.000Z",
    "workspace_id": "1b6f0c52-8e4a-4c1d-9f3e-2a7b5d9c0e11"
  }
}
```

### Create source

Add a source, such as a parish register or a book, to cite in your research.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Title (`title`, text, required): The source's title.
- Source type (`source_type`, text, required): What kind of source it is. One of: `birth_register` (Birth register), `marriage_register` (Marriage register), `death_register` (Death register), `combined_register` (Combined register), `census`, `military`, `letter`, `naturalization`, `probate`, `will`, and 10 more.
- Author (`author`, text): Who made it.
- Publication (`publication`, text): Where and when it was published.
- Short name (`abbreviation`, text): A short name for it.
- Notes (`notes`, text): Notes about it.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "abbreviation": "StJ Bapt",
    "author": "Parish of St. James",
    "citation_count": 3,
    "created_at": "2026-11-12T10:15:00.000Z",
    "fields": {
      "volume": "12"
    },
    "id": "e7d1b4a9-2c6f-4a8e-b3d5-9f0c6a2e7b18",
    "notes": "Viewed on microfilm.",
    "origin": "manual",
    "publication": "Brno, 1870",
    "record_count": 1,
    "record_id": "3f9a1d6c-7b2e-4c58-a0f4-e6d2b8c1a795",
    "repositories": [
      {
        "call_number": "MZA E 67",
        "medium": "microfilm",
        "repository_id": "5d8a2f1c-3e7b-4a96-b0c4-9e1d6f2a8b37",
        "repository_name": "Moravian Land Archive"
      }
    ],
    "source_type": "birth_register",
    "text": "Register of baptisms.",
    "title": "Brno St. James baptisms 1860-1870"
  }
}
```

### Create tag

Add a tag that people and records can carry.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Name (`name`, text, required): The tag's name, up to 50 characters, unique in the workspace.
- Colour (`color`, text, required): Its colour as a hex code, such as #4f46e5.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "color": "#4f46e5",
    "id": "c1f6a8d3-9b4e-4f72-a5c0-2e8d7b1f4a96",
    "name": "Emigrated",
    "person_count": 0,
    "record_count": 0
  }
}
```

### Delete source

Delete a source and every citation of it. Records and facts are kept.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Source ID (`source_id`, text, required): The source's ID, from List sources or Create source.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "kept_records": 0,
    "ok": true,
    "removed": 0
  }
}
```

### Delete tag

Delete a tag and take it off every person and record.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Tag (`tag_id`, text, required): The tag to delete. Pick one, or use a tag ID from List tags.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "ok": true
  }
}
```

### Get family

Get one family's partners, children, marriage and divorce.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Family ID (`family_id`, text, required): The family's ID, from List families or Get person's family.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "children": [
      {
        "pedigree": "BIRTH",
        "person_id": "0c7e5b13-9d2a-4e6f-b8c1-5f3a7d9e2b46"
      }
    ],
    "created_at": "2026-11-12T10:15:00.000Z",
    "divorce": {
      "date": "1905",
      "place": "Vienna, Austria",
      "year": 1905
    },
    "id": "8e4b2c70-1f5d-4a39-96e2-d3c7b0a5f218",
    "marriage": {
      "date": "3 FEB 1892",
      "place": "Brno, Moravia",
      "type": "religious",
      "year": 1892
    },
    "partners": [
      {
        "person_id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
        "role": "husband"
      }
    ],
    "workspace_id": "1b6f0c52-8e4a-4c1d-9f3e-2a7b5d9c0e11"
  }
}
```

### Get finding

Get one research finding with the people and record it concerns.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Finding ID (`finding_id`, text, required): The finding's ID, from List findings.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "created_at": "2026-11-12T10:15:00.000Z",
    "description": "Josef Novak has a death date but no record backs it.",
    "dismissed": false,
    "id": "b2c8e5f1-4a7d-4e93-8f06-1d9c3b7a2e54",
    "person_ids": [
      "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903"
    ],
    "record_id": "3f9a1d6c-7b2e-4c58-a0f4-e6d2b8c1a795",
    "resolved_at": "2026-11-12T10:15:00.000Z",
    "severity": "medium",
    "status": "active",
    "title": "No death record for Josef Novak",
    "type": "missing_record"
  }
}
```

### Get person

Get one person with all their facts and the IDs of their families and records.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Person (`person_id`, text, required): The person. Pick one, or use a person ID from List people.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "birth": {
      "date": "12 MAY 1867",
      "place": "Brno, Moravia",
      "year": 1867
    },
    "burial": {
      "date": "1931",
      "place": "Vienna, Austria",
      "year": 1931
    },
    "christening": {
      "date": "14 MAY 1867",
      "place": "Brno, Moravia",
      "year": 1867
    },
    "created_at": "2026-11-12T10:15:00.000Z",
    "death": {
      "cause": "Pneumonia",
      "date": "ABT 1931",
      "place": "Vienna, Austria",
      "year": 1931
    },
    "display_name": "Josef Novak",
    "facts": [
      {
        "date": "12 MAY 1867",
        "fact_type": "BIRT",
        "family_id": "8e4b2c70-1f5d-4a39-96e2-d3c7b0a5f218",
        "id": "9c4e1a7b-2d8f-4b53-a6e0-3f7c1d9b5a28",
        "is_preferred": true,
        "kind": "event",
        "origin": "manual",
        "place": "Brno, Moravia",
        "source_record_id": "3f9a1d6c-7b2e-4c58-a0f4-e6d2b8c1a795",
        "sourced": true,
        "type": "",
        "value": ""
      }
    ],
    "family_ids": [
      "8e4b2c70-1f5d-4a39-96e2-d3c7b0a5f218"
    ],
    "gender": "M",
    "given_name": "Josef",
    "id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
    "living_status": "deceased",
    "maiden_name": "",
    "merged_from": [
      {
        "created_at": "2026-11-12T10:15:00.000Z",
        "display_name": "Joseph Nowak",
        "id": "0c7e5b13-9d2a-4e6f-b8c1-5f3a7d9e2b46"
      }
    ],
    "name_prefix": "",
    "name_suffix": "",
    "nickname": "Pepa",
    "notes": "From the parish register.",
    "occupation": "Blacksmith",
    "record_ids": [
      "3f9a1d6c-7b2e-4c58-a0f4-e6d2b8c1a795"
    ],
    "religion": "Catholic",
    "surname": "Novak",
    "surname_prefix": "",
    "title": "",
    "updated_at": "2026-11-12T10:15:00.000Z",
    "workspace_id": "1b6f0c52-8e4a-4c1d-9f3e-2a7b5d9c0e11"
  }
}
```

### Get person's family

List a person's parents, partners and children, each with the family that links them.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Person (`person_id`, text, required): The person. Pick one, or use a person ID from List people.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "children": [
      {
        "family_id": "8e4b2c70-1f5d-4a39-96e2-d3c7b0a5f218",
        "pedigree": "ADOPTED",
        "person_id": "0c7e5b13-9d2a-4e6f-b8c1-5f3a7d9e2b46"
      }
    ],
    "parents": [
      {
        "family_id": "8e4b2c70-1f5d-4a39-96e2-d3c7b0a5f218",
        "pedigree": "BIRTH",
        "person_id": "0c7e5b13-9d2a-4e6f-b8c1-5f3a7d9e2b46"
      }
    ],
    "partners": [
      {
        "family_id": "8e4b2c70-1f5d-4a39-96e2-d3c7b0a5f218",
        "person_id": "0c7e5b13-9d2a-4e6f-b8c1-5f3a7d9e2b46",
        "status": "married"
      }
    ]
  }
}
```

### Get record

Get one record with its transcription, source and the people linked to it.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Record ID (`record_id`, text, required): The record's ID, from List records.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "created_at": "2026-11-12T10:15:00.000Z",
    "file_type": "image/jpeg",
    "id": "3f9a1d6c-7b2e-4c58-a0f4-e6d2b8c1a795",
    "original_filename": "brno-1867-fol12.jpg",
    "people": [
      {
        "display_name": "Josef Novak",
        "individual_ref": "I1",
        "is_ai_suggested": false,
        "person_id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
        "role": "child"
      }
    ],
    "record_type": "birth",
    "source": {
      "id": "e7d1b4a9-2c6f-4a8e-b3d5-9f0c6a2e7b18",
      "source_type": "birth_register",
      "title": "Brno St. James baptisms 1860-1870"
    },
    "source_id": "e7d1b4a9-2c6f-4a8e-b3d5-9f0c6a2e7b18",
    "source_page": "fol. 12",
    "status": "confirmed",
    "title": "Baptism of Josef Novak",
    "transcription": {
      "original": "Josephus Novak natus 12 Maii 1867",
      "translated": "Josef Novak born 12 May 1867"
    },
    "updated_at": "2026-11-12T10:15:00.000Z",
    "workspace_id": "1b6f0c52-8e4a-4c1d-9f3e-2a7b5d9c0e11"
  }
}
```

### Get tree health

Get a workspace's tree health score and suggested next steps.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "band": "Good",
    "computed_at": "2026-11-12T10:15:00.000Z",
    "overall": 72,
    "percentile": 64,
    "pillars": {
      "completeness": 80,
      "connectedness": 63,
      "consistency": 90,
      "sourcing": 55
    },
    "quick_wins": [
      {
        "id": "sourcing",
        "items": [
          {
            "id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
            "title": "Josef Novak"
          }
        ],
        "title": "Cite sources for key facts"
      }
    ]
  }
}
```

### List families

List one page of a workspace's families, oldest first, with partners, children, marriage and divorce.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Page size (`limit`, number): How many to return, from 1 to 100. KleioBase's default is 25. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "children": [
          {
            "pedigree": "BIRTH",
            "person_id": "0c7e5b13-9d2a-4e6f-b8c1-5f3a7d9e2b46"
          }
        ],
        "created_at": "2026-11-12T10:15:00.000Z",
        "divorce": {
          "date": "1905",
          "place": "Vienna, Austria",
          "year": 1905
        },
        "id": "8e4b2c70-1f5d-4a39-96e2-d3c7b0a5f218",
        "marriage": {
          "date": "3 FEB 1892",
          "place": "Brno, Moravia",
          "type": "religious",
          "year": 1892
        },
        "partners": [
          {
            "person_id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
            "role": "husband"
          }
        ],
        "workspace_id": "1b6f0c52-8e4a-4c1d-9f3e-2a7b5d9c0e11"
      }
    ],
    "next_cursor": "eyJpZCI6MX0"
  }
}
```

### List findings

List one page of the research findings KleioBase spotted, such as a gap in a person's records, oldest first.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Status (`status`, text): Only findings with this status, as KleioBase writes it in lowercase.
- Finding type (`type`, text): Only findings of this type, as KleioBase writes it.
- Page size (`limit`, number): How many to return, from 1 to 100. KleioBase's default is 25. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "2026-11-12T10:15:00.000Z",
        "description": "Josef Novak has a death date but no record backs it.",
        "dismissed": false,
        "id": "b2c8e5f1-4a7d-4e93-8f06-1d9c3b7a2e54",
        "person_ids": [
          "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903"
        ],
        "record_id": "3f9a1d6c-7b2e-4c58-a0f4-e6d2b8c1a795",
        "resolved_at": "2026-11-12T10:15:00.000Z",
        "severity": "medium",
        "status": "active",
        "title": "No death record for Josef Novak",
        "type": "missing_record"
      }
    ],
    "next_cursor": "eyJpZCI6MX0"
  }
}
```

### List folders

List a workspace's folders of people or records.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Holds (`folder_kind`, text): Only folders of people or of records. Leave empty for both. One of: `people`, `records`.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "child_count": 1,
        "id": "a4e9c7b2-5d1f-4b36-8e2a-7c0f3d9b6e51",
        "item_count": 12,
        "kind": "people",
        "name": "Novak line",
        "parent_id": "7b3e9d1a-4c6f-4e28-a5b0-1d9f2c8e6a43"
      }
    ],
    "next_cursor": ""
  }
}
```

### List match suggestions

List one page of possible duplicate people waiting for review.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Page size (`limit`, number): How many to return, from 1 to 100. KleioBase's default is 25. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "confidence": "high",
        "created_at": "2026-11-12T10:15:00.000Z",
        "id": "d5a3f8c2-6e1b-4d07-9c4a-8b2e7f0d1c63",
        "person_a_id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
        "person_b_id": "0c7e5b13-9d2a-4e6f-b8c1-5f3a7d9e2b46",
        "score": 0.92,
        "status": "pending"
      }
    ],
    "next_cursor": "eyJpZCI6MX0"
  }
}
```

### List notifications

List one page of a workspace's notifications, newest first.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Unread only (`unread`, text): Only unread notifications. One of: `true` (Yes), `false` (No).
- Page size (`limit`, number): How many to return, from 1 to 100. KleioBase's default is 25. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "body": "Josef Novak may be the same person as Joseph Nowak.",
        "created_at": "2026-11-12T10:15:00.000Z",
        "id": "f3b7d2e8-1a9c-4e65-b0d4-6c2a8e5f9b17",
        "link_path": "/knowledge-base/people/6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
        "read_at": "2026-11-12T10:15:00.000Z",
        "title": "Possible duplicate found",
        "type": "match_found"
      }
    ],
    "next_cursor": "eyJpZCI6MX0"
  }
}
```

### List people

List one page of the people in a workspace, optionally by name, folder or tag.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Name contains (`q`, text): Only people whose name matches this, ignoring accents.
- Folder (`folder_id`, text): Only people in this folder.
- Tag (`tag_id`, text): Only people with this tag.
- Page size (`limit`, number): How many to return, from 1 to 100. KleioBase's default is 25. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "birth": {
          "date": "12 MAY 1867",
          "place": "Brno, Moravia",
          "year": 1867
        },
        "burial": {
          "date": "1931",
          "place": "Vienna, Austria",
          "year": 1931
        },
        "christening": {
          "date": "14 MAY 1867",
          "place": "Brno, Moravia",
          "year": 1867
        },
        "created_at": "2026-11-12T10:15:00.000Z",
        "death": {
          "cause": "Pneumonia",
          "date": "ABT 1931",
          "place": "Vienna, Austria",
          "year": 1931
        },
        "display_name": "Josef Novak",
        "folder_id": "a4e9c7b2-5d1f-4b36-8e2a-7c0f3d9b6e51",
        "gender": "M",
        "given_name": "Josef",
        "id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
        "living_status": "deceased",
        "maiden_name": "",
        "name_prefix": "",
        "name_suffix": "",
        "nickname": "Pepa",
        "notes": "From the parish register.",
        "occupation": "Blacksmith",
        "religion": "Catholic",
        "surname": "Novak",
        "surname_prefix": "",
        "tag_ids": [
          "c1f6a8d3-9b4e-4f72-a5c0-2e8d7b1f4a96"
        ],
        "title": "",
        "updated_at": "2026-11-12T10:15:00.000Z",
        "workspace_id": "1b6f0c52-8e4a-4c1d-9f3e-2a7b5d9c0e11"
      }
    ],
    "next_cursor": "eyJpZCI6MX0"
  }
}
```

### List places

List one page of the places in a workspace's people and confirmed records, by name.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Name contains (`q`, text): Only places whose name matches this.
- Page size (`limit`, number): How many to return, from 1 to 100. KleioBase's default is 25. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "coordinates": {
          "lat": 49.1951,
          "lng": 16.6068
        },
        "id": "pl_brno_moravia",
        "name": "Brno, Moravia",
        "people": [
          {
            "context": "birth",
            "person_id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903"
          }
        ]
      }
    ],
    "next_cursor": "eyJpZCI6MX0"
  }
}
```

### List records

List one page of a workspace's uploaded records, optionally by status, folder or tag.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Status (`status`, text): Only records with this status. One of: `pending`, `processing`, `review` (Ready for review), `confirmed`, `failed`.
- Folder (`folder_id`, text): Only records in this folder.
- Tag (`tag_id`, text): Only records with this tag.
- Record IDs (`ids`, list): Only these records, up to 50.
- Page size (`limit`, number): How many to return, from 1 to 100. KleioBase's default is 25. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "2026-11-12T10:15:00.000Z",
        "file_type": "image/jpeg",
        "folder_id": "a4e9c7b2-5d1f-4b36-8e2a-7c0f3d9b6e51",
        "id": "3f9a1d6c-7b2e-4c58-a0f4-e6d2b8c1a795",
        "original_filename": "brno-1867-fol12.jpg",
        "record_type": "birth",
        "source_id": "e7d1b4a9-2c6f-4a8e-b3d5-9f0c6a2e7b18",
        "source_page": "fol. 12",
        "status": "confirmed",
        "tag_ids": [
          "c1f6a8d3-9b4e-4f72-a5c0-2e8d7b1f4a96"
        ],
        "title": "Baptism of Josef Novak",
        "transcription": {
          "original": "Josephus Novak natus 12 Maii 1867",
          "translated": "Josef Novak born 12 May 1867"
        },
        "updated_at": "2026-11-12T10:15:00.000Z",
        "workspace_id": "1b6f0c52-8e4a-4c1d-9f3e-2a7b5d9c0e11"
      }
    ],
    "next_cursor": "eyJpZCI6MX0"
  }
}
```

### List sources

List one page of a workspace's sources, such as registers and books, by title.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Title contains (`q`, text): Only sources whose title matches this.
- Source type (`source_type`, text): Only sources of this type. One of: `birth_register` (Birth register), `marriage_register` (Marriage register), `death_register` (Death register), `combined_register` (Combined register), `census`, `military`, `letter`, `naturalization`, `probate`, `will`, and 10 more.
- Page size (`limit`, number): How many to return, from 1 to 100. KleioBase's default is 25. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "abbreviation": "StJ Bapt",
        "author": "Parish of St. James",
        "citation_count": 3,
        "created_at": "2026-11-12T10:15:00.000Z",
        "fields": {
          "volume": "12"
        },
        "id": "e7d1b4a9-2c6f-4a8e-b3d5-9f0c6a2e7b18",
        "notes": "Viewed on microfilm.",
        "origin": "manual",
        "publication": "Brno, 1870",
        "record_count": 1,
        "record_id": "3f9a1d6c-7b2e-4c58-a0f4-e6d2b8c1a795",
        "repositories": [
          {
            "call_number": "MZA E 67",
            "medium": "microfilm",
            "repository_id": "5d8a2f1c-3e7b-4a96-b0c4-9e1d6f2a8b37",
            "repository_name": "Moravian Land Archive"
          }
        ],
        "source_type": "birth_register",
        "text": "Register of baptisms.",
        "title": "Brno St. James baptisms 1860-1870"
      }
    ],
    "next_cursor": "eyJpZCI6MX0"
  }
}
```

### List tags

List a workspace's tags by name, with how many people and records have each.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "color": "#4f46e5",
        "id": "c1f6a8d3-9b4e-4f72-a5c0-2e8d7b1f4a96",
        "name": "Emigrated",
        "person_count": 4,
        "record_count": 2
      }
    ],
    "next_cursor": ""
  }
}
```

### List workspaces

List the research workspaces you own, with their IDs.

**Inputs**: None.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "archived": false,
        "created_at": "2026-11-12T10:15:00.000Z",
        "id": "1b6f0c52-8e4a-4c1d-9f3e-2a7b5d9c0e11",
        "is_default": true,
        "name": "Novak family"
      }
    ],
    "next_cursor": ""
  }
}
```

### Move person to Trash

Move a person to the workspace's Trash, from where they can be restored.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Person (`person_id`, text, required): The person. Pick one, or use a person ID from List people.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "ok": true
  }
}
```

### Search workspace

Search a workspace's people, records and places, as the app's search box does.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Search for (`q`, text, required): A name, place, date or title, up to 200 characters.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "people": [
      {
        "birth": {
          "date": "12 MAY 1867",
          "place": "Brno, Moravia",
          "year": 1867
        },
        "display_name": "Josef Novak",
        "gender": "M",
        "given_name": "Josef",
        "id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
        "maiden_name": "",
        "surname": "Novak"
      }
    ],
    "places": [
      {
        "id": "pl_brno_moravia",
        "name": "Brno, Moravia"
      }
    ],
    "records": [
      {
        "id": "3f9a1d6c-7b2e-4c58-a0f4-e6d2b8c1a795",
        "original_filename": "brno-1867-fol12.jpg",
        "record_type": "birth",
        "status": "confirmed",
        "title": "Baptism of Josef Novak"
      }
    ]
  }
}
```

### Tag people or records

Add or remove tags on up to 100 people or records at once.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Items are (`item_type`, text, required): Whether the IDs are people or records. One of: `people`, `records`.
- Item IDs (`ids`, list, required): The people or records to change, up to 100.
- Tags to add (`add`, list): Tags to add, up to 50.
- Tags to remove (`remove`, list): Tags to remove, up to 50.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "added": 1,
    "ok": true,
    "removed": 0
  }
}
```

### Update person

Change a person's names, dates, places or notes. Only the fields you fill in change.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace. Pick one, or use a workspace ID from List workspaces.
- Person (`person_id`, text, required): The person. Pick one, or use a person ID from List people.
- Given names (`given_name`, text): Their given names.
- Surname (`surname`, text): Their surname.
- Maiden name (`maiden_name`, text): Their maiden name.
- Nickname (`nickname`, text): A nickname.
- Gender (`gender`, text): Their gender. One of: `M` (Male), `F` (Female), `X` (Other), `U` (Unknown).
- Birth date (`birth_date`, text): The birth date as the record gives it, such as 12 MAY 1867 or ABT 1890.
- Birth place (`birth_place`, text): Where they were born.
- Death date (`death_date`, text): The death date as the record gives it, such as 3 JAN 1931 or BEF 1940.
- Death place (`death_place`, text): Where they died.
- Occupation (`occupation`, text): Their occupation.
- Religion (`religion`, text): Their religion.
- Notes (`notes`, text): Notes about them.

**Outputs**

- `data` (object): The response from KleioBase.

**Example output**

```json
{
  "data": {
    "birth": {
      "date": "12 MAY 1867",
      "place": "Brno, Moravia",
      "year": 1867
    },
    "burial": {
      "date": "1931",
      "place": "Vienna, Austria",
      "year": 1931
    },
    "christening": {
      "date": "14 MAY 1867",
      "place": "Brno, Moravia",
      "year": 1867
    },
    "created_at": "2026-11-12T10:15:00.000Z",
    "death": {
      "cause": "Pneumonia",
      "date": "ABT 1931",
      "place": "Vienna, Austria",
      "year": 1931
    },
    "display_name": "Josef Novak",
    "gender": "M",
    "given_name": "Josef",
    "id": "6a2d9e41-3b7c-4f85-a1d0-c4e8f2b7a903",
    "living_status": "deceased",
    "maiden_name": "",
    "name_prefix": "",
    "name_suffix": "",
    "nickname": "Pepa",
    "notes": "From the parish register.",
    "occupation": "Blacksmith",
    "religion": "Catholic",
    "surname": "Novak",
    "surname_prefix": "",
    "title": "",
    "updated_at": "2026-11-12T10:15:00.000Z",
    "workspace_id": "1b6f0c52-8e4a-4c1d-9f3e-2a7b5d9c0e11"
  }
}
```
