Javascript
const url = 'https://api.gnosispay.com/api/v1/webhooks/message/{partnerId}'; 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); }
{ "message": "<string>", "nonce": "<string>" }
Generates a message for the user to sign. This message must be sent on POST /api/v1/webhooks/subscribe/{partnerId} to subscribe to webhook notifications.
POST /api/v1/webhooks/subscribe/{partnerId}
Partner ID to subscribe to
Message generated successfully
SIWE message to be signed by the user
Unique nonce for this subscription request