API

API reference

macrocontent exposes several HTTP surfaces. Interactive OpenAPI (Swagger) on the API host is the source of truth for request and response shapes — this handbook explains when to use each API and how to authenticate.

Swagger is canonical
Open the multi-spec explorer: https://api.macrocontent.dev/docs · Raw index: /docs.json · Embedded UI: Swagger in docs

Pick an API

API surfaces

SpecAuthBaseOpenAPI JSON
Managementmt_ / X-Macro-Token/management/docs/specs/management.json
ContentX-Api-Key / legacy sk_/content/docs/specs/content.json
Storepublic + session/store/docs/specs/store.json
Publisherpublisher token / session/publisher/docs/specs/publisher.json

Authentication

Different surfaces use different credentials. Start with Authentication for JWT vs X-Api-Key vs mt_ vs publisher tokens — then open Swagger’s green Authorize button for Try it out.

Authorize in Swagger
Authorize only attaches headers to Swagger test calls. It does not log you into Dashboard, Store, or the Publisher portal.

Also see