# Customizing the Universal Login API

**URL:** <https://community.auth0.com/t/customizing-the-universal-login-api/148355>\
**Category:** Get Help\
**Tags:** branding-mangement-api, management-api\
**Created:** [October 1, 2024, 8:46pm UTC](https://community.auth0.com/t/customizing-the-universal-login-api/148355 "2024-10-01T20:46:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottcp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/scottcp/32/41103_2.png) [@scottcp](https://community.auth0.com/u/scottcp)\
**Post date:** [October 1, 2024, 8:46pm UTC](https://community.auth0.com/t/customizing-the-universal-login-api/148355/1 "2024-10-01T20:46:45Z")

</div>

Hi,  
I am trying to customize the Universal Login, I’ve started by trying to customize each of the logo’s for different application logins. I’ve used the following API call and this data.

> curl --request PUT   
> –url ‘https://{yourDomain}/api/v2/branding/templates/universal-login’   
> –header ‘authorization: Bearer MGMT\_API\_ACCESS\_TOKEN’   
> –header ‘content-type: text/html’   
> –data '
> 
> Welcome to {{ application.name }} {%- auth0:head -%} {% if application.name == "Jobr-Projectr" %} #custom-prompt-logo { background-image: url('https://cnp.imgix.net/jobr-round-logo.png'); } {% elsif application.name == "Claven" %} #custom-prompt-logo { background-image: url('https://cnp.imgix.net/claven-round-icon.png'); } {% else %} #custom-prompt-logo { background-image: url('https://www.clientsandprofits.com/graphics/cnp-round-icon150x.png'); } {% endif %} {%- auth0:widget -%} '

I got a 204 with no messages back. I see no changes in the universal login.

I’ve used this help article to get this far can anyone point out what I might be missing.  
[https://auth0.com/docs/customize/login-pages/universal-login/customize-templates](https://auth0.com/docs/customize/login-pages/universal-login/customize-templates)

---

<div class="post-metadata">

**Author:** ![emmanuel.paz](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@emmanuel.paz](https://community.auth0.com/u/emmanuel.paz)\
**Post date:** [October 2, 2024, 5:34pm UTC](https://community.auth0.com/t/customizing-the-universal-login-api/148355/3 "2024-10-02T17:34:29Z")

</div>

Hey Scott!

It looks like the data you are sending is missing some HTML components to format the page correctly with the custom CSS; take a look [here](https://auth0.com/docs/customize/login-pages/universal-login/customize-templates#css-customization)!

It should look a little more something like this!

```auto
<!DOCTYPE html>
<html>
<head>
<title>
Welcome to {{ application.name }}
</title>
{%- auth0:head -%} 
<style>
{% if application.name == "Jobr-Projectr" %} 
#custom-prompt-logo { 
  background-image: url('https://cnp.imgix.net/jobr-round-logo.png'); 
  
} 
{% elsif application.name == "Claven" %} 
#custom-prompt-logo { 
  background-image: url('https://cnp.imgix.net/claven-round-icon.png'); 
  
} {% else %} 
#custom-prompt-logo { 
  background-image: url('https://www.clientsandprofits.com/graphics/cnp-round-icon150x.png'); 
  
} 
  {% endif %}
</style>
</head>
<body class="_widget-auto-layout _use-custom-prompt-logo">
{%- auth0:widget -%} 
</body>
</html>

```

Stringified format.

```auto
'<!DOCTYPE html>\n<html>\n<head>\n<title>\nWelcome to {{ application.name }}\n</title>\n{%- auth0:head -%} \n<style>\n{% if application.name == \"Jobr-Projectr\" %} \n#custom-prompt-logo { \n background-image: url('https://cnp.imgix.net/jobr-round-logo.png'); \n \n} \n{% elsif application.name == \"My App\" %} \n#custom-prompt-logo { \n background-image: url('https://cnp.imgix.net/claven-round-icon.png'); \n \n} {% else %} \n#custom-prompt-logo { \n background-image: url('https://www.clientsandprofits.com/graphics/cnp-round-icon150x.png'); \n \n} \n {% endif %}\n</style>\n</head>\n<body class=\"_widget-auto-layout _use-custom-prompt-logo\">\n{%- auth0:widget -%} \n</body>\n</html>\n'

```

Also, ensure you have configured a custom domain in your tenant, which is needed to customize your universal login template. See [here](https://auth0.com/docs/customize/custom-domains).

Let me know if this helps!

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [October 10, 2024, 1:12pm UTC](https://community.auth0.com/t/customizing-the-universal-login-api/148355/4 "2024-10-10T13:12:20Z")

</div>

Hi team! 🖐

This is just a heads-up that we’ll be hosting an [Ask Me Anything (AMA) session all about Universal Login](https://community.auth0.com/t/october-24-ask-me-anything-tailor-your-experience-with-universal-login-from-low-code-to-pro-code/148825), and this question is relevant to our event. Auth0 by Okta Subject Matter Experts will answer your question on Thursday, October 24th, from 9 a.m. to 11 a.m. PST.

🤔 Have more questions about customizing your login experience, boosting security, or implementing advanced features?

👉 Drop your questions in [this thread](https://community.auth0.com/t/october-24-ask-me-anything-tailor-your-experience-with-universal-login-from-low-code-to-pro-code/148825) before October 23rd, and our experts will provide answers during the AMA!

🎉 Plus, you’ll earn points and a special badge for participating!

[Ask Me Anything: Tailor Your Experience with Universal Login — From Low-Code to Pro-Code](https://community.auth0.com/t/october-24-ask-me-anything-tailor-your-experience-with-universal-login-from-low-code-to-pro-code/148825)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 24, 2024, 1:12pm UTC](https://community.auth0.com/t/customizing-the-universal-login-api/148355/5 "2024-10-24T13:12:23Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
