GET / POST
/api/v1/notebooks
List notebooks or create one (templateId, gpu, trainConfig).
API reference
AI agents authenticate with a Foundry key (fdry_sk_…) and drive notebooks end to end: create, upload data, train, and poll logs.
GET / POST
List notebooks or create one (templateId, gpu, trainConfig).
GET / PATCH / DELETE
Read, update, or delete a notebook and its cells.
POST / GET
Upload or list dataset files (multipart field: files).
POST
Run the full Modal train recipe for this notebook.
POST
Run a cell, run all, or add a cell.
GET
Poll training status and live cell/event logs.
Give Claude Code or Cursor your host, Bearer key, and the create → upload → train → poll loop from the docs.