Skip to main content
This document provides a comprehensive reference for all API endpoints in the trip-page application.

Base URL

All API endpoints are prefixed with /api/v1

Authentication

Protected endpoints require authentication via a bearer token in the request header:

Endpoints

Trip Endpoints

Base path: /api/v1/trips

Payment Endpoints

Base path: /api/v1/payments

Media Endpoints

Base path: /api/v1/media

Coupon Endpoints

Base path: /api/v1/coupons

Analytics Endpoints

Base path: /api/v1/analytics

PostHog Analytics Endpoints

Base path: /api/v1/posthog-analytics

Host Endpoints

Base path: /api/v1/hosts

Admin Endpoints

Base path: /api/v1/admin

General Notes

  • Base API path: /api/v1
  • Authentication is required for protected endpoints and should be provided via an authentication token
  • All authenticated routes require a valid auth token in the request header
  • The server includes a health check endpoint at /api/v1/health that returns server status