API reference

Endpoint documentation for the Labric API
View as Markdown

The Labric API is a REST API served from:

https://platform.labric.co/api

Every endpoint authenticates with a Bearer API key (lbk_...) in the Authorization header. Keys are scoped to read, write, or admin — each endpoint’s documentation notes the scope it requires. See the Introduction for how to create a key.

The Python SDK wraps these endpoints one-to-one:

1from labric import Labric
2
3client = Labric(api_key="lbk_your_api_key")

Inside a Labric Job, Labric() picks up the pre-provisioned LABRIC_API_KEY automatically.