List lab notebooks
Requires scope `runs:read`. To list a lab notebook's runs, filter a run list by `lab_notebook_id`.
Requires scope runs:read. To list a lab notebook's runs, filter a run list by lab_notebook_id.
Authorization
bearerAuth Personal access tokens begin with dhub_… and are restricted by their assigned scopes.
In: header
Query Parameters
Text in a lab notebook's name, description, or link, ignoring case. A pasted link, with or without https://, matches only the lab notebook for that page.
Lists only lab notebooks this user owns.
true lists deleted lab notebooks too.
Value in
- "true"
- "false"
last_run (default): when the newest run started. name, run_count, or created.
Value in
- "last_run"
- "name"
- "run_count"
- "created"
Defaults to asc for name and desc for the others.
Value in
- "asc"
- "desc"
1 <= valueDefaults to 50.
1 <= value <= 200Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/lab-notebooks"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "string", "url_key": "string", "name": "string", "description": "string", "owner": { "id": "string", "displayName": "string", "initials": "string", "avatarUrl": "string" }, "run_count": 0, "instrument_count": 0, "last_run_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "created_by": { "id": "string", "displayName": "string", "initials": "string", "avatarUrl": "string" }, "created_by_token": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "updated_at": "2019-08-24T14:15:22Z", "updated_by": { "id": "string", "displayName": "string", "initials": "string", "avatarUrl": "string" }, "updated_by_token": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "deleted_at": "2019-08-24T14:15:22Z", "deleted_by": { "id": "string", "displayName": "string", "initials": "string", "avatarUrl": "string" }, "deleted_by_token": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" } } ], "pagination": { "page": 0, "per_page": 0, "total": 0, "total_pages": 0 }}{ "error": { "code": "string", "message": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "details": { "property1": null, "property2": null } }}{ "error": { "code": "string", "message": "string", "details": { "property1": null, "property2": null } }}Delete a run comment DELETE
Requires scope `runs:comment`. A token that registered a watcher may act only on instruments whose active watcher it registered, and gets 403 for any other.
Create a lab notebook POST
Requires scope `lab-notebooks:write`. A lab notebook is one page, such as a Notion page. Send `runs` to add runs in the same request; each one gets its own outcome, as in `POST /lab-notebooks/{labNotebookId}/runs`. Returns 409 when another lab notebook already has the page, deleted ones included: `details.lab_notebook_id` names that lab notebook and `details.deleted` says whether it is deleted. Restore a deleted one instead. Returns 400 when `owner_id` names no user. A token that registered a watcher gets 403. It may only add its own instrument's runs to a lab notebook and remove them.