First-party app
Uscreen

Uscreen

Manage Uscreen customers, subscriptions and product access, groups, invoices, offers, content visibility and view analytics.

stable Video & StreamingCommerce & Payments

About

Uscreen ships in the w6w first-party pack. It declares 33 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.uscreen
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Video & Streaming · Commerce & Payments

Overview

Uscreen is a video membership and OTT platform: a creator sells subscriptions, rentals and one-off purchases of videos, collections and live events from a branded storefront and apps. This app drives the Publisher API from a workflow: invite and update customers, grant or revoke product access, start and cancel subscriptions, manage group (team) seats, read invoices and offers, publish, unpublish or schedule content, mint single-sign-on links, and pull view analytics.

Build with Uscreen

Three routes to the same 33 actions. The Workflow tab is generated from Uscreen's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Get Customer Access

access-get

Fetch one access record for a customer.

Grant Access

access-grant

Grant a customer access to a product. Rent and recurring types take a next-action date; with manual billing, omit it.

List Customer Accesses

access-list

List the products (bundles, subscriptions, rentals, freebies) a customer has access to.

Revoke Access

access-revoke

Revoke one access record from a customer.

Get Content

content-get

Fetch one video, collection or live event.

List Content

content-list

List videos, collections and live events.

Publish Content

content-publish

Publish a video, collection or live event. For a live event, an optional launch time lets customers pre-register for that date.

Schedule Content

content-schedule

Schedule a video or collection for future publication. Not available for live events (use Publish with a launch time). Rescheduling published content needs the confirm flag.

Unpublish Content

content-unpublish

Hide a video, collection or live event from customers.

Invite Customer

customer-create

Create a customer (or promote an existing lead) and, unless skipped, send the platform invite email.

Get Customer

customer-get

Fetch one customer by id or email.

List Customers

customer-list

List customers, newest first, optionally limited by a created/updated date range.

Create Single Sign-On Link

customer-sso-link-create

Generate a single-sign-on URL that logs the customer into the storefront.

Update Customer

customer-update

Update a customer's email, name, password, Stripe id, custom fields, consent flags, tags or topic unsubscribes. Only the fields you send change.

List Email Topics

email-topic-list

List the store's active marketing-email topics (at most 10). Use the ids to unsubscribe customers from specific topics.

Create Group

group-create

Create a group subscription.

Delete Group

group-delete

Delete a group by id.

List Groups

group-list

List the store's group (team) subscriptions.

Add Group Member

group-member-add

Add a member to a group.

List Group Members

group-member-list

List the members of a group.

Remove Group Member

group-member-remove

Remove a member from a group by user id.

Get Invoice

invoice-get

Fetch one invoice by id.

List Invoices

invoice-list

List invoices. Total-Count is capped at 10000+ here and the Link header carries no `last`.

Get Offer

offer-get

Fetch one offer by id.

List Offers

offer-list

List the store's offers (subscription plans, rentals, one-off purchases).

Get Playlist Item

playlist-item-get

Fetch one playlist item of a content item.

List Playlist Items

playlist-item-list

List a content item's playlist items (formerly chapters) and file resources.

Cancel Subscription

subscription-cancel

Cancel the customer's active non-OTT subscription. Apple, Roku, Android and Amazon subscriptions are refused by Uscreen (422). No active subscription is a success with `active: false`.

Create Subscription

subscription-create

Start a subscription for a customer on a subscription plan.

Get Customer Subscription

subscription-get

The customer's active subscription. `active` is false and `subscription` null when they have none (the API answers 204).

List Video Views

views-list

List individual video views, optionally for one customer or one video, collection or live event. Defaults to the last 12 months.

List Views Summary

views-summary-list

Aggregated view counts and watch time grouped by customer and video. Total-Count is capped at 10000+ on this endpoint.

Get Total Watch Time

watch-time-get

Total video watch time (seconds) for a customer, a piece of content, or the whole store, over a date range (default last 12 months).

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Uscreen's real ids.

{
  "manifestVersion": "2",
  "name": "uscreen-example",
  "steps": [
    {
      "id": "access-get",
      "uses": {
        "app": "io.w6w.uscreen",
        "action": "access-get",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "customerId": "<customerId>",
        "accessId": "<accessId>"
      }
    }
  ]
}

Here are some of the things you can do

  • Get Customer Access

    read
    access-get
  • Grant Access

    perform
    access-grant
  • List Customer Accesses

    search
    access-list
  • Get Content

    read
    content-get
  • List Content

    search
    content-list

+28 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Uscreen, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Uscreen. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "access-get",
  payload: {
    customerId: "<value>",
    accessId: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action access-get --payload '{"customerId":"<value>","accessId":"<value>"}'

Give an AI agent Uscreen — without giving it Uscreen's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.uscreen#access-get",
    "input": {
      "customerId": "<customerId>",
      "accessId": "<accessId>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Uscreen connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Uscreen's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Uscreen itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Uscreen declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Uscreen API V1 status

The API V1 component on status.uscreen.tv; the other Uscreen components (storefront, admin portal, video on demand, live streaming) are reported as detail.

dependency

Publisher API reachable

Unauthenticated GET /publisher_api/v1/email_topics. A 401 carrying Uscreen's JSON `{"message": …}` passes — it proves the API and its auth layer are answering.

quota

API rate-limit headroom