# Agentix — AI Code Validation API > https://siamsmartweb.com Agentix is an AI code validation API that checks AI-generated code against **live documentation** for 48+ libraries. It catches wrong imports, deprecated APIs, version mismatches, and framework convention violations. ## Core Use Case Validate AI-generated code before it reaches your codebase. Every line is checked against indexed docs for your exact library versions. ## Quick Start 1. Sign up at https://siamsmartweb.com/signup for a free API key 2. Visit the dashboard at https://siamsmartweb.com/dashboard to get a ready-made prompt for your AI agent 3. Include the key and endpoint in your AI agent's system prompt 4. Agent sends generated code to `POST /api/validate` for validation before presenting results ## API Reference - **Docs:** https://siamsmartweb.com/docs - **OpenAPI:** https://siamsmartweb.com/openapi.json - **Base URL:** https://siamsmartweb.com ### POST /api/validate Validate AI-generated code against live docs. Auth: `Authorization: Bearer ca_liv_...` Request body: - `code` (required): string — Code snippet to validate - `files` (optional): object — Project files keyed by path; `package.json` used for dependency detection - `task` (optional): string — Task description for context-aware validation Response: ```json { "data": { "valid": true, "issues": [{ "line": 3, "column": 5, "message": "...", "severity": "error" }], "summary": "1 issue found", "checked_libraries": ["Next.js"] }, "usage": { "credits_used": 1, "credits_remaining": 199 } } ``` ### POST /api/detect-stack Analyze package.json to detect framework and dependencies. ### GET /api/usage Check remaining credits and usage history. ### POST /api/skills/resolve Resolve skills with context injection and get compiled prompts. ### GET /api/docs List all libraries indexed in docs cache. ### GET /api/docs/check-stale Check which indexed libraries have newer versions. ## Supported Libraries (48+) | Category | Libraries | |----------|-----------| | **Frameworks** | Next.js, React, Express.js, Hono, React Native / Expo, Three.js, tRPC | | **Styling** | Tailwind CSS, shadcn/ui, Radix UI, Headless UI, Framer Motion, GSAP, Panda CSS, Lucide | | **Data** | Supabase, Prisma, Drizzle ORM, Kysely, better-sqlite3, Redis, Stripe, Axios, Socket.io | | **Auth** | Clerk, Better Auth, Auth.js / NextAuth.js, Lucia Auth | | **State & Forms** | Zustand, Jotai, Redux Toolkit, TanStack Query, SWR, Immer, Zod, React Hook Form | | **Testing** | Vitest, Testing Library, Playwright, Cypress | | **Infra** | Vercel, Cloudflare, Docker, Resend, date-fns, Sharp, next-intl | ## Pricing - **Free**: $0/mo — 200 API calls/month, 2 projects - **Pro**: $12/mo — $100 credits, 1,000 reviews, unlimited projects - **Team**: $29/mo — $500 credits, 5,000 reviews, unlimited projects - **Scale**: $99/mo — $2,500 credits, 25,000 reviews, unlimited projects ## Site Pages - Landing: https://siamsmartweb.com - API Docs: https://siamsmartweb.com/docs - Dashboard: https://siamsmartweb.com/dashboard - Login: https://siamsmartweb.com/login - Sign Up: https://siamsmartweb.com/signup - Privacy: https://siamsmartweb.com/privacy - OpenAPI Spec: https://siamsmartweb.com/openapi.json - Sitemap: https://siamsmartweb.com/sitemap.xml ## Contact - Info: info@siamsmartweb.com - GitHub: https://github.com/oknedz/siamsmartweb