Overview
The PassTru API provides programmatic access to manage events, attendees, check-ins, and email notifications for your event management platform. Built on Supabase, the API uses PostgreSQL with Row Level Security (RLS) for secure, real-time data access.Architecture
PassTru is built on a modern serverless architecture:- Database: Supabase PostgreSQL with real-time subscriptions
- Authentication: Supabase Auth with JWT tokens
- Edge Functions: Deno-based serverless functions for complex operations
- Storage: Supabase Storage for branding assets and images
- Email: Resend integration for confirmation emails
Base URL
Client SDK
PassTru uses the Supabase JavaScript client for all API interactions. Install it in your project:Initialize the Client
Key Concepts
Organizations
Every client has anorganization that owns events and manages token balances. Organizations are identified by both a UUID id and a URL-friendly slug.
Events
Events belong to organizations and contain attendees. Each event has:- A unique
slugfor URL routing - Custom
attendee_fieldsconfiguration - Branding settings for public-facing pages
- Token consumption tracking
Attendees
Attendees are linked to events and have:- A unique 8-character
unique_idfor check-in - Check-in status and timestamps
- Custom fields based on event configuration
- Portal access control
Roles
PassTru supports three user roles:Rate Limits
Supabase enforces the following limits:- API requests: 500 requests per second per project
- Database connections: Based on your Supabase plan
- Edge Functions: 500,000 invocations per month (free tier)
- Storage: 1GB (free tier), upgradeable
Error Handling
All API responses follow Supabase’s standard error format:PGRST116: Row level security violation23505: Unique constraint violation23503: Foreign key constraint violation42501: Insufficient privilege
TypeScript Support
PassTru provides full TypeScript definitions generated from the database schema:Next Steps
Authentication
Learn how to authenticate users and manage sessions
Events API
Create and manage events
Attendees API
Manage event attendees
Check-ins API
Handle attendee check-ins