Sessions
Share Session
Generate a unique share code and URL for a session
POST
Authentication
This endpoint requires authentication. Users can only share sessions they own.Path Parameters
integer
required
The unique session ID to share
Request Body
string
Optional user ID for user-specific shares (rarely used)
Response
Returns a share code, shareable URL, and referral code.UUID v4 share code for accessing the session
Complete shareable URL including referral tracking
string
Your referral code embedded in the share URL
Behavior
- If the session already has a share code, the existing code is returned
- Creating a share automatically sets
isPublic: trueon the session - The share URL includes a referral parameter (
?r=) for tracking - Share codes are UUID v4 format, providing unguessable URLs for privacy
- Recipients can access the session at the provided URL without authentication for preview
- Full playback requires authentication
Related Endpoints
GET /api/shared/:shareCode/preview- Public preview endpoint (no auth)GET /api/shared/:shareCode- Full session access (requires auth)GET /api/shared/media/:shareCode- Access shared session media
Notes
- Activity is tracked for analytics
- Referral codes help track user acquisition and sharing patterns
- Share codes remain valid unless the session is deleted
- Deleting a session automatically removes all associated share codes