fix: use correct auth header for gaiia api

gaiia expects X-Gaiia-Api-Key header, not Authorization: Bearer.
This commit is contained in:
Graham McIntire 2026-02-13 14:01:19 -06:00
parent 37ea526c61
commit e4499e8dd0
No known key found for this signature in database

View file

@ -291,7 +291,7 @@ defmodule Towerops.Gaiia.Client do
method: :post,
url: endpoint,
headers: [
{"authorization", "Bearer #{api_key}"},
{"x-gaiia-api-key", api_key},
{"content-type", "application/json"}
],
json: %{"query" => query_string, "variables" => variables}