VisiumOS

Visium API · Rev 2026.09

API V1 · Stable

API reference

A resource-oriented REST API over every Visium agent — documents, deviations, pipelines, agents and integrations — with audit-grade traceability on every write.

Base URL   https://api.visium.ai/v1
Auth       Authorization: Bearer <api_key>
Workspace  Visium-Workspace: <workspace_id>

Introduction

The Visium API is organised around predictable resources. It uses standard HTTP verbs, returns JSON, and speaks conventional status codes. Every mutating call is recorded in the workspace audit trail with the acting key, the requester identity and the resulting state — the same trail your inspectors see in the UI.

Base URL

https://api.visium.ai/v1

Format

JSON over HTTPS

Versioning

Path-based, v1 stable

Authentication

Authenticate with a workspace API key issued from Admin → API keys. Send it as a bearer token and name the workspace explicitly. Keys inherit the module roles of the service account they belong to, so a key with viewer on Devia cannot create deviations. Keys are shown once at creation; rotate them at least every 12 months.

curl https://api.visium.ai/v1/documents \
  -H "Authorization: Bearer vsm_live_9f2a…" \
  -H "Visium-Workspace: ws_novaris"
  • • Never embed keys in browser code — call the API from your backend.
  • • Test keys are prefixed vsm_test_ and hit an isolated sandbox workspace.
  • • OAuth 2.0 client credentials are available for partner integrations on request.

Quickstart

List the open deviations in your workspace in one call.

curl https://api.visium.ai/v1/deviations?state=open&limit=25 \
  -H "Authorization: Bearer $VISIUM_API_KEY" \
  -H "Visium-Workspace: ws_novaris"

Conventions

Pagination

List endpoints return `data` and `next_cursor`. Pass `cursor` to fetch the next page; `limit` caps at 100.

Idempotency

Send `Idempotency-Key` on POST requests. Replays within 24 hours return the original response.

Timestamps

All timestamps are RFC 3339 in UTC, e.g. 2026-09-01T06:44:10Z.

Identifiers

Prefixed opaque IDs (doc_, dev_, agt_, con_). Never parse them.

Filtering

Filters are query parameters and combine with AND. Repeat a parameter to OR its values.

Partial updates

PATCH accepts only the fields you send; omitted fields are untouched.

Versioning & stability

The Visium API is versioned in the path. Everything on this page is /v1, the current stable version — safe to build on, with no breaking changes.

Current version

v1 — stable. Base URL https://api.visium.ai/v1.

Breaking changes

Ship under a new version (/v2). v1 never removes or renames fields.

Deprecation policy

Deprecated fields are announced 12 months ahead via the changelog and a Sunset response header.

Additive changes

New fields, enum values and endpoints ship into v1 without notice — parse responses permissively.

Version pinning

Pin an integration with the Visium-Version header; defaults to the latest stable.

Beta access

Opt into beta surfaces per workspace under Admin → API keys. Beta endpoints are prefixed /v1/beta/.

API v1 release notes

Stable release · September 2026. This is what changed from the preview v0 API.

v1.0
  • •Stable versioning. Path-based /v1 namespace with a written deprecation and sunset policy.
  • •Industry resources. New endpoints for documents/deviations/pipelines (life sciences) and scent profiles, dosing, formulas and optimization (specialty chemicals).
  • •Signed webhooks. All events now carry an HMAC-SHA256 signature and exponential-backoff retries for 24 hours.
  • •Idempotency. POST endpoints accept Idempotency-Key; replays within 24 hours return the original response.
  • •Module-scoped keys. API keys inherit workspace and module roles, so a read-only Devia key cannot write to Scripe.
  • •Audit-grade writes. Every mutating call is recorded with actor, timestamp, before/after state and optional reason-for-change.
  • •Standardised rate limits. Responses include X-RateLimit-* headers and a consistent 429 Retry-After flow.

Industry comparison

The same v1 API serves both industries. Core resources — Intelligence, agents, integrations, Customization, notifications and team — are identical; the domain resources differ. Life Sciences adds documents, deviations, pipelines and Deterministic LLM; Specialty Chemicals adds scent profiles, dosing and formulas. Rows highlighted below are the ones that change when you flip the toggle at the top of this page. You are currently viewing the Life Sciences variant.

Life Sciences only

22

Specialty Chemicals only

12

Shared endpoints

40

Endpoint
GET/documents

List documents in the workspace.

Available—
POST/documents

