api.theomnix.net

Omnix API

A Next.js and TypeScript callback service for `api.theomnix.net` with Zod validation, secure OAuth handling, and Vercel-ready deployment.

Endpoints

GET/api/health

Returns runtime status, environment, and domain metadata.

POST/api/contact

Validates and accepts a contact form submission.

GET/auth/tiktok/start

Starts TikTok OAuth and redirects the user to TikTok.

GET/auth/tiktok/callback

Validates the state, exchanges the code for tokens, stores them temporarily, and redirects to the frontend completion page.

Example Request

curl -i https://api.theomnix.net/auth/tiktok/start?scope=user.info.basic