Skip to content

REST authentication, bearer tokens, login endpoints, and security options.

Subscriptions API and Auth

Location: MediaBlaster → Subscriptions → API/Auth tab

Configure how apps and headless clients authenticate against the MediaBlaster REST API at /wp-json/mediablaster/v3/.

Prerequisites

  • WPST_SUBSCRIPTIONS_ENABLED set to true in wp-config.php.
  • Enable REST/API access on Subscriptions → General.

Token and login settings

SettingDescription
Enable app/device API tokensIssues Bearer tokens for authenticated API requests.
Token expiry daysHow long access tokens remain valid before refresh.
Allow email/password login endpointPOST /auth/login for app sign-in.
Allow token refresh endpointPOST /auth/refresh to renew tokens.
Allow device name registrationAssociates tokens with device labels for admin visibility.
Allow headless registration endpointPOST /auth/register for app-driven sign-up.
Require verified email before API accessBlocks API use until WordPress email is verified.

Security

SettingDescription
Require HTTPS for API token loginRejects login over plain HTTP in production.
Locked content HTTP statusReturn 403 Forbidden or 404 Not Found for unauthorized API content requests.
Log payment payloads (debug)Writes redacted payment debug info — use only temporarily.

An admin warning appears when your site is not served over HTTPS while REST tokens or Stripe checkout are enabled.

Using the API

Authenticate requests with:

Authorization: Bearer {token}

Obtain a token via POST /wp-json/mediablaster/v3/auth/login with email and password, or register via /auth/register when enabled.

Common routes (full detail in Subscriptions and Apps API):

  • GET /me — authentication state and basic profile
  • GET /subscription/status — active plan summary (auth required)
  • GET /subscription/tiers — public tier list
  • GET /app/config — client-safe Stripe and subscription feature config (not platform app config — see REST API — App Config for GET /config?platform=roku)
  • POST /auth/login, /auth/register, /auth/refresh, /auth/logout
  • POST /payments/stripe/create-checkout-session — start checkout

Content catalog and fields: Content API and Fields. Each item includes access and may redact media.url when locked.

Was this helpful?