JWTPublisher
Interactive: Swagger · Publisher · JSON: /docs/specs/publisher.json
Two layers
The portal UI uses a JWT session on
/publisher/me. Long-lived scripts use publisher API tokens (pt_…) on /publisher/v1 with X-Macro-Publisher-Token. See Authentication. When to use
- Automate listing create/patch and bundle validation in CI
- Sync listing metadata from an internal catalog
- Read whoami / permission catalog for token diagnostics
Automation base
Base: https://api.macrocontent.dev/publisher/v1
GET
/publisher/v1/whoamiPublisherAny valid publisher token — verify identity and scope.
GET
/publisher/v1/listingsPublisherList your listings. Needs publisher.listings:read.
POST
/publisher/v1/listings/validate-bundlePublisherRun Macro Score / validation without relying on a failed persist. Needs listings:write.
POST
/publisher/v1/listingsPublisherCreate a listing (bundle must pass validation). Needs publisher.listings:write.
PATCH
/publisher/v1/listings/:idPublisherUpdate listing metadata or bundle. Paid offers require active Stripe Connect.
Paid listings
Without
stripeConnectStatus === 'active', paid offers fail with STRIPE_REQUIRED. Connect from the portal Payouts page. curl -sS https://api.macrocontent.dev/publisher/v1/whoami \
-H "X-Macro-Publisher-Token: pt_..."Product guides: Listings · Bundles & score.