Authentication

Once you have obtained your username and set your password you can start querying the API.

Once you have obtained the token through this endpoint, you will have to include it in the header x-token.

Note that all requests must be sent over HTTPS.

fetch("https://api.playground.engine.get-blockchain.io/stream", {
  headers: {
    "Content-Type": "application/json",
    "X-token": "<string, required>"
  },
  method: "POST"
})

Authentication failures will be returned with a 403 Forbidden status code and body:

{
    "message": "Forbidden"
}

Refreshing your access / Bearer token

If you role is external_creator, the access token is valid for 10 minutes. After 10 minutes, you will need to request a new access token.

Last updated