Channels

API & token setup

See what a future platform connection will require and where credentials belong. This proof of concept does not accept or store secrets.

Next phase of the TrendPilot build: configure approved platform apps, add secure server-side credential storage, and implement account authorization before live connections can be enabled.

Developer app credentials

These identify TrendPilot to a platform. Configure them only in a server-side environment after app registration and approval.

YouTube

Not wired in this build

Google OAuth app for YouTube Analytics

YOUTUBE_ANALYTICS_CLIENT_ID
server env
YOUTUBE_ANALYTICS_CLIENT_SECRET
server env

The existing YOUTUBE_API_KEY is only for public trend discovery. Channel analytics require a separate owner-authorized OAuth flow.

X

Not wired in this build

X developer app

X_CLIENT_ID
server env
X_CLIENT_SECRET
server env

API access and available metrics depend on X's current product access and approved scopes. Credentials remain placeholders until secure OAuth storage is implemented.

Facebook

Not wired in this build

Meta developer app

META_APP_ID
server env
META_APP_SECRET
server env

Facebook and Instagram share Meta app credentials. Each business account still authorizes access separately.

Instagram

Not wired in this build

Meta developer app

META_APP_ID
server env
META_APP_SECRET
server env

Facebook and Instagram share Meta app credentials. Each business account still authorizes access separately.

TikTok

Not wired in this build

TikTok developer app

TIKTOK_CLIENT_KEY
server env
TIKTOK_CLIENT_SECRET
server env

The client secret stays on the server. A user grants account access through TikTok's authorization flow.

Account access tokens

A business owner should authorize their own YouTube channel, X account, Page, professional account, or TikTok account through the platform's login flow. TrendPilot should receive tokens server-side, store them securely, refresh them when required, and let the owner disconnect. Users should not copy personal tokens into a form.

Safe setup for this build

  1. Keep local secrets in .env.local; never commit that file.
  2. For a hosted deployment, configure app credentials in the hosting provider's server-side environment settings.
  3. Only add values after provider approvals and the secure authorization/storage flow have been implemented.

Existing YOUTUBE_API_KEY is for public trend discovery only; it does not connect a business social account.