Authentication

You'll need to authenticate your requests to access any of the endpoints in the HashGuild API. In this guide, we'll look at how authentication works.

Using a bearer token

When establishing a connection using a bearer token, you will need your access token — you will receive it by contacting the HashGuild Team. Here's how to add the token to the request header using cURL:

Example request with bearer token

curl https://hashguild.xyz/api/v1/nft/<tokenId>/<serialNo> \
  -H "Authorization: Bearer {token}"

Always keep your token safe and reset it if you suspect it has been compromised.