const response = await fetch('https://api.passage.id/v1/apps/{app_id}/magic-links', {
method: 'POST',
headers: {
"Authorization": "Bearer JWT",
"Content-Type": "application/json"
},
body: JSON.stringify({
"channel": "email",
"email": "text",
"magic_link_path": "text",
"phone": "text",
"redirect_url": "text",
"send": false,
"user_id": "text"
}),
});
const data = await response.json();