Create a document from a template.

Available—
GET/documents/{id}

Retrieve a single document with its current version.

Available—
PATCH/documents/{id}

Update title, metadata or review status.

Available—
POST/documents/{id}/draft

Run an AI drafting job on one or more sections.

Available—
GET/documents/{id}/audit

Return the 21 CFR Part 11 audit trail for the document.

Available—
GET/deviations

List deviations.

Available—
POST/deviations

Create a deviation from a description or QMS payload.

Available—
GET/deviations/{id}

Retrieve a deviation with classification and linked batches.

Available—
POST/deviations/{id}/rca

Trigger an AI root cause analysis.

Available—
POST/deviations/{id}/capa

Draft or attach a CAPA record.

Available—
GET/pipelines

List pipelines and their schedules.

Available—
POST/pipelines/{id}/runs

Trigger a pipeline run.

Available—
GET/pipelines/{id}/runs/{run_id}

Retrieve run status, row counts and errors.

Available—
GET/data-products

List governed data products in the catalog.

Available—
GET/data-products/{id}/lineage

Return upstream and downstream lineage as a graph.

Available—
GET/deterministic/prompts

List prompts in the workspace registry.

Available—
POST/deterministic/prompts

Create a new prompt version with metadata hash.

Available—
GET/deterministic/prompts/{id}

Retrieve a prompt and its version history.

Available—
POST/deterministic/generate

Generate text with locked temperature, top_p and seed.

Available—
POST/deterministic/reproducibility-checks

Run a reproducibility check against a previous output hash.

Available—
GET/deterministic/reproducibility-checks/{id}

Retrieve a check result with pass/fail and diff.

Available—
GET/scent-profiles

List predicted scent profiles.

—Available
POST/scent-profiles/predict

Predict the scent profile of a formula from its composition.

—Available
GET/scent-profiles/{id}

Retrieve a profile with note breakdown and confidence.

—Available
GET/dosing-recommendations

List dosing recommendations for a formula.

—Available
POST/dosing-recommendations

Request an AI dosing recommendation under constraints.

—Available
GET/dosing-recommendations/{id}

Retrieve a recommendation with per-ingredient rationale.

—Available
GET/formulas

List formulas in the workspace.

—Available
POST/formulas

Create a formula from an ingredient list.

—Available
GET/formulas/{id}

Retrieve a formula with composition and cost breakdown.

—Available
POST/formulas/{id}/simplify

Run a simplification job that removes redundant ingredients.

—Available
POST/formulas/{id}/optimize

Run an optimization job toward a goal.

—Available
GET/formulas/{id}/jobs/{job_id}

Poll a simplification or optimization job.

—Available

Webhook events differ too: Life Sciences emits document and deviation events, Specialty Chemicals emits formula, dosing and scent-profile events. Shared events (agent runs, integration health) fire in both.

Documents (Scripe)

Regulatory documents, AI drafts, review state and the immutable audit trail.

GET/documents

List documents in the workspace.

ParameterTypeDescription
statusstringdraft | in_review | approved | archived
productstringFilter by product family.
limitinteger1–100, default 25.
cursorstringOpaque pagination cursor.
{
  "data": [
    {
      "id": "doc_8f1c2b",
      "title": "Module 3.2.P.5 — Control of Drug Product",
      "status": "in_review",
      "owner": "t.herrera@novaris-pharma.com",
      "version": 4,
      "updated_at": "2026-08-28T09:12:44Z"
    }
  ],
  "next_cursor": "eyJvIjoyNX0"
}
POST/documents

Create a document from a template.

ParameterTypeDescription
template_idrequiredstringTemplate to instantiate.
titlerequiredstringDocument title.
metadataobjectFree-form key/value metadata.
GET/documents/{id}

Retrieve a single document with its current version.

PATCH/documents/{id}

Update title, metadata or review status.

POST/documents/{id}/draft

Run an AI drafting job on one or more sections.

ParameterTypeDescription
sectionsrequiredstring[]Section identifiers to draft.
sourcesstring[]Integration or data-product IDs to ground on.
GET/documents/{id}/audit

Return the 21 CFR Part 11 audit trail for the document.

Deviations (Devia)

Deviation intake, classification, root cause analysis and CAPA records.

GET/deviations

List deviations.

ParameterTypeDescription
severitystringminor | major | critical
statestringopen | investigating | capa | closed
sitestringManufacturing site code.
POST/deviations

