Files
documente/docs
Luca Sacchi Ricciardi fe88bf2ca1 refactor: fix linting issues and code quality
- Fix import ordering in __init__.py
- Remove unused imports from dependencies.py
- Fix import sorting across multiple files
- Apply ruff auto-fixes

No functional changes
2026-04-06 01:19:38 +02:00
..

Documentation

Benvenuto nella documentazione di NotebookLM Agent API.

Indice

Panoramica

NotebookLM Agent API fornisce:

  1. REST API per gestire notebook, fonti, chat e generazione contenuti
  2. Webhook System per notifiche event-driven
  3. AI Skill per integrazione con agenti AI

Endpoint Principali

Notebook Management

  • POST /api/v1/notebooks - Creare notebook
  • GET /api/v1/notebooks - Listare notebook
  • GET /api/v1/notebooks/{id} - Ottenere notebook
  • DELETE /api/v1/notebooks/{id} - Eliminare notebook

Source Management

  • POST /api/v1/notebooks/{id}/sources - Aggiungere fonte
  • GET /api/v1/notebooks/{id}/sources - Listare fonti
  • POST /api/v1/notebooks/{id}/sources/research - Ricerca web

Content Generation

  • POST /api/v1/notebooks/{id}/generate/audio - Generare podcast
  • POST /api/v1/notebooks/{id}/generate/video - Generare video
  • POST /api/v1/notebooks/{id}/generate/quiz - Generare quiz
  • POST /api/v1/notebooks/{id}/generate/flashcards - Generare flashcard

Webhooks

  • POST /api/v1/webhooks - Registrare webhook
  • GET /api/v1/webhooks - Listare webhook
  • POST /api/v1/webhooks/{id}/test - Testare webhook

Autenticazione

Tutte le richieste API richiedono header X-API-Key:

curl http://localhost:8000/api/v1/notebooks \
  -H "X-API-Key: your-api-key"

Webhook Security

I webhook includono firma HMAC-SHA256 nell'header X-Webhook-Signature:

import hmac
import hashlib

signature = hmac.new(
    secret.encode(),
    payload.encode(),
    hashlib.sha256
).hexdigest()

Risorse