We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c5918e commit 2c62255Copy full SHA for 2c62255
runpod/api/graphql.py
@@ -21,11 +21,12 @@ def run_graphql_query(query: str) -> Dict[str, Any]:
21
from runpod import api_key # pylint: disable=import-outside-toplevel, cyclic-import
22
23
api_url_base = os.environ.get("RUNPOD_API_BASE_URL", "https://api.runpod.io")
24
- url = f"{api_url_base}/graphql?api_key={api_key}"
+ url = f"{api_url_base}/graphql"
25
26
headers = {
27
"Content-Type": "application/json",
28
"User-Agent": USER_AGENT,
29
+ "Authorization": f"Bearer {api_key}",
30
}
31
32
data = json.dumps({"query": query})
0 commit comments