Getting past authentication

This page provides an overview of how you can get access to limited endpoints.

This is an interim flow to get past authentication. We are planning to release a more streamlined version by the end of Q1 2023.

Step 1: Request and API key

Head on over to bit.ly/ratedAPIkeys and go through the "request access flow". We promise we will do our best to prematerialize valid profiles in the admin view that's to come in Q1 2023.

Step 2: Receive keys from Rated

For valid profiles/requests, we will follow up with your access credentials, namely username and password. Once you have those then you can proceed to request tokens.

Step 3: Request access token

curl -X 'POST' \
  'https://api.rated.network/v0/auth/token' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'grant_type=&username=<YOUR-EMAIL-HERE>&password=<YOUR-PASSWORD-HERE>'

the response of that request will contain the token, then you can use that token to authenticate and request metadata

curl -X 'GET' \
  'https://api.rated.network/v0/eth/validators/<ID OR PUBKEY>' \
  -H 'accept: application/json' \
  -H 'X-Rated-Network: mainnet' \
  -H 'Authorization: Bearer <YOUR-TOKEN-HERE>'

Step 4: Resetting your password [optional]

curl -X 'POST' \
  'https://api.rated.network/v0/users/me/password-reset' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <YOUR-TOKEN-HERE>'
  -d ''

Once you get your credentials, you can generate multiple keys if you need to. Just be aware that all existing keys get invalidated if you reset your password.

Last updated