Skip to content

Endpoints

The interactive reference at /docs on your API instance is still the best place to inspect schemas. This page summarizes the implemented route surface and auth model.

MethodEndpointDescription
GET/api/v1/public/access/checkEvaluate access for a URL and identity
POST/api/v1/public/eventsSend up to 100 events
GET/api/v1/public/productsList active products and prices (limited fields)
GET/api/v1/public/brandingGet public branding
MethodEndpointDescription
POST/api/v1/customer/auth/registerRegister a customer with email and password
POST/api/v1/customer/auth/loginLog in and receive JWT + refresh token
POST/api/v1/customer/auth/refreshExchange a refresh token for a new token pair
POST/api/v1/customer/auth/logoutRevoke a refresh token
GET/api/v1/customer/auth/meGet customer profile (requires Bearer JWT)
GET/api/v1/customer/subscriptions/meGet a customer’s subscription (JWT with pk_; customerId or JWT with sk_)
POST/api/v1/customer/subscriptions/checkoutCreate a checkout session (JWT, guest email, or customerId with sk_)
POST/api/v1/customer/subscriptions/portalCreate a Stripe customer-portal session (JWT with pk_; customerId or JWT with sk_)

Publication management (sk_ or dashboard session)

Section titled “Publication management (sk_ or dashboard session)”

The operations below, including subscription cancellation, are scoped to the validated key’s publication or the session’s active organization.

MethodEndpointDescription
GET/api/v1/admin/productsList products with prices
POST/api/v1/admin/productsCreate a product
PATCH/api/v1/admin/products/:idUpdate a product
DELETE/api/v1/admin/products/:idDelete a product
POST/api/v1/admin/products/:id/pricesAdd a price
PATCH/api/v1/admin/products/:id/prices/:priceIdUpdate a price
DELETE/api/v1/admin/products/:id/prices/:priceIdDelete a price
GET/api/v1/admin/paywallsList paywall rules
POST/api/v1/admin/paywallsCreate a paywall rule
PATCH/api/v1/admin/paywalls/:idUpdate a paywall rule
DELETE/api/v1/admin/paywalls/:idDelete a paywall rule
GET/api/v1/admin/customersList customers
POST/api/v1/admin/customersCreate a customer
GET/api/v1/admin/customers/:idGet a customer
PATCH/api/v1/admin/customers/:idUpdate a customer
DELETE/api/v1/admin/customers/:idDelete a customer
POST/api/v1/admin/customers/:id/subscriptionAssign a manual subscription
DELETE/api/v1/admin/customers/:id/subscriptionRemove an active subscription
GET/api/v1/admin/segmentsList segments
POST/api/v1/admin/segmentsCreate a segment
PATCH/api/v1/admin/segments/:idUpdate a segment
DELETE/api/v1/admin/segments/:idDelete a segment
GET/api/v1/admin/segments/:id/customersList matching members
GET/api/v1/admin/stats/overviewOverview counters
POST/api/v1/admin/subscriptions/cancelMark a subscription to cancel at period end

Account operations (dashboard session only)

Section titled “Account operations (dashboard session only)”
MethodEndpointDescription
GET/api/v1/account/api-keysList API keys
POST/api/v1/account/api-keysCreate an API key pair
DELETE/api/v1/account/api-keys/:idDelete one API key
GET/api/v1/account/stripe/statusStripe connection status
POST/api/v1/account/stripeSave Stripe settings
POST/api/v1/account/stripe/syncRe-sync all products and prices to Stripe
DELETE/api/v1/account/stripeRemove Stripe settings
MethodEndpointDescription
GET/healthHealth check
POST/api/v1/webhooks/stripeStripe webhook endpoint