Quick Start
First, Create an API Secret Key on the InLoop Connect Dashboard and specify the ERC-20 tokens and/or NFTs that you would like to check for. This API key will identify your application when making API requests.
You may revoke an API key at any time.
Flow overview
How your users verify their NFT ownership
Your user clicks a Verify with token button on your website.
They are directed to InLoop Connect and are prompted to connect their wallet.
Once they connect their wallet, they will be redirected back to your page with a
code
appended to the query parameters. You can use this code to exchange for a user token and query for the user's ownership of which ERC-20 tokens and/or NFTs you specified in the dashboard.
See the Examples page for code samples, or check out the API details below.
API
Load an unbranded page for the user to connect their wallet
GET
https://connect.inloop.to/oauth/authorize
Once the user connects their wallet, they will automatically be navigated to the provided URL with the encrypted code in a query parameter: https://<redirect_uri>?code=<code>
.
The generated authorization code expires 10 minutes after issuance. The purpose of this code is to be immediately exchanged for a permanent user token by calling the /api/v1/oauth/token
endpoint below.
Try it out! Visit https://connect.inloop.to/oauth/authorize?redirect_uri=https://google.com
Note: If the user clicks Cancel on the wallet connect flow, they will be navigated to redirect_uri
without a code
parameter. You might want to handle this case gracefully.
Query Parameters
Exchange a code for a user token
POST
https://connect.inloop.to/api/v1/oauth/token
Returns a long-lived user access token to uniquely identify the user that authorized. This token does not expire.
Headers
Request Body
List tokens (NFTs or ERC-20 tokens) from a user
GET
https://connect.inloop.to/api/v1/users/:user_token/tokens
Returns a list of NFTs from the collection addresses specified in your InLoop Connect dashboard. Please anticipate that this endpoint will take some time to run, especially if a long list of tokens is being checked.
Path Parameters
Headers
Last updated