const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'Content-Type': 'application/json'
},
body: '{"connection":{"operations":["genericCompany::create"]},"expiresIn":123}'
};
fetch('https://api.runmorph.dev/v1/connections/{connectorId}/{ownerId}/sessions', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));