Deep Links (Auto-fill token gating form)

API call to autofill token gating form to start creating a token gated link
https://mintgate.app/create_link?url&token1&amount1
This endpoint allows you the input required parameters for the token gating form to start the creation of a token gated link.
Request
Response
Request
Query Parameters
type1
optional
string
Type of token 1 = MintGate NFTs 20 = ERC-20 721 = ERC-721 NFTs 1155 = ERC1155 2 = Moloch-V2 shares -1 = native token balance (e..g Eth)
network1
optional
string
Number of the network
url
required
string
The 3rd-party target URL to token protect. Can set to empty string if the link is user defined.
token1
optional
string
Token contract address
amount1
optional
string
The amount that the user has to hold of the token to access
returnTo
optional
string
A URL address to return to after the link is created. The url will recieve a query parameter "?link=" with the token protected URL. For example, a returnTo=https://google.com will result in the user getting redirected to https://google.com?link=https://mgate.io/go/XYZ. Note that the "link" parameter will be URL encoded.
Response
200: OK
The deep link URL will redirect to the token protected form on MintGate and auto-fill the parameters on the form: For example, the link:
https://mintgate.app/?url=demo.ghost.com&token1=0x6B175474E89094C44Da98b954EedeAC495271d0F&amount1=42&platform=discord

It will redirect you to this auto-filled page to start the process to create a URL that requires token access:

‚Äč

If you have any integration requests or questions, please email [email protected].