API Reference
Authentication
Learn how to authenticate with the Gateway Protocol API.
Follow the steps below to get started with the Gateway Protocol API. The steps will guide you on how to get your API Key and Bearer Token to authenticate.
This walk through uses the API endpoints in this documentation site!
- Open the
auth/message
endpoint and click Send - Copy the output of the
message
field from the response body. - Verify the message using a tool like Etherscan
- Click the Sign Message button and connect your wallet
- Paste the
message
from step 2 into the message field and sign the message - Save the resulting
Signature Hash
value
- Create an account using the
/accounts
endpoint- Pass the necessary
signature
,message
,wallet_address
, andusername
fields - The
username
can be anything you want to use to identify yourself on Gateway. - Save the returned
token
value.Please note that this token includes punctuation, be sure to copy and paste the ENTIRE value.
- Pass the necessary
- Verify the account and token by using the
accounts/me
endpoint- Enter your API
token
and submit the request.
- Enter your API
Sample Account check response