Auth0 Home Blog Docs

How to set up hosted page ?



This is hosted page question. We have multiple clients, each client will have its own hosted page, which is generated with react/redux/node application, which will have build process to create individual HTML file for each client. I want to uploading those generated multiple html login page to the tenant, how to implement this work ? can we use the management API ?


You can update the Hosted Login Page for each client with the management API. To do so, you can use the PATCH /api/v2/clients/{id} endpoint to update the custom_login_page_on and custom_login_page attributes of the client.

The cURL command for the request would look something like:

curl -H "Authorization: Bearer {MANAGEMENT_API_TOKEN}" -X PATCH  
  -H "Content-Type: application/json" 
  -d '{"custom_login_page_on" : true, "custom_login_page" : "<html><body>Your custom Hosted Login Page</body></html>"}'