Documentation Knowledgebase

This area helps us show you how to use our features to grow your business.

OpenContent Helper

Use the Client and Membership Dashboard APIs

Call the OpenContent Helper client dashboard summary with module View permission, get the signed-in member's dashboard, and create a Stripe billing portal session with an anti-forgery token. These endpoints return private data and are not for anonymous code.

Updated

These endpoints return private or account-specific data. Do not call them from anonymous page code.

Client dashboard summary

Call:

GET /DesktopModules/OpenContentHelper/API/ClientDashboard/GetSummary

The caller needs website module View permission. The response summarizes services configured for the current portal, such as available client-facing areas. The endpoint uses the current portal and the current website user.

Member dashboard

Call:

GET /DesktopModules/OpenContentHelper/API/MembershipDashboard/GetMyDashboard

The caller must be signed in. The response is for the current member and current portal only.

Stripe billing portal

Call:

POST /DesktopModules/OpenContentHelper/API/MembershipDashboard/CreateBillingPortalSession

The caller must be signed in and must send the website anti-forgery token. The endpoint creates a Stripe billing portal session for the current member. It does not accept a portal ID as a cross-portal selector.

If Stripe's customer portal is disabled, enable the required Stripe portal features before testing this action. Never place Stripe secrets in browser code or OpenContent markup.

Topics: