notebooks

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-notebooks"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/f664b592-f24e-4664-aff4-0e74fbfbf510/social-card.svg?v=3e7ae33eec8b" alt="notebooks" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/notebooksScope notebook:read

Parameters

project_idstringpathrequired
limitintegerquery
qstringquery
cursorstringquery

Code 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[]required
Show child parameters
contentobjectrequired
{"blocks": [...]}
created_atstringrequired
created_bystring
idstringrequired
titlestringrequired
updated_atstringrequired
versionintegerrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/notebooksScope notebook:write

Parameters

project_idstringpathrequired

Request 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_atstringrequired
created_bystring
idstringrequired
titlestringrequired
updated_atstringrequired
versionintegerrequired
400
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/notebooks/{id}Scope notebook:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/notebooks/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

404
DELETEhttps://lucidace.com/v1/projects/{project_id}/notebooks/{id}Scope notebook:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/notebooks/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
PATCHhttps://lucidace.com/v1/projects/{project_id}/notebooks/{id}Scope notebook:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
blocksarray
expected_versioninteger
The 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

Responses

400
403
404
409
GEThttps://lucidace.com/v1/projects/{project_id}/notebooks/{id}/versionsScope notebook:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
contentobjectrequired
created_atstringrequired
created_bystring
titlestringrequired
versionintegerrequired
404
Updated