Connecting
Learn/L9 · Convex in production

When you still need REST

Third parties need HTTP; your React app should still use Convex functions, not hand-rolled REST to your own DB.

Difficulty 2/5

Plain English

Public APIs and webhooks are HTTP-shaped. Inside your app, useQuery/useMutation — not fetch('/api/todos'). Compare REST vs Convex in the Comparisons tool.

Analogy

Guests use the intercom; family uses the internal hallway.

HógaPy real estate

External intake might POST; admin UI uses Convex client.

Go deeper

External = HTTP; internal = Convex RPC.

Common mistakes

  • Building Express alongside Convex for the same tables.

AI-agent trap

Next.js API routes duplicating every mutation.

Summary

httpAction can expose small REST if needed.

Confidence: