Back to home

LIS Integration API

Authoritative specification for the Celly pull API used by laboratory information systems. English. Last updated: December 2026.

Overview

LIS pulls confirmed analysis results from Celly. Available on Standard and Enterprise plans. Interactive Swagger UI: https://celly.ai/docs/lis.

Use HTTP Basic Auth on every request:
username = Organization ID
password = Secret key
Credentials are on https://celly.ai/organization (LIS Integration section).

Integration contract (read this first)

  • Drivers must tolerate optional fields, null, empty arrays, and empty objects. Presence of images / marked cells / tiles is never required to consume primary results.
  • Categories with count == 0 are omitted from cell_counts. Absence means zero / not observed — do not require a fixed list of category names.
  • Final LIS-ready results: filter status=3 (Approved). The detail payload reflects physician corrections (human labels override AI) and the conclusion shown in the Celly UI.
  • Mark a case as delivered with PATCH /api/lis/v1/analysis/{test_id} after successful ingest (sent_to_lis=true).

Endpoints

GET /api/lis/v1/analysis/kinds

Analysis type catalog (id, name). Pap liquid-based cytology is kind_id: 14.

GET /api/lis/v1/analysis/statuses

Status catalog. Detail/list APIs only return statuses 2 (In Review), 3 (Approved), 4 (Rejected).

GET /api/lis/v1/analysis

Paginated list. Query params:

  • page, page_size (default 20)
  • sent_to_lis — true / false
  • kind — analysis kind id (use 14 for Pap)
  • status — status id (use 3 for approved)
curl -X GET "https://app.celly.ai/api/lis/v1/analysis?kind=14&status=3&sent_to_lis=false&page=1&page_size=20" \
  -H "accept: application/json" \
  -H "authorization: Basic $CREDENTIALS"

GET /api/lis/v1/analysis/{test_id}

Full result payload for one analysis.

PATCH /api/lis/v1/analysis/{test_id}

Same payload as GET, then sets sent_to_lis=true. Empty body.

POST /api/lis/v1/analysis

Optional: create a pending analysis placeholder from LIS.

{
  "kind_id": 14,
  "description": "SLIDE-BARCODE-001",
  "lis_id": "bregis-order-123"
}

Detail response — field rules

FieldTypeRequiredNullNotes
test_idintegeralwaysnoCelly analysis id
lis_idstring | nullalways presentyesLIS-side id if set on create; otherwise null
sent_to_lisbooleanalwaysnoDelivery flag
created_atstringalwaysnoTimestamp string
finished_atstring | nullalways presentyesMay be null if unfinished
descriptionstring | nullalways presentyesUsually slide / barcode id
conclusionstring | nullalways presentyesPhysician conclusion (manual or auto shown in UI)
kind_idintegeralwaysno14 = Pap (liquid-based)
status_idintegeralwaysno2 / 3 / 4 in this API
userstringalwaysnoOperator username
flagsobjectif has_cellsno (object)CBC morph flags; {} for Pap
snapshotsstring[]if has_cellsnoFlat URL list; may be []
marked_cellsobject[]if has_cellsnoMay be []; extra keys allowed
cell_countsobjectif has_cellsnoAt least backend[]; zeros omitted
fields_of_viewnumberoptionalnoPresent when known (Pap FOV count)
tilesstring[]optionalnoOnly if panorama/tiles exist

Always required core fields: test_id, lis_id, sent_to_lis, created_at, finished_at, description, conclusion, kind_id, status_id, user.

For Pap and other cell-based kinds, also expect flags, snapshots, marked_cells, cell_counts. Treat tiles and fields_of_view as optional enrichment.

Pap cytology (kind_id: 14) — indicator mapping

Quantitative indicators live in cell_counts.backend[] as objects { name, count, ratio?, images? }. English technical names:

UI (RU)API nameLocation
ГерпесHerpescell_counts.backend
ГрибыFunguscell_counts.backend
Реактивные измененияReactivecell_counts.backend
Ключевые клеткиKey Cellcell_counts.backend
МетаплазияMetaplasiacell_counts.backend
Железистый эпителийGlandular epitheliumcell_counts.backend
АртефактыArtefactcell_counts.backend
ASC-US/AGCASC-US/AGCcell_counts.backend
ASC-H/AGC-FNASC-H/AGC-FNcell_counts.backend
LSILLSILcell_counts.backend
HSIL/AISHSIL/AIScell_counts.backend
SSC/ADCSSC/ADCcell_counts.backend
Неклассифицированные клеткиUnclassifiedcell_counts.backend
Норма (если есть клетки)Normalcell_counts.backend
Количество просмотренных полей зренияfields_of_viewtop-level number
Заключение врачаconclusiontop-level string|null
  • Zero-valued indicators are excluded from cell_counts.backend. Missing name ⇒ count 0 / not found. Do not treat missing as API error.
  • There is no separate “explicit zero” marker. Use presence of the category object for non-zero counts.
  • Total Neutrophils is CBC-only and must not be expected for Pap.
  • flags for Pap is {}. CBC-only morphologic flags live under flags.wbc / flags.plt / flags.rbc.
  • snapshots is a flat string[] of report image URLs (may be empty).
  • marked_cells may be empty. When present, objects include at least name, comment, url; additional keys may appear and should be ignored if unused.

