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.
- •Stable versioning. Path-based
/v1namespace 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.
/documentsList documents in the workspace.
| Parameter | Type | Description |
|---|---|---|
| status | string | draft | in_review | approved | archived |
| product | string | Filter by product family. |
| limit | integer | 1–100, default 25. |
| cursor | string | Opaque 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"
}/documentsCreate a document from a template.
| Parameter | Type | Description |
|---|---|---|
| template_idrequired | string | Template to instantiate. |
| titlerequired | string | Document title. |
| metadata | object | Free-form key/value metadata. |
/documents/{id}Retrieve a single document with its current version.
/documents/{id}Update title, metadata or review status.
/documents/{id}/draftRun an AI drafting job on one or more sections.
| Parameter | Type | Description |
|---|---|---|
| sectionsrequired | string[] | Section identifiers to draft. |
| sources | string[] | Integration or data-product IDs to ground on. |
/documents/{id}/auditReturn the 21 CFR Part 11 audit trail for the document.
Deviations (Devia)
Deviation intake, classification, root cause analysis and CAPA records.
/deviationsList deviations.
| Parameter | Type | Description |
|---|---|---|
| severity | string | minor | major | critical |
| state | string | open | investigating | capa | closed |
| site | string | Manufacturing site code. |
/deviationsCreate a deviation from a description or QMS payload.
/deviations/{id}Retrieve a deviation with classification and linked batches.
/deviations/{id}/rcaTrigger 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"
}/deviations/{id}/capaDraft or attach a CAPA record.
Data & pipelines (Structure)
Pipelines, runs, data products, lineage and quality scores.
/pipelinesList pipelines and their schedules.
/pipelines/{id}/runsTrigger a pipeline run.
| Parameter | Type | Description |
|---|---|---|
| mode | string | full | incremental (default incremental). |
| idempotency_key | string | Safely retry the same run request. |
/pipelines/{id}/runs/{run_id}Retrieve run status, row counts and errors.
/data-productsList governed data products in the catalog.
/data-products/{id}/lineageReturn upstream and downstream lineage as a graph.
Deterministic LLM
Prompt registry, locked generation parameters and reproducibility attestations.
/deterministic/promptsList prompts in the workspace registry.
/deterministic/promptsCreate a new prompt version with metadata hash.
/deterministic/prompts/{id}Retrieve a prompt and its version history.
/deterministic/generateGenerate text with locked temperature, top_p and seed.
/deterministic/reproducibility-checksRun a reproducibility check against a previous output hash.
/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.
/prioritiesList ranked priorities for the workspace.
| Parameter | Type | Description |
|---|---|---|
| team | string | Filter by team or owner. |
| urgency | string | low | medium | high | critical |
| limit | integer | 1–100, default 25. |
/priorities/{id}Retrieve a priority with context, blockers and next steps.
/priorities/{id}/assignAssign or reassign a priority to a team member.
/priorities/{id}/startMark a priority as in progress and record the action in the audit trail.
/intelligence/askAsk a natural-language question of the workspace knowledge graph.
| Parameter | Type | Description |
|---|---|---|
| questionrequired | string | Question text. |
| context | object | Optional record IDs or filters to ground the answer. |
/intelligence/autopilotQueue an autopilot run for integrated systems. Returns a run URL.
Compliance
Audit-grade records, electronic signatures, document control, access logs and control checks.
/audit/eventsList audit events with chain integrity hashes.
/audit/events/{id}Retrieve a single audit event with before/after state.
/audit/verifyVerify the hash chain from a given event to GENESIS.
/signatures/queueList pending electronic signatures.
/signatures/{id}/signApply an electronic signature with meaning and TOTP.
/signatures/{id}/rejectReject a signature request with reason.
/documents/controlledList controlled documents under review.
/documents/controlled/{id}/approveApprove a controlled document version.
/access-logsList record and system access events.
/control-checksList Part 11 / Annex 11 control checks and status.
Agents & skills
Custom agents built in Skills, their skill bindings and execution runs.
/agentsList agents available to the caller.
/agentsCreate an agent.
| Parameter | Type | Description |
|---|---|---|
| namerequired | string | Display name. |
| skillsrequired | string[] | Skill IDs the agent may call. |
| connections | string[] | Integration IDs the agent may read. |
| review_policy | string | none | reviewer | dual_signature |
/agents/{id}/runsExecute 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
}'/agents/{id}/runs/{run_id}Poll a run: status, output, tool calls and citations.
/skillsList skills in the library with input/output schemas.
Integrations
Integrated source systems, sync jobs and health.
/connectionsList integrations with health and last sync.
/connectionsRegister an integration. Credentials are vaulted and never returned.
/connections/{id}/syncTrigger an on-demand sync.
/connections/{id}Remove an integration and revoke its credentials.
Customization
The library of delivered modules and the ones pinned to a workspace menu.
/modulesList library modules.
| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by domain, e.g. Clinical. |
| tag | string | Filter by tag, repeatable. |
/modules/{id}Retrieve a module profile with leaders, metrics and stack.
/workspace/modulesAdd a module to the workspace menu.
/workspace/modules/{id}Remove a module from the workspace menu.
/workspace/menuReturn the current workspace menu configuration.
/workspace/menuReorder or hide/show menu entries with reason-for-change.
Notifications
User notifications, read state and delivery preferences.
/notificationsList notifications for the authenticated user.
/notifications/{id}/readMark a single notification as read.
/notifications/read-allMark every notification as read.
/notifications/preferencesRetrieve notification channel preferences.
/notifications/preferencesUpdate notification channel preferences.
Team & access
Members, invitations and per-module role assignments.
/membersList workspace members with module roles.
/invitationsInvite a colleague.
| Parameter | Type | Description |
|---|---|---|
| emailrequired | string | Recipient email address. |
| workspace_rolerequired | string | owner | admin | member |
/invitations/{id}Revoke a pending invitation.
/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.draftedAn AI drafting job completed on a document section.
document.approvedA document reached approved state with signatures captured.
deviation.createdA new deviation was recorded.
deviation.rca_completedRoot cause analysis finished and is ready for review.
capa.due_soonA CAPA is approaching its due date.
deterministic.prompt_lockedA prompt version was locked with a content hash.
signature.requestedA compliance signature was requested for a controlled record.
priority.task_createdA new proactive priority was created by Intelligence.
priority.task_assignedA priority was assigned to a team member.
notification.createdA notification was generated for a user.
pipeline.run_failedA pipeline run failed; payload includes the error summary.
connection.health_degradedAn integration dropped below its health threshold.
agent.run_completedAn agent run finished, with output and tool-call citations.
module.menu_changedA module or product was added or removed from a workspace menu.
audit.event_recordedA 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"
}
}| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | Malformed JSON or a failed schema validation. The response lists each field error. |
| 401 | unauthenticated | Missing, malformed or revoked API key. |
| 403 | forbidden | The key is valid but lacks the module role required for this operation. |
| 404 | not_found | The resource does not exist in this workspace. |
| 409 | conflict | Version conflict — refetch the resource and retry with the current version. |
| 422 | unprocessable | The request is valid but the action is not allowed in the current record state. |
| 429 | rate_limited | Too many requests. Back off using the Retry-After header. |
| 500 | internal_error | Unexpected 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.