JavaScript
const options = {method: 'GET'}; fetch('https://gp-auth-module.prod.gnosispay.com/user/onboarding', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "status": "action_accept_tos", "terms": [ { "type": "<string>", "currentVersion": "<string>", "name": "<string>", "url": "<string>", "accepted": true, "acceptedVersion": "<string>", "acceptedAt": "2023-11-07T05:31:56Z" } ] }
Get the current onboarding status for the authenticated user. Returns a tagged union indicating the current step and any required actions.
Onboarding status retrieved successfully
action_accept_tos
Show child attributes