const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({chainId: '<string>'})
};
fetch('https://{host}/extern/svr/{accountTypeId}/account/{accountId}/safe/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));