This endpoint should be called after being redirected from awsCustomerRedirect. The previous redirect should have stored the token for usage. This endpoint attaches the token (and such the customer details) to the selected project.
awsCustomerRedirect
No Content
const response = await fetch('https://cloud-api.calyptia.com/v1/projects/{projectID}/aws-contracts', { method: 'POST', headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({ "amazonMarketplaceToken": "text" }), }); const data = await response.json();