API
API
Netlify Functions API documentation for Takazudo Modular.
Overview
This site uses Netlify Functions to handle form submissions and user interactions. All APIs are deployed as serverless functions.
Base URL
| Environment | Base URL |
|---|---|
| Production | https://takazudomodular.com/api |
| Preview | https://*--takazudomodular.netlify.app/api |
| Local (functions) | http://localhost:9999/api |
| Local (via Next.js) | http://zmod.localhost:34434/api (proxied to functions) |
Authentication
Public Endpoints
Public endpoints (/api/notify-signup, /api/reservation) require no authentication.
Admin Endpoints
Admin endpoints (/api/admin-*) require Bearer token authentication:
| Header | Value |
|---|---|
| Authorization | Bearer {ADMIN_API_TOKEN} |
The ADMIN_API_TOKEN is set via environment variable on Netlify. Requests without valid authentication receive a 401 response.
CORS
Requests are allowed from:
https://takazudomodular.comhttps://www.takazudomodular.comhttps://*--takazudomodular.netlify.app(preview deploys)http://localhost:34434/http://zmod.localhost:34434(local dev)