Create a one-click Extport Buyer Portal sign-in link for a subscriber
POST
/v1/subscriptions/portal
const url = 'https://api.extport.dev/api/v1/subscriptions/portal';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"extensionId":"example","externalUserId":"example","email":"hello@example.com","returnUrl":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.extport.dev/api/v1/subscriptions/portal \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "extensionId": "example", "externalUserId": "example", "email": "hello@example.com", "returnUrl": "example" }'Resolves the best matching subscription for externalUserId or email and mints a single-use magic-link URL into the Extport Buyer Portal.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
extensionId
string
externalUserId
string
email
string format: email
returnUrl
string
Examplegenerated
{ "extensionId": "example", "externalUserId": "example", "email": "hello@example.com", "returnUrl": "example"}Responses
Section titled “Responses”Extport Buyer Portal URL
Missing lookup identifier or invalid returnUrl
Extension not found or no matching subscriber found