Skip to content
Office

Office Members feature

Webhooks, API and member tokens

Signed member tokens for your backend, a REST API, a small browser API and signed webhooks for every membership event.

Check members on your server

Every signed-in member has a short-lived signed token (a JWT) with their id, plans and status. Get it in the browser with members.getToken(), send it to your backend, and verify it against your workspace's public keys at the JWKS address on the Integrations screen. The docs include copy-paste middleware for Next.js, Express and Cloudflare Workers, and a PHP snippet for WordPress themes.

In the browser

members.getMember() returns the signed-in member or null. members.onChange(fn) runs when they sign in, out or change plan. members.openLogin(), members.openCheckout(priceId) and members.logout() do what they say.

REST API and webhooks

With an API key: list, get, create, update and delete members, add or remove a $0 plan, comp a plan, list plans and prices, list and cancel subscriptions, and read content items.

Webhooks fire for members created, updated and deleted, every subscription change (created, renewed, past due, cancelled), payments succeeded and failed, plan changes, trials started, ending and converted, drip unlocks and sign-ins. Each delivery is signed, logged, and can be retried from the log. Send them to Zapier or Make to reach thousands of other apps.

Example

Gating a feature in a small web app

A developer sells a Pro tier for a recipe-scaling app. The front end calls members.getToken() and sends it with each request. The API's middleware verifies the token against the JWKS and checks that plans includes Pro before running the bulk export. A members.subscription.canceled webhook flags the account in her own database the moment someone cancels.

How to set it up

  1. 1

    Open Integrations and create an API key, or add a webhook endpoint and copy its signing secret.

  2. 2

    Copy the JWKS address for token checks.

  3. 3

    Pick the events to send, then use Send test to see a delivery in the log.

Webhooks, API and member tokens is part of Office Members and included on every plan.

Questions people ask

Is there an MCP server for AI assistants?

An MCP server with tools such as listing members, comping a plan and a revenue summary is coming soon.

Try Office Members with your whole team

7-day trial with every feature. Cancel from the billing page whenever you like.