Introduction
Labric is a platform for managing scientific data, lab instruments, and automated analysis workflows. The Labric API gives you programmatic access to your data — query datasets, manage files, trigger jobs, and more.
Base URL
All API requests are made to:
Authentication
Authenticate by including your API key as a Bearer token in the Authorization header:
API keys use the format lbk_<prefix>_<secret>. Each key can be scoped to read, write, or admin permissions.
Treat your API key like a password. It is only shown once when created — store it somewhere secure.
Getting an API key
- Log in to Labric
- Go to Settings > API Keys
- Click New, give your key a name, and select the scopes you need
- Copy the key immediately — it won’t be shown again
Using the Python SDK
If you’re working in a Labric Job, you don’t need to manage keys at all. The environment is pre-configured with a LABRIC_API_KEY and the SDK is available out of the box:
Jobs run in isolated sandboxes with ephemeral API keys that are automatically provisioned and cleaned up.
Core resources
See the API Reference for full endpoint documentation.
Jobs
Jobs let you write Python scripts that run automatically when files are uploaded, or on demand via the API. When a job executes, Labric provisions a sandboxed environment with: