API AuthenticationClick to view API Authentication details
API calls require authentication with API key via Authorization request header or URL property. Calls are made to one of the Polkadot Validator API endpoints found in your app's dashboard.
For example: https://hubble.figment.io/api/v1/prime
Here's some boilerplate to get you started.
Fetch with Header
Fetch with Parameter
CURL with Header
CURL with Parameter
fetch("https://hubble.figment.io/api/v1/prime/polkadot/nomination_proxy",{ method:'POST',// can also be 'GET', 'PUT' or any appropriate method headers:{ "Authorization":"<api_key>", "Content-Type":"application/json"// if method is 'POST' }, body:JSON.stringify({ // JSON Payload }) })
fetch("https://hubble.figment.io/api/v1/prime/apikey/{{apikey}}/polkadot/nomination_proxy",{ method:'POST',// can also be 'GET', 'PUT' or any appropriate method headers:{ "Content-Type":"application/json"// if method is 'POST' }, body:JSON.stringify({ // JSON Payload }) })