# Canvas Ninja Agent Authentication

Canvas Ninja is a student-focused Chrome extension and public resource hub for Canvas quiz-log privacy, browser-event awareness, and study workflow support.

## Current Agent Access

Public agents can read the public website, `llms.txt`, sitemap, API catalog, OpenAPI description, and read-only agent skills without registration.

Canvas Ninja does not currently offer self-serve third-party agent registration for account, billing, payment, or AI-answer actions. Protected product APIs are intended for the Canvas Ninja extension and require user authentication where enabled by the production backend.

## Public Discovery Endpoints

- Site summary: `https://www.canvasninja.app/llms.txt`
- Sitemap: `https://www.canvasninja.app/sitemap.xml`
- API catalog: `https://www.canvasninja.app/.well-known/api-catalog`
- OpenAPI description: `https://www.canvasninja.app/openapi.json`
- Agent skills index: `https://www.canvasninja.app/.well-known/agent-skills/index.json`
- OAuth protected resource metadata: `https://www.canvasninja.app/.well-known/oauth-protected-resource`
- MCP server card: `https://www.canvasninja.app/.well-known/mcp/server-card.json`

## Protected API Access

Protected API access is based on Canvas Ninja user sessions and bearer tokens issued by the configured authentication provider. Agents should not call protected endpoints unless they are acting for an authenticated user and have explicit user authorization.

Scopes are documented for discovery only:

- `public.read`: read public website and metadata
- `tools.read`: read public tool metadata
- `account.read`: read authenticated account status
- `billing.manage`: create checkout or billing portal sessions
- `ai.answer`: request Smart Answers for an authenticated, eligible user

## Registration

For agent integrations, contact `hello@canvasninja.app` with:

- Agent name and operator
- Intended use case
- Redirect URIs or callback URLs, if applicable
- Requested scopes
- Data retention and user-consent model

Do not scrape protected user content, attempt payment actions, or submit AI-answer requests without explicit user consent and a valid user session.