Create a deviation from a description or QMS payload.

GET/deviations/{id}

Retrieve a deviation with classification and linked batches.

POST/deviations/{id}/rca

Trigger an AI root cause analysis.

{
  "id": "rca_2ad91",
  "deviation_id": "dev_5512",
  "status": "completed",
  "probable_causes": [
    { "cause": "Filter integrity test performed post-hold", "confidence": 0.82 },
    { "cause": "Operator step sequencing deviation", "confidence": 0.41 }
  ],
  "evidence": ["batch_9921", "sop_FIL-014", "dev_4188"],
  "generated_at": "2026-09-01T06:44:10Z"
}
POST/deviations/{id}/capa

Draft or attach a CAPA record.

Data & pipelines (Structure)

Pipelines, runs, data products, lineage and quality scores.

GET/pipelines

List pipelines and their schedules.

POST/pipelines/{id}/runs

Trigger a pipeline run.

ParameterTypeDescription
modestringfull | incremental (default incremental).
idempotency_keystringSafely retry the same run request.
GET/pipelines/{id}/runs/{run_id}

Retrieve run status, row counts and errors.

GET/data-products

List governed data products in the catalog.

GET/data-products/{id}/lineage

Return upstream and downstream lineage as a graph.

Deterministic LLM

Prompt registry, locked generation parameters and reproducibility attestations.

GET/deterministic/prompts

List prompts in the workspace registry.

POST/deterministic/prompts

Create a new prompt version with metadata hash.

GET/deterministic/prompts/{id}

Retrieve a prompt and its version history.

POST/deterministic/generate

Generate text with locked temperature, top_p and seed.

POST/deterministic/reproducibility-checks

Run a reproducibility check against a previous output hash.

GET/deterministic/reproducibility-checks/{id}

Retrieve a check result with pass/fail and diff.

Intelligence

Proactive priority briefing and ask endpoints that turn system signals into ranked, owned actions.

GET/priorities

List ranked priorities for the workspace.

ParameterTypeDescription
teamstringFilter by team or owner.
urgencystringlow | medium | high | critical
limitinteger1–100, default 25.
GET/priorities/{id}

Retrieve a priority with context, blockers and next steps.

POST/priorities/{id}/assign

Assign or reassign a priority to a team member.

POST/priorities/{id}/start

Mark a priority as in progress and record the action in the audit trail.

POST/intelligence/ask

Ask a natural-language question of the workspace knowledge graph.

ParameterTypeDescription
questionrequiredstringQuestion text.
contextobjectOptional record IDs or filters to ground the answer.
POST/intelligence/autopilot

Queue an autopilot run for integrated systems. Returns a run URL.

Compliance

Audit-grade records, electronic signatures, document control, access logs and control checks.

GET/audit/events

List audit events with chain integrity hashes.

GET/audit/events/{id}

Retrieve a single audit event with before/after state.

GET/audit/verify

Verify the hash chain from a given event to GENESIS.

GET/signatures/queue

List pending electronic signatures.

POST/signatures/{id}/sign

Apply an electronic signature with meaning and TOTP.

POST/signatures/{id}/reject

Reject a signature request with reason.

GET/documents/controlled

List controlled documents under review.

POST/documents/controlled/{id}/approve

Approve a controlled document version.

GET/access-logs

List record and system access events.

GET/control-checks

List Part 11 / Annex 11 control checks and status.

Agents & skills

Custom agents built in Skills, their skill bindings and execution runs.

GET/agents

List agents available to the caller.

POST/agents

Create an agent.

ParameterTypeDescription
namerequiredstringDisplay name.
skillsrequiredstring[]Skill IDs the agent may call.
connectionsstring[]Integration IDs the agent may read.
review_policystringnone | reviewer | dual_signature
POST/agents/{id}/runs

Execute an agent task. Long-running tasks return 202 with a run URL.

curl -X POST https://api.visium.ai/v1/agents/agt_31f/runs \
  -H "Authorization: Bearer $VISIUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "Summarise open critical deviations for site BASEL-2",
    "stream": false
  }'
GET/agents/{id}/runs/{run_id}

Poll a run: status, output, tool calls and citations.

GET/skills

List skills in the library with input/output schemas.

Integrations

Integrated source systems, sync jobs and health.

GET/connections

List integrations with health and last sync.

POST/connections

Register an integration. Credentials are vaulted and never returned.

POST/connections/{id}/sync

