diff --git a/hnslinks.py b/hnslinks.py
index 3f217d6..041ee13 100644
--- a/hnslinks.py
+++ b/hnslinks.py
@@ -114,9 +114,9 @@ def addDomain(params, authentication):
         auth = json.load(f)
         if not auth:
             return {"status": "Missing Varo API or instance"}
-        if 'api' not in auth or 'instance' not in auth:
+        if 'key' not in auth or 'instance' not in auth:
             return {"status": "Missing Varo API or instance"}
-        api = auth["api"]
+        api = auth["key"]
         instance = auth["instance"]
     
     headers = {"Authorization": f"Bearer {api}"}