From ce56478b3cb5889fbc3ef1fbfb706b9a0af9a0d9 Mon Sep 17 00:00:00 2001 From: Tyler Sommer Date: Tue, 31 Mar 2026 10:33:31 -0600 Subject: [PATCH] Use X-Api-Key header when APIKey option is configured --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 14e4581..03d59f8 100644 --- a/client.go +++ b/client.go @@ -71,7 +71,7 @@ func (c *Client) NewRequest(ctx context.Context, method, path string, in any) (* req.Header.Set("Content-Type", "application/json") } if len(c.apiKey) > 0 { - req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", c.apiKey)) + req.Header.Set("X-Api-Key", c.apiKey) } return req, nil }