Paywalls V2

Link Headless Source Commit

Links a directly-pushed source commit to a pushed version after verifying it is the source repo's branch head, and revokes the mint token. 409 when another publish moved the head first. Requires paywalls:write scope.

post/v2/paywalls/{id}/versions/{version}/source-commit

Path parameters

idstring required

Paywall ID

Paywall ID

versionstring required

a string to be decoded into a number

a string to be decoded into a number

Request body

commit_shastring required

Git commit SHA the CLI pushed

token_idstring

Token id from the source-access mint, revoked on successful link

Response

Success

object'paywall.source_commit' required

Object type, always paywall.source_commit

idstring required

ID of the paywall

versionnumber required

The version this commit is linked to

repostring required

Source repo name

commit_shastring required

The linked commit

Changes

No recorded changes to this endpoint across all 1 revision of this API.