Skip to main content
GET
/
api
/
v1
/
user
/
card-public-key
Get card public key
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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Successfully retrieved the card public key

publicKey
string
required

The public key for the card based on the user's country

Example:

"0x1234567890abcdef1234567890abcdef12345678"