Skip to content

The REST API directly

If you are working in a language other than Python — or building a service against datalab — you can talk to the REST API yourself.

Prefer the Python client where you can

The REST API is versioned but does change. The client absorbs most of that churn.

Base URL and versioning

Authenticating a request

curl -H "DATALAB-API-KEY: $DATALAB_API_KEY" \
     https://demo.datalab-org.io/info

The endpoints you will actually use

Endpoint Purpose
/info Instance metadata, version, available types
/items List and create items
/get-item-data/<refcode> Fetch a single item with its blocks
/collections Collections
/files Upload and attach

Interactive schema