const response = await fetch("https://algapsa.com/api/v1/opportunities/suggestions/{id}/accept", {
method: "POST",
headers: {
"X-API-Key": "$ALGA_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"title": "x",
"contact_id": "01HN2K7VRB9PQ3Y0000000000",
"owner_id": "01HN2K7VRB9PQ3Y0000000000",
"mrr_cents": 0,
"nrr_cents": 0,
"hardware_cents": 0,
"currency_code": "xxx",
"expected_close_date": "",
"next_action": "x",
"next_action_due": "2026-04-18T15:22:14Z"
})
});
const data = await response.json();