Paywalls V2

Mint Headless Source Access

Mints a short-lived, repo-scoped write token so the CLI can push the source tree directly to the application's source repo over the git protocol — the scalable path for large projects, replacing the inline source upload. The token expires in minutes and is revoked when the pushed commit is linked. Requires paywalls:write scope.

post/v2/paywalls/{id}/source-access

Path parameters

idstring required

Paywall ID

Paywall ID

Response

Success

object'paywall.source_access' required

Object type, always paywall.source_access

idstring required

ID of the paywall

repostring required

Source repo name

remotestring required

HTTPS git remote URL

branchstring required

Branch to push to

tokenstring required

Short-lived write token. Send as Authorization: Bearer <secret before ?expires> on git requests; never store it.

token_idstring required

Token id — echo it when linking the commit so the token is revoked

expires_atstring required

ISO 8601 token expiry

Changes

No recorded changes to this endpoint across all 2 revisions of this API.