Stay.ai Generate Portal Link

Generates a link that takes the customer directly to their subscription portal

Official documentation for this endpoint that be found here: https://docs.stay.ai/reference/cancel-subscription


Inputs

NameTypeDescription
TokenStringStay.ai access token
EmailOptional StringCustomer email address (one of email/phone required)
PhoneOptional StringCustomer phone number (one of email/phone required)

Outputs

NameTypeDescription
SuccessBooleanWhether the call was successful or not
LinkStringThe generated portal link if successful
ErrorStringAn error message if the call fails (empty string if successful)

Did this page help you?