notebooks
GET
https://lucidace.com /v1/projects/{project_id}/notebooks Scope notebook:readParameters
project_idstringpathrequiredlimitintegerqueryqstringquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/notebooks"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Notebook, most recently edited first
Example
{
"data": [
{
"content": {},
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"id": "string",
"title": "string",
"updated_at": "2024-01-01T00:00:00Z",
"version": 0
}
],
"next_cursor": "string"
}Schema
dataNotebook[]requiredShow child parameters
contentobjectrequired{"blocks": [...]}created_atstringrequiredcreated_bystringidstringrequiredtitlestringrequiredupdated_atstringrequiredversionintegerrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/notebooks Scope notebook:writeParameters
project_idstringpathrequiredRequest body
application/json
blocksobject[]Ordered blocks, each with an optional
title: markdown{text}, insight{insight_id}, insight_inline{query}, replay{session_id}, playlist{playlist_id}, query{language,text}, persons|events{filters?,limit?}, groups{group_type}, cohort{cohort_id}, flag{flag_key}, image{url,alt}, link{url}, latex{text}, mermaid{text}, table{rows}. At most 200.titlestringrequired{
"blocks": [
{}
],
"title": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/notebooks" \
-H "Content-Type: application/json" \
-d '{"blocks":[{}],"title":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"content": {},
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"id": "string",
"title": "string",
"updated_at": "2024-01-01T00:00:00Z",
"version": 0
}Schema
contentobjectrequired{"blocks": [...]}created_atstringrequiredcreated_bystringidstringrequiredtitlestringrequiredupdated_atstringrequiredversionintegerrequired400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/notebooks/{id} Scope notebook:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/notebooks/{id}"TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/projects/{project_id}/notebooks/{id} Scope notebook:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/notebooks/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
PATCH
https://lucidace.com /v1/projects/{project_id}/notebooks/{id} Scope notebook:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
blocksarrayexpected_versionintegerThe version the editor loaded; a mismatch is a 409.
titlestring{
"blocks": [
{}
],
"expected_version": 0,
"title": "string"
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/notebooks/{id}" \
-H "Content-Type: application/json" \
-d '{"blocks":[{}],"expected_version":0,"title":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/notebooks/{id}/versions Scope notebook:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/notebooks/{id}/versions"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Array of NotebookVersion, newest first
Example
[
{
"content": {},
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"title": "string",
"version": 0
}
]Schema
contentobjectrequiredcreated_atstringrequiredcreated_bystringtitlestringrequiredversionintegerrequired404
Updated