Paywalls V2

Link Headless Source Commit

Changed on

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

Request

  • Base URL
    https://api.superwall.com
  • URL
    https://api.superwall.com/v2/paywalls/{id}/versions/{version}/source-commit
  • Auth
    • HTTP bearer
    • or API key in cookie accounts_superwall_token
    • or HTTP bearer

Path parameters

idstring required
versionstring required

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
versionnumber required

The version this commit is linked to

repostring required

Source repo name

commit_shastring required

The linked commit

Changes

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • info

      added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 to the response body anyOf list for the response status

    • info

      removed subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 from the response body anyOf list for the response status

    • info

      removed the pattern ^[a-f0-9]{40}$ from the request property