SKILL.md--- name: labarchive-integration description: Integrates with the official LabArchives ELN REST-like API and Inventory API v1. Supports regional endpoint selection, signed-request construction, user authorization and UID flows, local LA container validation, and verified LabArchives integration workflows. license: MIT compatibility: >- Requires Python 3.11+ and uv for bundled local tools, plus network access for official documentation or remote API calls. LabArchives issues an Access Key ID and Access Password; user-scoped calls also need a UID, and Inventory calls require Inventory API permission; lab-scoped calls also need a Lab ID. Bundled scripts read only named LABARCHIVES_* environment variables and never load .env files. metadata: version: "1.4" last-reviewed: "2026-09-30" skill-author: K-Dense Inc. --- # LabArchives Integration Use LabArchives APIs only from current, official method pages. The public documentation is a shared notebook, not a versioned SDK reference, so verify the specific page immediately before implementing a remote operation. ## Choose the Correct Surface Do not combine these interfaces: - **Legacy ELN API:** notebook trees, entries, attachments, users, searches, exports, and site-license functions. It uses regional `*api.labarchives.com` hosts, `/api/<class>/<method>` paths, XML for many responses, and signed query parameters. - **Inventory API v1:** inventory, item types, orders, storage locations, and vendors. It documents relative `/public/v1/...` paths, JSON response schemas, and signed `X-LabArchives-*` request headers. - **Product integrations:** Jupyter, REDCap, Protocols.io, GraphPad Prism, SnapGene, Geneious, and others are product-specific UI or file workflows. They are not evidence of a general LabArchives OAuth 2.0 API. Read [`references/api_reference.md`](references/api_reference.md) before writing API code and [`references/integrations.md`](references/integrations.md) before automating an advertised integration. ## Access and Credentials LabArchives ELN developer API access is an Enterprise capability. The current Inventory FAQ limits Inventory API access to Enterprise and Enterprise Plus licensees and requires an Inventory account with API permission. Contact the institution's LabArchives team or LabArchives support for access and the development documentation supplied with it. The environment names below are conventions of this skill, not vendor-defined standards: - `LABARCHIVES_ELN_API_URL` — one exact regional ELN API URL ending in `/api` - `LABARCHIVES_ACCESS_KEY_ID` — LabArchives-issued Access Key ID (`akid`) - `LABARCHIVES_ACCESS_PASSWORD` — HMAC signing secret - `LABARCHIVES_USER_ID` — optional persistent UID bound to that Access Key ID - `LABARCHIVES_INVENTORY_LAB_ID` — required for lab-scoped Inventory requests; omitted during `GET /public/v1/users/me` lab discovery Keep secrets in the process env