Skip to content

List notebooks of a project

get/v2/projects/{ref}/notebooks

Returns a cursor-paginated list of the project notebooks. Notebook bodies are omitted — read a single notebook to get its cells.

OAuth scopes

  • database:read

The fine-grained token must include the following permissions to access this endpoint:

  • project_notebooks_read

Path parameters

  • ref
    Required
    string

    Project ref

Query parameters

  • page
    Optional
    object
  • filter
    Optional
    object
  • sort
    Optional
    enum

Response codes

  • 200
  • 401
  • 403
  • 429
  • 500

Response (200)

{
"data": [
{
"type": "notebook",
"id": "lorem",
"attributes": {
"name": "lorem",
"description": "lorem",
"favorite": true,
"inserted_at": "lorem",
"updated_at": "lorem",
"owner": {
"id": 42,
"username": "lorem"
},
"updated_by": {
"id": 42,
"username": "lorem"
}
}
}
],
"links": {
"first": "/v2/projects/{ref}/notebooks?page[size]=10",
"prev": "/v2/projects/{ref}/notebooks?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7",
"next": "/v2/projects/{ref}/notebooks?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4",
"last": "/v2/projects/{ref}/notebooks?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295"
}
}
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Resource type.",
"enum": [
"notebook"
]
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string",
"nullable": true
},
"favorite": {
"type": "boolean"
},
"inserted_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"username": {
"type": "string"
}
},
"required": [
"id",
"username"
],
"description": "User who created the notebook.",
"nullable": true
},
"updated_by": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"username": {
"type": "string"
}
},
"required": [
"id",
"username"
],
"description": "User who last wrote to the notebook.",
"nullable": true
}
},
"required": [
"name",
"description",
"favorite",
"inserted_at",
"updated_at",
"owner",
"updated_by"
]
}
},
"required": [
"type",
"id",
"attributes"
]
}
},
"links": {
"type": "object",
"properties": {
"first": {
"type": "string",
"description": "URL path to the first page if available.",
"example": "/v2/projects/{ref}/notebooks?page[size]=10",
"nullable": true
},
"prev": {
"type": "string",
"description": "URL path to the previous page.",
"example": "/v2/projects/{ref}/notebooks?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7",
"nullable": true
},
"next": {
"type": "string",
"description": "URL path to the next page.",
"example": "/v2/projects/{ref}/notebooks?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4",
"nullable": true
},
"last": {
"type": "string",
"description": "URL path to the last page if available.",
"example": "/v2/projects/{ref}/notebooks?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295",
"nullable": true
}
},
"required": [
"prev",
"next"
]
}
},
"required": [
"data",
"links"
]
}