Customers
Create Portal Url
This endpoint is used to generate a portal URL for a customer. You can link this URL in your app, or embed it in an iframe to allow your users to access the customer portal from your app. To embed it in an iframe, you must specify the frameAncestors attribute in the request.
The call to retrieve the portal URL must strictly be made from the backend (not the frontend) as it utilises the client’s API secret.
post/customers/{customerId}/portal
Request
- Base URLhttps://api.upflow.io/v1
- AuthAPI key in header X-Api-Key and API key in header X-Api-Secret
Request body
Example request
{
"user": "john@customer.com",
"frameAncestors": "extranet.merchant.com intranet.merchant.com",
"expiresIn": 86400
}Response
Portal URL generated successfully.
Example response
{
"url": "https://app.upflow.com/customers/00a70b35-2be3-4c43-aefb-397190134655?token=xxx"
}Changes
No recorded changes to this operation across all 1 revision of this API.