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 }