Overview

The Allternit Document Generator (services/document-generator) is a FastAPI skill server that generates office artifacts: photo-card decks, study guides and rubric spreadsheets. It can also create a Canvas LMS module. Generated files are uploaded to SharePoint and the response returns the file URL. Status: Implementation IMPLEMENTED / Exposure INTERNAL. The service is not mounted behind api.allternit.com; run it yourself and call it directly. The Agent Swarm document-generator tool is the HTTP bridge to it.

Run locally

SharePoint upload uses TENANT_ID, CLIENT_ID and CLIENT_SECRET. If API_KEY is unset the service falls back to the placeholder your-secret-api-key; always set your own.

Authentication

Action endpoints require the X-API-Key header, compared against API_KEY.

Endpoints

Request fields

Example: study guide

Artifact responses share one shape: