Download OpenAPI specification:Download
Clinical and multimodal cohort exploration and analysis API.
COHORTome exposes a browser-facing API for governed multi-dataset workspaces, longitudinal clinical and assay exploration, cohort discovery, and traceable analysis.
Returns whether LM Studio is enabled plus the current model and base URL.
{- "enabled": true,
- "available": false,
- "status": "disabled",
- "base_url": "string",
- "model": "string",
- "detail": "",
- "selected_provider_id": "system-default",
- "provider": { },
- "providers": [
- { }
]
}Admin-only registry and health view for approved OpenAI-compatible LLM endpoints.
{- "providers": [
- {
- "id": "string",
- "label": "string",
- "base_url": "string",
- "model": "string",
- "enabled": true,
- "data_boundary": "local",
- "source": "configuration",
- "managed": false,
- "timeout_seconds": 30,
- "api_key_configured": false
}
], - "registry_error": ""
}Persists an OpenAI-compatible provider in protected runtime state. The API key is write-only.
| id | string (Id) Default: "" Stable provider ID used by persisted user settings. |
| label | string (Label) Default: "" User-facing provider label. |
| base_url | string (Base Url) Default: "" OpenAI-compatible API base URL, normally ending in /v1. |
| model | string (Model) Default: "" Model ID. Leave empty to use the first model reported by the provider. |
| api_key | string (Api Key) Default: "" Write-only API key. It is never returned by the API. |
| timeout_seconds | number (Timeout Seconds) Default: 30 Provider request timeout in seconds. |
| enabled | boolean (Enabled) Default: true Whether users may select and use this provider. |
| data_boundary | string (Data Boundary) Default: "external" Enum: "local" "external" Explicit deployment boundary used for private-data policy. |
{- "id": "",
- "label": "",
- "base_url": "",
- "model": "",
- "api_key": "",
- "timeout_seconds": 30,
- "enabled": true,
- "data_boundary": "local"
}{- "id": "string",
- "label": "string",
- "base_url": "string",
- "model": "string",
- "enabled": true,
- "data_boundary": "local",
- "source": "configuration",
- "managed": false,
- "timeout_seconds": 30,
- "api_key_configured": false
}Updates a runtime-managed provider. Environment-defined providers are read-only.
| provider_id required | string (Provider Id) |
Label (string) or Label (null) (Label) Updated user-facing provider label. | |
Base Url (string) or Base Url (null) (Base Url) Updated OpenAI-compatible API base URL. | |
Model (string) or Model (null) (Model) Updated model ID; an empty value enables model discovery. | |
Api Key (string) or Api Key (null) (Api Key) Replacement write-only API key. Empty values retain the stored key. | |
Timeout Seconds (number) or Timeout Seconds (null) (Timeout Seconds) Updated provider request timeout in seconds. | |
Enabled (boolean) or Enabled (null) (Enabled) Whether users may select and use this provider. | |
Data Boundary (string) or Data Boundary (null) (Data Boundary) Updated deployment boundary. |
{- "label": "string",
- "base_url": "string",
- "model": "string",
- "api_key": "string",
- "timeout_seconds": 0,
- "enabled": true,
- "data_boundary": "local"
}{- "id": "string",
- "label": "string",
- "base_url": "string",
- "model": "string",
- "enabled": true,
- "data_boundary": "local",
- "source": "configuration",
- "managed": false,
- "timeout_seconds": 30,
- "api_key_configured": false
}Deletes a runtime-managed provider. Environment-defined providers cannot be deleted.
| provider_id required | string (Provider Id) |
{- "deleted": true,
- "id": "",
- "deleted_count": 0,
- "deleted_generated_data": false,
- "related_job_count": 0,
- "deleted_job_count": 0,
- "kept_job_count": 0,
- "skipped_active_count": 0
}Runs an admin-only models-endpoint health check without exposing the configured API key.
| provider_id required | string (Provider Id) |
{- "id": "string",
- "label": "string",
- "base_url": "string",
- "model": "string",
- "enabled": true,
- "data_boundary": "local",
- "source": "configuration",
- "managed": false,
- "timeout_seconds": 30,
- "api_key_configured": false
}Returns the current local-auth session state and visible user identity.
{- "enabled": true,
- "mode": "none",
- "provider": "none",
- "authenticated": true,
- "local_login_enabled": false,
- "password_reset_enabled": false,
- "user": {
- "username": "string",
- "role": "string",
- "display_name": "string",
- "email": "",
- "groups": [
- "string"
], - "enabled": true,
- "auth_source": "local",
- "login_method": "local"
}
}Authenticates a local user and creates a session-backed login.
| username | string (Username) Default: "" Local username. |
| password | string (Password) Default: "" Local password. |
{- "username": "",
- "password": ""
}{- "enabled": true,
- "mode": "none",
- "provider": "none",
- "authenticated": true,
- "local_login_enabled": false,
- "password_reset_enabled": false,
- "user": {
- "username": "string",
- "role": "string",
- "display_name": "string",
- "email": "",
- "groups": [
- "string"
], - "enabled": true,
- "auth_source": "local",
- "login_method": "local"
}
}Handles the OIDC authorization-code callback and maps the external identity to a local COHORTome user.
| code | string (Code) Default: "" |
| state | string (State) Default: "" |
| error | string (Error) Default: "" |
null{- "enabled": true,
- "mode": "none",
- "provider": "none",
- "authenticated": true,
- "local_login_enabled": false,
- "password_reset_enabled": false,
- "user": {
- "username": "string",
- "role": "string",
- "display_name": "string",
- "email": "",
- "groups": [
- "string"
], - "enabled": true,
- "auth_source": "local",
- "login_method": "local"
}
}Sends a password reset email when SMTP-backed local reset is configured. The response does not reveal whether the account exists.
| identifier | string (Identifier) Default: "" Username or email address for password reset. |
{- "identifier": ""
}{- "ok": true,
- "message": "string"
}Consumes a password reset token and replaces the local password.
| token | string (Token) Default: "" Password reset token from the reset link. |
| password | string (Password) Default: "" New local password. |
{- "token": "",
- "password": ""
}{- "ok": true,
- "message": "string"
}Returns local-auth diagnostics useful during development and deployment troubleshooting.
{- "enabled": true,
- "mode": "string",
- "provider": "none",
- "user_count": 0,
- "usernames": [
- "string"
], - "roles": {
- "property1": "string",
- "property2": "string"
}, - "groups": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "source": "string"
}Returns local users and groups. When auth is enabled, this endpoint is admin-only.
{- "mode": "string",
- "users": [
- {
- "username": "string",
- "role": "string",
- "display_name": "string",
- "email": "",
- "groups": [
- "string"
], - "enabled": true,
- "auth_source": "local",
- "login_method": "local"
}
]
}Creates a persisted local user with application role and groups. Admin-only when auth is enabled.
| username | string (Username) Default: "" Unique local username. |
| password | string (Password) Default: "" Initial local password. |
| display_name | string (Display Name) Default: "" User-facing display name. |
string (Email) Default: "" Optional email address used for self-service password reset. | |
| role | string (Role) Default: "user" Application role: user or admin. |
| groups | Array of strings (Groups) Application groups used for dataset authorization. |
| enabled | boolean (Enabled) Default: true Whether the user can sign in. |
{- "username": "",
- "password": "",
- "display_name": "",
- "email": "",
- "role": "user",
- "groups": [
- "string"
], - "enabled": true
}{- "username": "string",
- "role": "string",
- "display_name": "string",
- "email": "",
- "groups": [
- "string"
], - "enabled": true,
- "auth_source": "local",
- "login_method": "local"
}Updates display name, role, groups, or enabled state for a local user. Admin-only when auth is enabled.
| username required | string (Username) |
Display Name (string) or Display Name (null) (Display Name) Updated display name. | |
Email (string) or Email (null) (Email) Updated email address used for self-service password reset. | |
Role (string) or Role (null) (Role) Updated application role. | |
Array of Groups (strings) or Groups (null) (Groups) Replacement application groups. | |
Enabled (boolean) or Enabled (null) (Enabled) Whether the user can sign in. |
{- "display_name": "string",
- "email": "string",
- "role": "string",
- "groups": [
- "string"
], - "enabled": true
}{- "username": "string",
- "role": "string",
- "display_name": "string",
- "email": "",
- "groups": [
- "string"
], - "enabled": true,
- "auth_source": "local",
- "login_method": "local"
}Deletes a persisted local user. Admin-only when auth is enabled.
| username required | string (Username) |
{- "deleted": true,
- "id": "",
- "deleted_count": 0,
- "deleted_generated_data": false,
- "related_job_count": 0,
- "deleted_job_count": 0,
- "kept_job_count": 0,
- "skipped_active_count": 0
}Replaces the password for a local user. Admin-only when auth is enabled.
| username required | string (Username) |
| password | string (Password) Default: "" Replacement local password. |
{- "password": ""
}{- "username": "string",
- "role": "string",
- "display_name": "string",
- "email": "",
- "groups": [
- "string"
], - "enabled": true,
- "auth_source": "local",
- "login_method": "local"
}{- "version": 1,
- "landing_tab_mode": "fixed",
- "landing_tab": "dashboard",
- "query_disclosure_default": "summary",
- "query_default_mode": "auto",
- "latest_query_details": true,
- "analysis_auto_open_jobs": true,
- "run_history_retention_days": 0,
- "pheno_default_metric": "",
- "pheno_advanced_open": false,
- "pheno_render_heatmap": true,
- "pheno_render_mds": true,
- "pheno_render_graph": true,
- "dashboard_assays_open": false,
- "dataset_compact_view": false,
- "llm_provider_id": "system-default"
}Persists UI preferences for the current user.
Landing Tab Mode (string) or Landing Tab Mode (null) (Landing Tab Mode) | |
Landing Tab (string) or Landing Tab (null) (Landing Tab) | |
Query Disclosure Default (string) or Query Disclosure Default (null) (Query Disclosure Default) | |
Query Default Mode (string) or Query Default Mode (null) (Query Default Mode) | |
Latest Query Details (boolean) or Latest Query Details (null) (Latest Query Details) | |
Analysis Auto Open Jobs (boolean) or Analysis Auto Open Jobs (null) (Analysis Auto Open Jobs) | |
Run History Retention Days (integer) or Run History Retention Days (null) (Run History Retention Days) | |
Pheno Default Metric (string) or Pheno Default Metric (null) (Pheno Default Metric) | |
Pheno Advanced Open (boolean) or Pheno Advanced Open (null) (Pheno Advanced Open) | |
Pheno Render Heatmap (boolean) or Pheno Render Heatmap (null) (Pheno Render Heatmap) | |
Pheno Render Mds (boolean) or Pheno Render Mds (null) (Pheno Render Mds) | |
Pheno Render Graph (boolean) or Pheno Render Graph (null) (Pheno Render Graph) | |
Dashboard Assays Open (boolean) or Dashboard Assays Open (null) (Dashboard Assays Open) | |
Dataset Compact View (boolean) or Dataset Compact View (null) (Dataset Compact View) | |
Llm Provider Id (string) or Llm Provider Id (null) (Llm Provider Id) |
{- "landing_tab_mode": "fixed",
- "landing_tab": "dashboard",
- "query_disclosure_default": "summary",
- "query_default_mode": "auto",
- "latest_query_details": true,
- "analysis_auto_open_jobs": true,
- "run_history_retention_days": 0,
- "pheno_default_metric": "",
- "pheno_advanced_open": true,
- "pheno_render_heatmap": true,
- "pheno_render_mds": true,
- "pheno_render_graph": true,
- "dashboard_assays_open": true,
- "dataset_compact_view": true,
- "llm_provider_id": "string"
}{- "version": 1,
- "landing_tab_mode": "fixed",
- "landing_tab": "dashboard",
- "query_disclosure_default": "summary",
- "query_default_mode": "auto",
- "latest_query_details": true,
- "analysis_auto_open_jobs": true,
- "run_history_retention_days": 0,
- "pheno_default_metric": "",
- "pheno_advanced_open": false,
- "pheno_render_heatmap": true,
- "pheno_render_mds": true,
- "pheno_render_graph": true,
- "dashboard_assays_open": false,
- "dataset_compact_view": false,
- "llm_provider_id": "system-default"
}Returns datasets visible to the current user plus the currently active workspace selection.
{- "datasets": [
- {
- "dataset_id": "string",
- "name": "string",
- "description": "",
- "root_path": "",
- "enabled": true,
- "visibility": "string",
- "data_classification": "private",
- "allowed_users": [
- "string"
], - "allowed_groups": [
- "string"
], - "query_granularity_ceiling": "summary",
- "ai_provider_access": "detailed_allowed",
- "created_by": "",
- "created_at": "",
- "updated_at": "",
- "query_store_status": { }
}
], - "current_dataset_id": "",
- "current_dataset_ids": [
- "string"
], - "current_dataset_scope_id": "",
- "current_dataset": {
- "dataset_id": "string",
- "name": "string",
- "description": "",
- "root_path": "",
- "enabled": true,
- "visibility": "string",
- "data_classification": "private",
- "allowed_users": [
- "string"
], - "allowed_groups": [
- "string"
], - "query_granularity_ceiling": "summary",
- "ai_provider_access": "detailed_allowed",
- "created_by": "",
- "created_at": "",
- "updated_at": "",
- "query_store_status": { }
}
}Creates a new dataset registry entry. Admin-only.
| name | string (Name) Default: "" Human-readable dataset name. |
| root_path | string (Root Path) Default: "" Dataset root directory containing clinical/ and assays/ subdirectories. |
| description | string (Description) Default: "" Optional dataset description shown in the UI. |
| visibility | string (Visibility) Default: "all_authenticated" Dataset visibility policy: all_authenticated, restricted, or admin_only. |
| data_classification | string (Data Classification) Default: "private" Data egress classification: public or private. Private data cannot be sent to external AI providers. |
| allowed_users | Array of strings (Allowed Users) Usernames with direct access when visibility is restricted. |
| allowed_groups | Array of strings (Allowed Groups) Groups with access when visibility is restricted. |
| query_granularity_ceiling | string (Query Granularity Ceiling) Default: "summary" Maximum Query thread mode allowed for this dataset: summary or detailed. |
| ai_provider_access | string (Ai Provider Access) Default: "detailed_allowed" Maximum AI provider disclosure allowed after applying data classification and provider boundary. |
| enabled | boolean (Enabled) Default: true Whether the dataset can be selected in the UI. |
{- "name": "",
- "root_path": "",
- "description": "",
- "visibility": "all_authenticated",
- "data_classification": "private",
- "allowed_users": [
- "string"
], - "allowed_groups": [
- "string"
], - "query_granularity_ceiling": "summary",
- "ai_provider_access": "detailed_allowed",
- "enabled": true
}{- "dataset_id": "string",
- "name": "string",
- "description": "",
- "root_path": "",
- "enabled": true,
- "visibility": "string",
- "data_classification": "private",
- "allowed_users": [
- "string"
], - "allowed_groups": [
- "string"
], - "query_granularity_ceiling": "summary",
- "ai_provider_access": "detailed_allowed",
- "created_by": "",
- "created_at": "",
- "updated_at": "",
- "query_store_status": { }
}Applies one or more authorized dataset IDs as the current workspace for the authenticated user.
| dataset_id | string (Dataset Id) Default: "" Single dataset ID for backward compatibility. |
| dataset_ids | Array of strings (Dataset Ids) Dataset IDs that define the active workspace. An empty list unloads it. |
{- "dataset_id": "",
- "dataset_ids": [
- "string"
]
}{- "selected": true,
- "current_dataset_id": "",
- "current_dataset_ids": [
- "string"
], - "current_dataset_scope_id": ""
}Updates dataset metadata, visibility, or access policy. Admin-only.
| dataset_id required | string (Dataset Id) |
Name (string) or Name (null) (Name) Updated human-readable dataset name. | |
Root Path (string) or Root Path (null) (Root Path) Updated dataset root directory. | |
Description (string) or Description (null) (Description) Updated UI description. | |
Visibility (string) or Visibility (null) (Visibility) Updated visibility policy. | |
Data Classification (string) or Data Classification (null) (Data Classification) Updated data egress classification: public or private. | |
Array of Allowed Users (strings) or Allowed Users (null) (Allowed Users) Replacement direct-access username list. | |
Array of Allowed Groups (strings) or Allowed Groups (null) (Allowed Groups) Replacement allowed-group list. | |
Query Granularity Ceiling (string) or Query Granularity Ceiling (null) (Query Granularity Ceiling) Updated maximum Query thread mode for this dataset. | |
Ai Provider Access (string) or Ai Provider Access (null) (Ai Provider Access) Updated maximum AI provider access mode. | |
Enabled (boolean) or Enabled (null) (Enabled) Whether the dataset remains selectable. |
{- "name": "string",
- "root_path": "string",
- "description": "string",
- "visibility": "string",
- "data_classification": "string",
- "allowed_users": [
- "string"
], - "allowed_groups": [
- "string"
], - "query_granularity_ceiling": "string",
- "ai_provider_access": "string",
- "enabled": true
}{- "dataset_id": "string",
- "name": "string",
- "description": "",
- "root_path": "",
- "enabled": true,
- "visibility": "string",
- "data_classification": "private",
- "allowed_users": [
- "string"
], - "allowed_groups": [
- "string"
], - "query_granularity_ceiling": "summary",
- "ai_provider_access": "detailed_allowed",
- "created_by": "",
- "created_at": "",
- "updated_at": "",
- "query_store_status": { }
}Builds or rebuilds the admin-managed DuckDB store for one dataset. Admin-only.
| dataset_id required | string (Dataset Id) |
{- "dataset_id": "string",
- "name": "string",
- "description": "",
- "root_path": "",
- "enabled": true,
- "visibility": "string",
- "data_classification": "private",
- "allowed_users": [
- "string"
], - "allowed_groups": [
- "string"
], - "query_granularity_ceiling": "summary",
- "ai_provider_access": "detailed_allowed",
- "created_by": "",
- "created_at": "",
- "updated_at": "",
- "query_store_status": { }
}Returns patient-level summaries for the active dataset or workspace scope.
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
[- {
- "patient_id": ""
}
]Returns the normalized clinical context for a single patient identifier.
| patient_id required | string (Patient Id) |
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{ }Returns the timeline-oriented patient workspace payload used by the patient detail view.
| patient_id required | string (Patient Id) |
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{ }Returns the deterministic medication-matched workspace subset for a single medication label.
| medication required | string (Medication) |
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{ }Returns the dashboard summary payload used by the clinical and assay overview panels.
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{ }Executes a lightweight workspace query using query-string parameters. Prefer POST /query for full prompt history and planner mode control.
| q required | string (Q) |
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{ }Executes a deterministic and/or LLM-assisted natural-language query against the active workspace.
| q required | string (Q) Natural-language workspace query. |
| dataset_id | string (Dataset Id) Default: "" Dataset ID or multi-dataset scope ID to query against. |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" Manual dataset directory fallback. Prefer dataset_id. |
| query_mode | string (Query Mode) Default: "auto" Query execution mode. Supported values include auto and planner_only. |
| granularity_mode | string (Granularity Mode) Default: "detailed" Disclosure mode requested by the Query UI. Supported values currently include summary and detailed. |
Array of objects (History) | |
| scoped_patient_ids | Array of strings (Scoped Patient Ids) Optional prior subset patient IDs carried as app-level conversational scope for follow-up queries. |
| scoped_record_ids | Array of strings (Scoped Record Ids) Optional prior subset sample or record IDs carried as app-level conversational scope. |
| scoped_id_type | string (Scoped Id Type) Default: "patient" The primary ID level used by the carried scoped context. |
{- "q": "How many patients take biologics in this workspace?",
- "dataset_id": "",
- "data_dir": "/path/to/cohortome/default_dataset",
- "query_mode": "auto",
- "granularity_mode": "detailed",
- "history": [
- {
- "role": "string",
- "content": "string"
}
], - "scoped_patient_ids": [
- "string"
], - "scoped_record_ids": [
- "string"
], - "scoped_id_type": "patient"
}{ }Returns curated analysis definitions plus computed availability for the current workspace.
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{ }Executes clinical or assay analysis over the active workspace or selected saved cohorts.
| prompt required | string (Prompt) Natural-language analysis prompt. |
| catalog_item_id | string (Catalog Item Id) Default: "" Optional Analysis Catalog item identifier used for structured curated analyses. |
| analysis_session_id | string (Analysis Session Id) Default: "" Current Analysis session identifier used to associate queued jobs back to the active session. |
| dataset_id | string (Dataset Id) Default: "" Dataset ID or multi-dataset scope ID for the analysis workspace. |
| assay_id | string (Assay Id) Default: "" Selected assay identifier for curated analyses that require one explicit transcriptomics source. |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" Manual dataset directory fallback. Prefer dataset_id. |
| selected_patient_ids | string (Selected Patient Ids) Default: "" Comma-separated scope IDs for cohort A. May contain sample or patient IDs depending on the source tab. |
| scope_metadata | object (Scope Metadata) Saved-cohort-shaped metadata for the Cohort A selection, including sample IDs, patient IDs, and source. |
| compare_mode | boolean (Compare Mode) Default: false Whether to run a compare-mode analysis using cohort A vs cohort B. |
| compare_selected_patient_ids | string (Compare Selected Patient Ids) Default: "" Comma-separated scope IDs for cohort B when compare_mode is enabled. |
| compare_scope_metadata | object (Compare Scope Metadata) Saved-cohort-shaped metadata for the Cohort B selection. |
| llm_only | boolean (Llm Only) Default: false Force LLM-only analysis mode. |
| deterministic_only | boolean (Deterministic Only) Default: false Force deterministic-only analysis mode. |
Array of objects (History) |
{- "prompt": "Summarize the main workspace patterns and tell me what stands out.",
- "catalog_item_id": "",
- "analysis_session_id": "",
- "dataset_id": "",
- "assay_id": "",
- "data_dir": "/path/to/cohortome/default_dataset",
- "selected_patient_ids": "",
- "scope_metadata": { },
- "compare_mode": false,
- "compare_selected_patient_ids": "",
- "compare_scope_metadata": { },
- "llm_only": false,
- "deterministic_only": false,
- "history": [
- {
- "role": "string",
- "content": "string"
}
]
}{ }Persists analysis session state, including prompt draft, scopes, and prior turns.
| id required | string (Id) Client-generated analysis session identifier. |
| title | string (Title) Default: "" Optional user-facing session title. |
| dataset_id | string (Dataset Id) Default: "" Dataset ID or multi-dataset scope ID for the session. |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" Manual dataset directory fallback. Prefer dataset_id. |
| workspace_fingerprint | object (Workspace Fingerprint) Workspace fingerprint snapshot captured when the session was first bound. |
| catalog_item_id | string (Catalog Item Id) Default: "" Selected Analysis Catalog item for this session, if any. |
| prompt_draft | string (Prompt Draft) Default: "" Current draft prompt stored for the session. |
| context_mode | string (Context Mode) Default: "workspace" Enum: "workspace" "general" Whether the saved composer is using workspace context or general knowledge. |
| scope | string (Scope) Default: "" Comma-separated scope IDs for cohort A. |
| scope_metadata | object (Scope Metadata) Saved-cohort-shaped metadata for Cohort A. |
| saved_cohort_id_a | string (Saved Cohort Id A) Default: "" Saved cohort ID currently assigned to cohort A, if any. |
| compare_mode | boolean (Compare Mode) Default: false Whether the session is in compare mode. |
| compare_scope | string (Compare Scope) Default: "" Comma-separated scope IDs for cohort B. |
| compare_scope_metadata | object (Compare Scope Metadata) Saved-cohort-shaped metadata for Cohort B. |
| saved_cohort_id_b | string (Saved Cohort Id B) Default: "" Saved cohort ID currently assigned to cohort B, if any. |
| history | Array of objects (History) |
| turns | Array of objects (Turns) |
| updated_at | string (Updated At) Default: "" Last-updated timestamp in ISO 8601 format. |
| created_at | string (Created At) Default: "" Creation timestamp in ISO 8601 format. |
{- "id": "string",
- "title": "",
- "dataset_id": "",
- "data_dir": "/path/to/cohortome/default_dataset",
- "workspace_fingerprint": { },
- "catalog_item_id": "",
- "prompt_draft": "",
- "context_mode": "workspace",
- "scope": "",
- "scope_metadata": { },
- "saved_cohort_id_a": "",
- "compare_mode": false,
- "compare_scope": "",
- "compare_scope_metadata": { },
- "saved_cohort_id_b": "",
- "history": [
- { }
], - "turns": [
- { }
], - "updated_at": "",
- "created_at": ""
}{ }Updates the title of a saved analysis session.
| session_id required | string (Session Id) |
| title | string (Title) Default: "" New title for the analysis session. |
{- "title": ""
}{ }Deletes a saved analysis session for the current user.
| session_id required | string (Session Id) |
| delete_generated_data | boolean (Delete Generated Data) Default: false |
| keep_generated_jobs | boolean (Keep Generated Jobs) Default: false |
{- "deleted": true,
- "id": "",
- "deleted_count": 0,
- "deleted_generated_data": false,
- "related_job_count": 0,
- "deleted_job_count": 0,
- "kept_job_count": 0,
- "skipped_active_count": 0
}Returns saved cohorts for the current user within the active dataset workspace.
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{- "cohorts": [
- {
- "id": "string",
- "name": "string",
- "dataset_id": "",
- "dataset_ids": [
- "string"
], - "data_dir": "",
- "id_type": "sample",
- "sample_ids": [
- "string"
], - "patient_ids": [
- "string"
], - "sample_count": 0,
- "patient_count": 0,
- "is_full_dataset": false,
- "source": {
- "kind": "",
- "prompt": ""
}, - "created_at": "",
- "updated_at": ""
}
]
}Persists a saved cohort containing canonical sample IDs and derived patient IDs.
| name | string (Name) Default: "" User-facing saved cohort name. |
| dataset_id | string (Dataset Id) Default: "" Dataset ID or multi-dataset scope ID where the cohort was created. |
| dataset_ids | Array of strings (Dataset Ids) |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" Manual dataset directory fallback. Prefer dataset_id. |
| sample_ids | Array of strings (Sample Ids) Canonical sample/record IDs stored for the cohort. |
| patient_ids | Array of strings (Patient Ids) Derived patient IDs stored alongside the cohort. |
| id_type | string (Id Type) Default: "sample" Canonical ID level used by the cohort payload. |
| source_kind | string (Source Kind) Default: "manual" How the cohort was created, for example manual or query. |
| source_prompt | string (Source Prompt) Default: "" Source prompt when the cohort came from Query. |
{- "name": "",
- "dataset_id": "",
- "dataset_ids": [
- "string"
], - "data_dir": "/path/to/cohortome/default_dataset",
- "sample_ids": [
- "string"
], - "patient_ids": [
- "string"
], - "id_type": "sample",
- "source_kind": "manual",
- "source_prompt": ""
}{- "id": "string",
- "name": "string",
- "dataset_id": "",
- "dataset_ids": [
- "string"
], - "data_dir": "",
- "id_type": "sample",
- "sample_ids": [
- "string"
], - "patient_ids": [
- "string"
], - "sample_count": 0,
- "patient_count": 0,
- "is_full_dataset": false,
- "source": {
- "kind": "",
- "prompt": ""
}, - "created_at": "",
- "updated_at": ""
}Deletes a saved cohort owned by the current user.
| cohort_id required | string (Cohort Id) |
{- "deleted": true,
- "id": "",
- "deleted_count": 0,
- "deleted_generated_data": false,
- "related_job_count": 0,
- "deleted_job_count": 0,
- "kept_job_count": 0,
- "skipped_active_count": 0
}Returns assay datasets visible in the current workspace.
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{- "datasets": [
- {
- "assay_id": ""
}
]
}Returns workspace-level multimodal coverage, overlap, linkage issues, and deterministic next-step suggestions.
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{- "workspace": { },
- "modalities": [
- { }
], - "pairwise_overlaps": [
- { }
], - "issues": [
- { }
], - "suggestions": [
- { }
]
}Returns a bounded sample-level multimodal matrix preview with clinical covariates, selected assay features, DICOM viewer metadata, missingness, and provenance.
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
| max_features_per_dataset | integer (Max Features Per Dataset) Default: 3 |
| max_rows | integer (Max Rows) Default: 25 |
{- "metadata": { },
- "columns": [
- { }
], - "rows": [
- { }
], - "missingness": [
- { }
], - "feature_groups": [
- { }
], - "warnings": [
- { }
]
}Returns gene identifiers for a selected assay with optional search and limit filtering.
| assay_id required | string (Assay Id) |
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
| q | string (Q) Default: "" |
| limit | integer (Limit) Default: 50 |
{ }Returns scoped gene expression summaries for one assay, optionally comparing cohort A and cohort B.
| assay_id required | string (Assay Id) Assay identifier to inspect. |
| gene_id required | string (Gene Id) Gene identifier or symbol to summarize. |
| dataset_id | string (Dataset Id) Default: "" Dataset ID or multi-dataset scope ID for assay lookups. |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" Manual dataset directory fallback. Prefer dataset_id. |
| selected_patient_ids | string (Selected Patient Ids) Default: "" Optional comma-separated scope IDs for cohort A filtering. |
| compare_selected_patient_ids | string (Compare Selected Patient Ids) Default: "" Optional comma-separated scope IDs for cohort B filtering. |
{- "assay_id": "string",
- "gene_id": "string",
- "dataset_id": "",
- "data_dir": "/path/to/cohortome/default_dataset",
- "selected_patient_ids": "",
- "compare_selected_patient_ids": ""
}{ }Returns DICOM studies configured for the current workspace with OHIF launch URLs.
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{- "enabled": false,
- "studies": [
- {
- "study_instance_uid": ""
}
]
}Returns DICOM/OHIF/Orthanc configuration status for the current workspace.
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{- "enabled": false,
- "study_count": 0
}Runs Pheno-Ranker for the active workspace using either patient mode or cohort mode.
| prompt | string (Prompt) Default: "" Current Pheno-Ranker prompt used for run metadata and queued job labels. |
| action | string (Action) Default: "compare" Pheno-Ranker action, typically compare. |
| mode | string (Mode) Default: "cohort" Pheno-Ranker mode, such as cohort or patient. |
| dataset_id | string (Dataset Id) Default: "" Dataset ID or multi-dataset scope ID for the workspace. |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" Manual dataset directory fallback. Prefer dataset_id. |
| patient_id | string (Patient Id) Default: "" Single target sample/patient ID for patient mode. |
| selected_patient_ids | string (Selected Patient Ids) Default: "" Comma-separated scope IDs for cohort mode. |
| selected_saved_cohort_ids | Array of strings (Selected Saved Cohort Ids) |
| disease_filter | string (Disease Filter) Default: "" Optional disease label filter for eligible reference files. |
| include_terms | Array of strings (Include Terms) |
| exclude_terms | Array of strings (Exclude Terms) |
| similarity_metric_cohort | string (Similarity Metric Cohort) Default: "" Similarity metric to use for cohort comparison. |
| sort_by | string (Sort By) Default: "" Sort strategy for rank output. |
| max_out | integer (Max Out) Default: 10 Maximum number of ranked output matches to keep. |
| align | boolean (Align) Default: true Whether to compute term alignment details. |
| render_heatmap | boolean (Render Heatmap) Default: true Whether to generate the interactive heatmap artifact. |
| render_mds | boolean (Render Mds) Default: true Whether to generate the interactive MDS artifact. |
| render_graph | boolean (Render Graph) Default: true Whether to generate the interactive Cytoscape graph artifact. |
Graph Min Weight (number) or Graph Min Weight (null) (Graph Min Weight) Optional minimum edge weight for Pheno-Ranker graph export. | |
Graph Max Weight (number) or Graph Max Weight (null) (Graph Max Weight) Optional maximum edge weight for Pheno-Ranker graph export. | |
| granularity_ceiling | string (Granularity Ceiling) Default: "detailed" Internal workspace ceiling used to guard Pheno-Ranker access. |
| ai_provider_access | string (Ai Provider Access) Default: "detailed_allowed" Effective AI provider policy used for Pheno-Ranker planner/explanation paths. |
{- "prompt": "",
- "action": "compare",
- "mode": "cohort",
- "dataset_id": "",
- "data_dir": "/path/to/cohortome/default_dataset",
- "patient_id": "",
- "selected_patient_ids": "",
- "selected_saved_cohort_ids": [
- "string"
], - "disease_filter": "",
- "include_terms": [
- "string"
], - "exclude_terms": [
- "string"
], - "similarity_metric_cohort": "",
- "sort_by": "",
- "max_out": 10,
- "align": true,
- "render_heatmap": true,
- "render_mds": true,
- "render_graph": true,
- "graph_min_weight": 0,
- "graph_max_weight": 0,
- "granularity_ceiling": "detailed",
- "ai_provider_access": "detailed_allowed"
}{ }Converts a natural-language request into a normalized Pheno-Ranker execution plan.
| text required | string (Text) Natural-language instruction to convert into a Pheno-Ranker plan. |
| dataset_id | string (Dataset Id) Default: "" Dataset ID or multi-dataset scope ID for planning. |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" Manual dataset directory fallback. Prefer dataset_id. |
| selected_patient_ids | string (Selected Patient Ids) Default: "" Optional comma-separated scope IDs already selected in the UI. |
{- "text": "string",
- "dataset_id": "",
- "data_dir": "/path/to/cohortome/default_dataset",
- "selected_patient_ids": ""
}{ }Returns the sample-level identifiers currently available to Pheno-Ranker in the active workspace.
| dataset_id | string (Dataset Id) Default: "" |
| data_dir | string (Data Dir) Default: "/path/to/cohortome/default_dataset" |
{ }Returns the term-level alignment details between a target and a selected Pheno-Ranker match.
| job_id required | string (Job Id) |
| reference_id required | string (Reference Id) |
| target_id | string (Target Id) Default: "" |
{ }Sends the prompt and recent General-question turns to the selected model provider without workspace or dataset context.
| prompt required | string (Prompt) [ 1 .. 12000 ] characters General-knowledge question sent without workspace or dataset context. |
Array of objects (History) Recent turns from General question mode only. |
{- "prompt": "What is aspirin?",
- "history": [
- {
- "role": "string",
- "content": "string"
}
]
}{ }Deletes one completed, failed, or cancelled job and its generated artifacts for the current user.
| job_id required | string (Job Id) |
{- "deleted": true,
- "id": "",
- "deleted_count": 0,
- "deleted_generated_data": false,
- "related_job_count": 0,
- "deleted_job_count": 0,
- "kept_job_count": 0,
- "skipped_active_count": 0
}Deletes completed, failed, or cancelled generated runs and artifacts owned by the current user. Active runs are skipped.
{- "deleted": true,
- "id": "",
- "deleted_count": 0,
- "deleted_generated_data": false,
- "related_job_count": 0,
- "deleted_job_count": 0,
- "kept_job_count": 0,
- "skipped_active_count": 0
}Deletes one completed, failed, or cancelled generated run and its artifacts for the current user.
| job_id required | string (Job Id) |
{- "deleted": true,
- "id": "",
- "deleted_count": 0,
- "deleted_generated_data": false,
- "related_job_count": 0,
- "deleted_job_count": 0,
- "kept_job_count": 0,
- "skipped_active_count": 0
}