# Webhooks, API and member tokens

> Verify members on your own backend with signed JWTs and JWKS, read and write members over REST, and get signed webhooks for every membership event.

URL: https://office.greatwork.company/members/features/developer-api
Last updated: 2026-11-21

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. Open Integrations and create an API key, or add a webhook endpoint and copy its signing secret.
2. Copy the JWKS address for token checks.
3. Pick the events to send, then use Send test to see a delivery in the log.

## Questions

### 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.

---

Office by Great Work. Questions or corrections: hello@greatwork.company
