Xano — New API Endpoint Checklist
Every Xano endpoint must validate the auth token first, check permissions from the database (never from the request), validate all inputs, return standard error formats, and be documented before frontend handoff.
Contents
| # | Section |
|---|---|
| 1 | Before You Build |
| 2 | Endpoint Naming |
| 3 | Step 1 — Auth Token Validation |
| 4 | Step 2 — Permission Check |
| 5 | Step 3 — Input Validation |
| 6 | Step 4 — Business Logic |
| 7 | Step 5 — Response Format |
| 8 | Reusable Functions |
| 9 | Documentation Requirements |
| 10 | Testing Requirements |
| 11 | Xano Endpoint Checklist — Before Marking Done |
Before You Build
Auth, Permission, and Validation
Business Logic and Response Format
| Code | Meaning | HTTP Status |
|---|---|---|
AUTH_REQUIRED | Not authenticated | 401 |
FORBIDDEN | No permission | 403 |
NOT_FOUND | Resource does not exist | 404 |
DUPLICATE | Already exists | 409 |
VALIDATION_ERROR | Invalid or missing input | 400 |
BUSINESS_RULE_VIOLATION | Logic rule failed | 422 |
SERVER_ERROR | Unexpected error | 500 |
