/api/healthReturns runtime status, environment, and domain metadata.
api.theomnix.net
A Next.js and TypeScript callback service for `api.theomnix.net` with Zod validation, secure OAuth handling, and Vercel-ready deployment.
/api/healthReturns runtime status, environment, and domain metadata.
/api/contactValidates and accepts a contact form submission.
/auth/tiktok/startStarts TikTok OAuth and redirects the user to TikTok.
/auth/tiktok/callbackValidates the state, exchanges the code for tokens, stores them temporarily, and redirects to the frontend completion page.
/auth/tiktok/sessionReturns the temporarily stored TikTok session, granted scopes, and fetched user profile for a given open_id.
/auth/tiktok/disconnectDisconnects a TikTok account by removing the temporary in-memory session for the provided open_id.
/auth/youtube/startStarts Google OAuth for YouTube Data API access using the youtube.readonly and youtube.upload scopes by default.
/auth/youtube/callbackValidates the OAuth state, exchanges the Google authorization code for YouTube tokens, fetches the authenticated channel, stores the session temporarily, and redirects to the frontend completion page.
/auth/youtube/sessionReturns the temporarily stored YouTube session, granted scopes, and cached authenticated channel for a given channel_id.
/auth/youtube/disconnectDisconnects a YouTube account by removing the temporary in-memory session and cached channel summary for the provided channel_id.
/api/youtube/channelFetches the authenticated user's current YouTube channel using the stored server-side access token and the youtube.readonly scope.
/api/youtube/videos/uploadUploads a video to the authenticated YouTube channel using the resumable videos.insert flow and the youtube.upload scope.
curl -i https://api.theomnix.net/auth/tiktok/start?scope=user.info.basic