Trigger an on-demand sync.

DELETE/connections/{id}

Remove an integration and revoke its credentials.

Customization

The library of delivered modules and the ones pinned to a workspace menu.

GET/modules

List library modules.

ParameterTypeDescription
categorystringFilter by domain, e.g. Clinical.
tagstringFilter by tag, repeatable.
GET/modules/{id}

Retrieve a module profile with leaders, metrics and stack.

POST/workspace/modules

Add a module to the workspace menu.

DELETE/workspace/modules/{id}

Remove a module from the workspace menu.

GET/workspace/menu

Return the current workspace menu configuration.

PATCH/workspace/menu

Reorder or hide/show menu entries with reason-for-change.

Notifications

User notifications, read state and delivery preferences.

GET/notifications

List notifications for the authenticated user.

POST/notifications/{id}/read

Mark a single notification as read.

POST/notifications/read-all

Mark every notification as read.

GET/notifications/preferences

Retrieve notification channel preferences.

PATCH/notifications/preferences

Update notification channel preferences.

Team & access

Members, invitations and per-module role assignments.

GET/members

List workspace members with module roles.

POST/invitations

Invite a colleague.

ParameterTypeDescription
emailrequiredstringRecipient email address.
workspace_rolerequiredstringowner | admin | member
DELETE/invitations/{id}

Revoke a pending invitation.

PATCH/members/{id}

Update workspace role or module permissions.

Webhooks

Register an HTTPS endpoint in Admin → Webhooks. Visium POSTs a JSON event and signs the raw body with HMAC-SHA256 in the Visium-Signature header. Verify the signature before trusting the payload, respond 2xx within 10 seconds, and expect at-least-once delivery with exponential backoff for 24 hours.

document.drafted

An AI drafting job completed on a document section.

document.approved

A document reached approved state with signatures captured.

deviation.created

A new deviation was recorded.

deviation.rca_completed

Root cause analysis finished and is ready for review.

capa.due_soon

A CAPA is approaching its due date.

deterministic.prompt_locked

A prompt version was locked with a content hash.

signature.requested

A compliance signature was requested for a controlled record.

priority.task_created

A new proactive priority was created by Intelligence.

priority.task_assigned

A priority was assigned to a team member.

notification.created

A notification was generated for a user.

pipeline.run_failed

A pipeline run failed; payload includes the error summary.

connection.health_degraded

An integration dropped below its health threshold.

agent.run_completed

An agent run finished, with output and tool-call citations.

module.menu_changed

A module or product was added or removed from a workspace menu.

audit.event_recorded

A new event was appended to the immutable audit trail.

POST /your-endpoint
Visium-Signature: t=1756708000,v1=6f3c…
Content-Type: application/json

{
  "id": "evt_71bc9",
  "type": "deviation.rca_completed",
  "workspace": "ws_novaris",
  "created_at": "2026-09-01T06:44:10Z",
  "data": { "deviation_id": "dev_5512", "rca_id": "rca_2ad91" }
}

Errors

Errors return a machine-readable code, a human message and a request ID to quote in support tickets.

{
  "error": {
    "code": "forbidden",
    "message": "API key lacks 'editor' on module 'devin'.",
    "request_id": "req_0d41ba9c"
  }
}
StatusCodeMeaning
400invalid_requestMalformed JSON or a failed schema validation. The response lists each field error.
401unauthenticatedMissing, malformed or revoked API key.
403forbiddenThe key is valid but lacks the module role required for this operation.
404not_foundThe resource does not exist in this workspace.
409conflictVersion conflict — refetch the resource and retry with the current version.
422unprocessableThe request is valid but the action is not allowed in the current record state.
429rate_limitedToo many requests. Back off using the Retry-After header.
500internal_errorUnexpected failure. Retries are safe with an idempotency key.

Rate limits

Read endpoints

600 req / min

Write endpoints

120 req / min

Agent runs

30 concurrent

Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. On 429, honour Retry-After and back off exponentially with jitter.

Compliance notes

  • • Every API write is captured in the 21 CFR Part 11 audit trail with actor, timestamp, before/after state and reason-for-change when supplied.
  • • Send Visium-Reason on regulated writes to record the change rationale.
  • • Electronic signatures are applied through dedicated signature endpoints, never inferred from an API call.
  • • Data residency follows the workspace region (US, EU, UK); the API never moves records across regions.
  • • Sandbox workspaces mirror production schemas so validation scripts run unchanged.