Authentication
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"
})import requests
headers = {
'X-Api-Key': '<string, required>',
'Content-Type': 'application/json',
}
response = requests.post('https://api.playground.engine.get-blockchain.io/stream', headers=headers)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