GET
/
api
/
v1
/
auth
/
nonce
Generate nonce
const url = 'https://api.gnosispay.com/api/v1/auth/nonce';
const options = {method: 'GET', body: undefined};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
"a1b2c3d4e5f6"

Response

200
text/plain

Nonce generated successfully

The response is of type string.

Example:

"a1b2c3d4e5f6"