JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.valox.co/api/v1/user/card-public-key', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "publicKey": "0x1234567890abcdef1234567890abcdef12345678" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully retrieved the card public key
The public key for the card based on the user's country
"0x1234567890abcdef1234567890abcdef12345678"