JSON Schema (detail response)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://celly.ai/docs/lis-integration/analysis-detail.schema.json",
  "title": "LisAnalysisDetail",
  "type": "object",
  "required": [
    "test_id", "lis_id", "sent_to_lis", "created_at", "finished_at",
    "description", "conclusion", "kind_id", "status_id", "user"
  ],
  "properties": {
    "test_id": { "type": "integer" },
    "lis_id": { "type": ["string", "null"] },
    "sent_to_lis": { "type": "boolean" },
    "created_at": { "type": "string" },
    "finished_at": { "type": ["string", "null"] },
    "description": { "type": ["string", "null"] },
    "conclusion": { "type": ["string", "null"] },
    "kind_id": { "type": "integer" },
    "status_id": { "type": "integer" },
    "user": { "type": "string" },
    "fields_of_view": { "type": "number" },
    "tiles": {
      "type": "array",
      "items": { "type": "string", "format": "uri" }
    },
    "flags": {
      "type": "object",
      "additionalProperties": true
    },
    "snapshots": {
      "type": "array",
      "items": { "type": "string", "format": "uri" }
    },
    "marked_cells": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "comment", "url"],
        "properties": {
          "name": { "type": "string" },
          "comment": { "type": "string" },
          "url": { "type": "string" }
        },
        "additionalProperties": true
      }
    },
    "cell_counts": {
      "type": "object",
      "required": ["backend"],
      "properties": {
        "backend": {
          "type": "array",
          "items": {
            "type": "object",
            "required": ["name"],
            "properties": {
              "name": { "type": "string" },
              "count": { "type": "number" },
              "ratio": { "type": "number" },
              "images": {
                "type": "array",
                "items": { "type": "string", "format": "uri" }
              }
            },
            "additionalProperties": true
          }
        }
      },
      "additionalProperties": {
        "type": "array",
        "items": { "type": "object", "additionalProperties": true }
      }
    }
  },
  "additionalProperties": true
}

Examples (Pap / kind_id 14)

Approved, no pathology

{
  "test_id": 58201,
  "lis_id": null,
  "sent_to_lis": false,
  "created_at": "2026-11-20 09:12:01.000000+00:00",
  "finished_at": "2026-11-20 09:28:44.000000+00:00",
  "description": "PAP-100245",
  "conclusion": "Normal",
  "kind_id": 14,
  "status_id": 3,
  "user": "cytologist",
  "flags": {},
  "snapshots": [],
  "marked_cells": [],
  "fields_of_view": 42,
  "cell_counts": {
    "backend": [
      { "name": "Normal", "count": 120, "ratio": 85.7 },
      { "name": "Glandular epithelium", "count": 12, "ratio": 8.6 },
      { "name": "Artefact", "count": 8, "ratio": 5.7 }
    ]
  }
}

Approved, with pathology

{
  "test_id": 58255,
  "lis_id": "bregis-7781",
  "sent_to_lis": false,
  "created_at": "2026-11-21 11:01:10.000000+00:00",
  "finished_at": "2026-11-21 11:40:02.000000+00:00",
  "description": "PAP-100310",
  "conclusion": "LSIL",
  "kind_id": 14,
  "status_id": 3,
  "user": "cytologist",
  "flags": {},
  "snapshots": [
    "https://cdn.celly.ai/website/media/app/example-report-1.jpg"
  ],
  "marked_cells": [
    {
      "name": "LSIL",
      "comment": "koilocyte",
      "url": "https://cdn.celly.ai/website/media/app/cell-1.jpg"
    }
  ],
  "fields_of_view": 55,
  "cell_counts": {
    "backend": [
      { "name": "Normal", "count": 80, "ratio": 61.5 },
      { "name": "LSIL", "count": 18, "ratio": 13.8 },
      { "name": "ASC-US/AGC", "count": 7, "ratio": 5.4 },
      { "name": "Reactive", "count": 10, "ratio": 7.7 },
      { "name": "Key Cell", "count": 5, "ratio": 3.8 },
      { "name": "Artefact", "count": 10, "ratio": 7.7 }
    ]
  }
}

No attached report images / no marked cells

Same schema. snapshots: [], marked_cells: []. Primary results remain in cell_counts + conclusion.

After physician correction

Counts and names already include human overrides. Prefer status_id == 3 so the LIS receives the approved final state.

Driver checklist

  1. Poll GET /analysis?kind=14&status=3&sent_to_lis=false.
  2. For each item, GET /analysis/{test_id}.
  3. Map cell_counts.backend[*].name → LIS analytes (dictionary above).
  4. Treat missing category as 0; never require fixed category set.
  5. Read conclusion and optional fields_of_view.
  6. Ignore empty snapshots / marked_cells / flags / missing tiles.
  7. PATCH the same detail URL after successful write to LIS.

Base URL

Production: https://app.celly.ai. Organization credentials: /organization.

    LIS Integration API | Celly AI