Tutorials

Xano Quick Start Template - B2B SaaS App

If you're just getting started with Xano — or you need a solid foundation for a B2B SaaS application — the Quick Start Template gives you a pre-built backend scaffold you can build on immediately. Let's walk through everything that's included and how you can use it to launch faster or learn how core Xano concepts work in practice.

What the Template Includes

The Quick Start Template comes with five database tables, multiple API endpoint groups, a built-in AI agent with free test credits, and a front-end demo rendered entirely through a Xano API endpoint. It's intentionally lightweight so you can mold it to your specific use case without tearing things down and starting over.

The Database Structure

You get five tables right out of the box: user, account, event log, message, and conversation. The user table stores names, emails, passwords, roles (member or admin), and password reset schema. The account table represents an organization or company that users can belong to. The event log table captures user activity across your app — great for audits and reporting. The message and conversation tables power the AI agent's memory so conversations can continue across sessions.

Authentication and Password Reset

The template handles the full authentication flow — sign up, log in, and fetching the current user's record. You also get a password reset flow that sends a real email using Xano's free email credits (up to 100 emails to yourself for testing). When you're ready to go further, you can swap in your own email provider via a custom API request or a Xano action. A welcome email endpoint is also included and fully customizable using Xano's HTML template engine.

Role-Based Access Control

One of the most practical pieces of the template is the custom function for role-based access control. It compares a numeric hierarchy — admin is 2, member is 1 — and checks whether the user making a request has the required permission level. If not, it throws an error automatically. You can drop this function at the start of any API endpoint where permissions matter, making it reusable across your entire backend.

User and Account Management

The members and accounts API group lets users create accounts, join existing ones, view team members, update their profile, and — if they have the admin role — change other users' roles. Every one of these actions logs an entry to the event log table, keeping a full trail of activity.

Event Logs and Reporting

The event log API group gives users access to their own activity history, while admins can pull logs for all members on their account. This sets you up to build reporting dashboards, audit trails, or usage analytics without any extra setup.

The AI Agent

The template includes a working AI agent connected to a tool that searches Xano's documentation via an MCP server. It comes with free test credits so you can interact with it immediately. You can update the model host, swap in your own API key, and customize the prompt whenever you're ready to take it further.

Sign up for Xano

Join 100,000+ people already building with Xano.
Start today and scale to millions.