Listing Notebook Contents

List pages in a notebook. The content of the pages are not returned, only the metadata.

The endpoint is cursor-paginated, ordered by most recently updated. Use the next and previous links in the response to navigate between pages.

Pages that have been deleted but not yet purged return deleted_at instead of updated_at.

GET /api/notebooks/{username}/{notebook-slug}/

The response structure is:

{
  "next": null,
  "previous": null,
  "editable": true,
  "results": [
    {
      "uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "url": "/api/notebooks/norm/campaign-notes/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "html_url": "https://your5e.com/notebooks/norm/campaign-notes/session-one",
      "filename": "Session One.md",
      "mime_type": "text/markdown",
      "version": 3,
      "created_by": "norm",
      "updated_at": "2024-01-15T10:30:00Z",
      "deleted_at": null,
      "content_hash": "a1b2c3..."
    },
    {
      "uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "url": "/api/notebooks/norm/campaign-notes/b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "html_url": "https://your5e.com/notebooks/norm/campaign-notes/old-draft",
      "filename": "old-draft.md",
      "mime_type": "text/markdown",
      "version": 1,
      "created_by": "norm",
      "updated_at": null,
      "deleted_at": "2024-01-15T08:00:00Z",
      "content_hash": "d4e5f6..."
    },
    {
      ...
    }
  ],
  "total_results": 8
}

Arguments:

Returns 400 Bad Request if the since timestamp format is invalid.

Returns 404 Not Found if the notebook does not exist or you don't have access to it.