diff --git a/templates/main/instances.html b/templates/main/instances.html
index 642f4ed..97ed56c 100644
--- a/templates/main/instances.html
+++ b/templates/main/instances.html
@@ -474,7 +474,7 @@ async function authenticateInstance() {
try {
// First login to get token
- const loginResponse = await fetch(`${instanceUrl}/admin/login`, {
+ const loginResponse = await fetch(`${instanceUrl}/api/admin/login`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -491,7 +491,7 @@ async function authenticateInstance() {
const { token } = await loginResponse.json();
// Then create management API key
- const keyResponse = await fetch(`${instanceUrl}/admin/management-api-key`, {
+ const keyResponse = await fetch(`${instanceUrl}/api/admin/management-api-key`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',