diff --git a/main.go b/main.go
index 7a3a9282fa8135b7dc6695f40b825c975bcd4ee6..53d5edee36d003e006ffd0a3653f543c7fdb317d 100644
--- a/main.go
+++ b/main.go
@@ -45,7 +45,12 @@ func main() {
 		redirectUri := "https://oauth-proxy.wf.alpha.grandlyon.com/redirect"
 		responseType := "code" 
 
-		redirectUrl := "https://mon-compte-particulier.enedis.fr/dataconnect/v1/oauth2/authorize?client_id="+ clientId +"&duration=P6M&redirect_uri="+ redirectUri +"&response_type="+ responseType +"&state="+ state +"-"+ cozyOrigin
+		// DEV API
+		authURL := "https://gw.hml.api.enedis.fr/dataconnect/v1/oauth2/authorize"
+		// PROD API
+		//authURL := "https://mon-compte-particulier.enedis.fr/dataconnect/v1/oauth2/authorize"
+
+		redirectUrl := authURL +"?client_id="+ clientId +"&duration=P6M&redirect_uri="+ redirectUri +"&response_type="+ responseType +"&state="+ state +"-"+ cozyOrigin
 
 		fmt.Println(time.Now().Format("2006-01-02 15:04:05"), "- Redirect to - ", redirectUrl)
 		http.Redirect(w, r, redirectUrl, 302)
@@ -155,7 +160,10 @@ func main() {
 		fmt.Printf("grant_type: %s\n", grantType)
 		fmt.Printf("refresh_token: %s\n", refreshToken)
 		
-		tokenUrl := "https://gw.prd.api.enedis.fr/v1/oauth2/token"
+		// DEV API
+		tokenUrl := "https://gw.hml.api.enedis.fr/v1/oauth2/token"
+		// PROD API
+		// tokenUrl := "https://gw.prd.api.enedis.fr/v1/oauth2/token"
 		
 		data := url.Values{}
 		data.Set("client_id", clientId)