API Reference

Frontend API integration reference.

A lightweight reference for how the IntervYOU frontend talks to backend auth and workspace APIs.

What you can expect

Same-origin proxy

Browser requests use `/api/v1/*` and Next.js rewrites them to the backend service.

Auth tokens

Access tokens are sent as bearer tokens and session cookies support route protection.

Typed wrappers

API calls live under `features/auth/api` and return typed response contracts.

Auth endpoints

The frontend currently integrates register, verify email, resend verification, login, logout, refresh, Google callback, `/me`, and sessions endpoints.

Local development

Do not set `NEXT_PUBLIC_API_URL` locally unless backend CORS is configured. The default flow uses Next.js rewrites to avoid preflight failures.

Production configuration

Production deployments should point API rewrites and OAuth redirect URIs to the approved backend and frontend domains.

Need setup help?

Use the docs or help center for OAuth, auth routing, and local API proxy guidance.

Open docs