---
title: "HTTP routes"
description: "Every route the package mounts on the deployment and in the Nuxt app: its methods, who calls it, what guards it, and the option that moves it."
canonical_url: "https://nuxt-backend.dev/docs/reference/backend/http-routes"
---
# HTTP routes

> Every route the package mounts on the deployment and in the Nuxt app: its methods, who calls it, what guards it, and the option that moves it.

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

- [API reference](https://nuxt-backend.dev/docs/reference/api/http)
- [Source](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/http.ts)

This page lists every route the package mounts, who calls it, what guards it and the option that moves it, so you can tell a package route from one of yours and know which to open in a firewall or a proxy. The package mounts routes in two places. On the deployment, `registerBackendRoutes` in `backend/http.ts` mounts every inbound route at once: a part left out fails the push, not the first request. In the Nuxt app, the module adds the auth proxy, the health route and the ready-made pages.

Every private page of the package is kept out of search indexes with `noindex`, and a guarded page is guarded by `definePageMeta({ auth })` alone. Both tables below are generated from the code that mounts the routes.

## On the deployment

The deployment's site origin (`*.convex.site`, or your custom domain) serves these:

<table>
<thead>
  <tr>
    <th>
      Route
    </th>
    
    <th>
      Methods
    </th>
    
    <th>
      Called by
    </th>
    
    <th>
      Guarded by
    </th>
    
    <th>
      Moved with
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        /api/auth/*
      </code>
    </td>
    
    <td>
      GET, POST
    </td>
    
    <td>
      The app's auth proxy
    </td>
    
    <td>
      Better Auth: sessions, codes and the route limits <code>
        setupAuth
      </code>
      
       sets
    </td>
    
    <td>
      <code>
        backend.authRoute
      </code>
      
       in nuxt.config, through the paths file
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /billing/events
      </code>
    </td>
    
    <td>
      POST
    </td>
    
    <td>
      The billing provider
    </td>
    
    <td>
      A signed webhook: fail-closed without its secret (503), 1 MiB body cap (413), redelivery deduplicated
    </td>
    
    <td>
      <code>
        billingPath
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /email/events
      </code>
    </td>
    
    <td>
      POST
    </td>
    
    <td>
      The email provider
    </td>
    
    <td>
      A signed webhook: fail-closed without its secret (503), 1 MiB body cap (413), redelivery deduplicated
    </td>
    
    <td>
      <code>
        emailPath
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /ai/stream
      </code>
    </td>
    
    <td>
      POST, OPTIONS
    </td>
    
    <td>
      The browser, through <code>
        useAiStream
      </code>
    </td>
    
    <td>
      A session token; spends credits through the metered stream it starts
    </td>
    
    <td>
      <code>
        aiPath
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /email/unsubscribe
      </code>
    </td>
    
    <td>
      GET, POST
    </td>
    
    <td>
      A mail client's one-click unsubscribe (RFC 8058), from the <code>
        List-Unsubscribe
      </code>
      
       header of every email sent under a topic
    </td>
    
    <td>
      A token signed under <code>
        AUTH_SECRET
      </code>
      
      : <code>
        GET
      </code>
      
       sends the reader to the unsubscribe page, <code>
        POST
      </code>
      
       unsubscribes at once; mounted with the email events route
    </td>
    
    <td>
      fixed
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /storage/<id>
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Whoever holds a URL <code>
        storage.signedUrl
      </code>
      
       minted
    </td>
    
    <td>
      A signature under the app's secret that expires (an hour by default, seven days at most); mounted with <code>
        registerBackendRoutes(http, { storage })
      </code>
    </td>
    
    <td>
      fixed
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /backend/health
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      The app's <code>
        /api/backend/health
      </code>
      
      , or an uptime check
    </td>
    
    <td>
      Public: each capability's state only; the detail for a session of <code>
        adminRoles
      </code>
      
      , or on a deployment named <code>
        development
      </code>
    </td>
    
    <td>
      fixed
    </td>
  </tr>
</tbody>
</table>

Every webhook shares one fail-closed edge: an invalid signature answers `403`, an authentic event of a type the package does not know `202`, a handler that throws `500` (so the provider retries), and the outcome lands in the [delivery log](https://nuxt-backend.dev/docs/ship/security/webhooks).

`/email/events` also takes inbound email: the email provider's `email.received` and `inbox.email.received` events, which the package routes, checks and stores before your handlers see them.

## In the Nuxt app

<table>
<thead>
  <tr>
    <th>
      Route
    </th>
    
    <th>
      Methods
    </th>
    
    <th>
      Access
    </th>
    
    <th>
      What it is
    </th>
    
    <th>
      Moved with
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        /api/auth/**
      </code>
    </td>
    
    <td>
      GET, POST
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The same-origin proxy to the deployment's auth routes
    </td>
    
    <td>
      <code>
        authRoute
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /api/human-proof
      </code>
    </td>
    
    <td>
      POST
    </td>
    
    <td>
      Public, behind the bot check
    </td>
    
    <td>
      Signs a short-lived proof for one call that <code>
        verifyHuman
      </code>
      
       checks
    </td>
    
    <td>
      fixed
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /api/backend/health
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public: each capability's state only; the detail for an admin, or on a deployment named <code>
        development
      </code>
    </td>
    
    <td>
      The app's <a href="https://nuxt-backend.dev/docs/ship/operate/monitoring#the-health-endpoint">
        health
      </a>
      
      , for uptime checks
    </td>
    
    <td>
      fixed
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /api/backend/visitor-ip
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public, never cached
    </td>
    
    <td>
      The caller's own IP address as the app's server sees it, which a checkout forwards for the billing provider's local pricing; nothing keeps it
    </td>
    
    <td>
      fixed
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /_backend/push/worker.js
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The web push service worker: shows a message the deployment sent and opens the app on a click; it caches nothing and controls no page outside its own scope
    </td>
    
    <td>
      fixed
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /manifest.webmanifest
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The web app manifest, once <code>
        public/
      </code>
      
       holds the icons and app.config names the brand, and the app ships no manifest of its own
    </td>
    
    <td>
      fixed
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /api/backend/_monitoring
      </code>
    </td>
    
    <td>
      GET, POST, DELETE
    </td>
    
    <td>
      The dev server only, same site; never in a build
    </td>
    
    <td>
      The local error log the browser reports to under <code>
        nuxt dev
      </code>
    </td>
    
    <td>
      fixed
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /accept-invitation
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Signed in (<code>
        definePageMeta({ auth })
      </code>
      
      ), never cached
    </td>
    
    <td>
      Where an invited person accepts a workspace invitation (private).
    </td>
    
    <td>
      <code>
        pages.acceptInvitation
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /legal/accessibility
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The accessibility statement (public): the standard the app follows, how it is checked, and where to report a barrier, filled from <code>
        appConfig.backend.legal
      </code>
      
       and marked "not legal advice".
    </td>
    
    <td>
      <code>
        pages.accessibility
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /admin
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Signed in (<code>
        definePageMeta({ auth })
      </code>
      
      ), never cached
    </td>
    
    <td>
      The admin console: accounts, workspaces, the activity trail and the app's health (private and hidden: it answers 404 to anyone without the <code>
        admin
      </code>
      
       role).
    </td>
    
    <td>
      <code>
        pages.admin
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /gifts
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Signed in (<code>
        definePageMeta({ auth })
      </code>
      
      ), never cached
    </td>
    
    <td>
      The gifts a person sent and received, with resend, change, cancel and claim (private).
    </td>
    
    <td>
      <code>
        pages.gifts
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /invite
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      Where an access link lands (public, kept out of search indexes): it checks the link's token, or a code typed by hand, and sends the person on to sign in.
    </td>
    
    <td>
      <code>
        pages.invite
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /account/keep
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      Where the "keep my account" link of a scheduled deletion lands (public, kept out of search indexes).
    </td>
    
    <td>
      <code>
        pages.keepAccount
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /login
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The sign-in page (public, kept out of search indexes), and where the page guard sends a signed-out visitor.
    </td>
    
    <td>
      <code>
        pages.login
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /pricing
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The pricing page (public).
    </td>
    
    <td>
      <code>
        pages.pricing
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /legal/privacy
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The privacy policy (public): who runs the app, the data map, the subprocessors, the cookies and how a person exports or deletes their data, filled from <code>
        appConfig.backend.legal
      </code>
      
       and the capabilities the app uses, and marked "not legal advice".
    </td>
    
    <td>
      <code>
        pages.privacy
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /profile
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Signed in (<code>
        definePageMeta({ auth })
      </code>
      
      ), never cached
    </td>
    
    <td>
      The account profile (private).
    </td>
    
    <td>
      <code>
        pages.profile
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /r/:code
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      Where a referral link lands (<code>
        /r/<code>
      </code>
      
      ; public, kept out of search indexes): it says who invited the visitor and what they get, and signing up there claims the referral.
    </td>
    
    <td>
      <code>
        pages.referral
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /report
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The public notice form (DSA Art. 16, the TAKE IT DOWN Act's removal request), open to people without an account, and where a statement of reasons' appeal link lands (<code>
        #appeal=<token>
      </code>
      
      ).
    </td>
    
    <td>
      <code>
        pages.report
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /security
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Signed in (<code>
        definePageMeta({ auth })
      </code>
      
      ), never cached
    </td>
    
    <td>
      Passkeys, sessions, account deletion and the account's recent activity (private).
    </td>
    
    <td>
      <code>
        pages.security
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /settings
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Signed in (<code>
        definePageMeta({ auth })
      </code>
      
      ), never cached
    </td>
    
    <td>
      Workspace, plan and credit settings, and the workspace's activity for its owners and admins (private).
    </td>
    
    <td>
      <code>
        pages.settings
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /legal/subprocessors
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The subprocessor list (public): each service that processes personal data for the capabilities the app uses, what it handles, where, and its agreement; marked "not legal advice".
    </td>
    
    <td>
      <code>
        pages.subprocessors
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /legal/terms
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The terms of service (public): the company and contact, accounts and sign-in, plans and renewal, the merchant of record's role and the content rules, filled from <code>
        appConfig.backend.legal
      </code>
      
       and the capabilities the app uses, and marked "not legal advice".
    </td>
    
    <td>
      <code>
        pages.terms
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /unsubscribe
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      Where a topic email's unsubscribe link and a double opt-in's confirmation link land (public, kept out of search indexes and caches): one press leaves the topic, or confirms it.
    </td>
    
    <td>
      <code>
        pages.unsubscribe
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /waitlist
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Public
    </td>
    
    <td>
      The waitlist (public, kept out of search indexes): the join in early access, and a person's place in the line, read from the signed token in a status link's fragment; it follows the launch phase.
    </td>
    
    <td>
      <code>
        pages.waitlist
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        /welcome
      </code>
    </td>
    
    <td>
      GET
    </td>
    
    <td>
      Signed in (<code>
        definePageMeta({ auth })
      </code>
      
      ), never cached
    </td>
    
    <td>
      The first run a new account sees once after its first sign-in: name, workspace, teammates and a plan, with steps of your own (private).
    </td>
    
    <td>
      <code>
        pages.welcome
      </code>
    </td>
  </tr>
</tbody>
</table>

A private page is also kept out of search indexes, sitemaps and caches. An app page at a page's path always wins: the module mounts nothing there ([Ready-made pages](https://nuxt-backend.dev/docs/build/ui/pages)).


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
