# Axis' Iliad API - Plain Text Reference Version: 0.5.3 | Base URL: https://api.iliad.trustfabric.ai ## Authentication All endpoints accept `Authorization: Bearer ` header. Free tier endpoints work without authentication. Obtain a key: `POST /v1/accounts` with `{email, name, tier: "free"}`. ## Core Endpoints ### POST /v1/analyze Analyze a codebase. Accepts `{github_url}` or `{files: [{path, content}]}`. Returns 152 structured artifacts across 21 programs, each with `path`, `content`, `program`, `placement`, and `adoption_hint`. ### POST /v1/prepare-for-agentic-purchasing One-call commerce hardener for autonomous purchasing agents. Body: `{project_name, project_type, frameworks, goals, files, focus?, agent_type?}` Returns: `{score, score_breakdown, purchasing_artifacts, all_artifacts, how_to_call_axis_again}` ### GET /v1/mcp/tools?q=&program= Search 21 programs / 152 generators by keyword or capability tag. Returns: `{total_matches, results: [{program, tier, score, capability_tags, matching_artifacts, example_call}]}` ### GET /v1/programs List all programs with generator counts and output paths. No auth required. ## Account Management - `POST /v1/accounts` - create account (returns raw_key) - `GET /v1/account` - get account info (auth required) - `POST /v1/account/keys` - create additional API keys - `GET /v1/account/keys` - list keys - `POST /v1/account/keys/:key_id/revoke` - revoke a key - `GET /v1/account/usage` - usage stats - `GET /v1/account/quota` - quota limits ## Snapshot Endpoints (batch workflow) 1. `POST /v1/snapshots` - create snapshot with files 2. `POST /v1//generate` or `analyze` - run a specific program 3. `GET /v1/projects/:project_id/generated-files` - retrieve results 4. `GET /v1/projects/:project_id/export` - download ZIP ## MCP (Model Context Protocol) - `POST /mcp` - Streamable HTTP transport (2025-03-26 spec) - `GET /mcp` - SSE stream for long-running operations - 44 tools: analyze_repo, analyze_files, list_programs, get_snapshot, delete_snapshot, get_artifact, prepare_agentic_purchasing_preview, prepare_agentic_purchasing, closer, deploy, search_and_discover_tools, get_install_manifest, ping_payment, improve_my_agent_with_axis, discover_agentic_purchasing_needs, discover_estate_tools, get_referral_code, get_referral_credits, iliad_web_research, iliad_web_research_crawl, iliad_object_storage, iliad_vector_database, iliad_embeddings, iliad_transactional_email, iliad_llm_inference, iliad_code_sandbox, iliad_document_parsing, iliad_web_search, iliad_text_to_speech, iliad_speech_to_text, iliad_analytics, axis_validate, axis_inspect, axis_compare, axis_manifest_verify, roblox_compliance_check, iliad_hygiene, sca_exemption_decision, grade_compliance, assemble_ce3_evidence, build_ap2_mandate, score_dispute_readiness, assemble_representment, iliad_network_tokenization ## Search & Indexing - `POST /v1/search/index` - build full-text index for a snapshot - `POST /v1/search/query` - query indexed content - `GET /v1/search/:snapshot_id/stats` - index statistics - `GET /v1/search/:snapshot_id/symbols` - symbol list ## Discovery - `GET /.well-known/axis.json` - machine-readable capability manifest - `GET /.well-known/skills/index.json` - agent skills registry (agentskills.io standard) - `GET /llms.txt` - plain-text AI tool instructions (llmstxt.org standard) - `GET /v1/docs` - full OpenAPI 3.1 spec (JSON) - `GET /v1/docs.md` - this document - `GET /for-agents` - machine-readable agent onboarding manifest (JSON) - `GET /v1/install` - platform-specific MCP config snippets - `GET /v1/install/:platform` - config for claude-desktop, cursor, vscode, or claude-code ## Programs (21) | Program | Tier | Key Output | |---------|------|-----------| | search | free | AGENTS.md, .cursorrules, CLAUDE.md | | skills | free | skills.json | | debug | free | debug-playbook.md | | frontend | pro | component-audit.md | | seo | pro | seo-checklist.md | | optimization | pro | optimization-report.md | | theme | pro | design-tokens.json | | brand | pro | brand-guidelines.md | | superpowers | pro | superpower-pack.md | | marketing | pro | marketing-kit.md | | notebook | pro | research-notebook.md | | obsidian | pro | obsidian-vault.md | | mcp | pro | mcp-config.json | | artifacts | pro | .cursorrules, CLAUDE.md | | remotion | pro | remotion-script.tsx | | canvas | pro | canvas-design.md | | algorithmic | pro | algorithm-spec.md | | agentic-purchasing | pro | commerce-registry.json, agent-purchasing-playbook.md |