From 8ce007c983c0b5a483407a6badf073c01146d0b5 Mon Sep 17 00:00:00 2001 From: Corey Haines <34802794+coreyhaines31@users.noreply.github.com> Date: Tue, 17 Feb 2026 11:55:05 -0800 Subject: [PATCH] fix: correct Adobe Analytics missing header and Clearbit auth method - Adobe Analytics: add required x-proxy-global-company-id header (Adobe Analytics 2.0 API rejects requests without this header) - Clearbit: change from Bearer to Basic auth (API key as username) per Clearbit API documentation Found by codex review of all 47 CLI tools. Co-Authored-By: Claude Opus 4.6 --- tools/clis/adobe-analytics.js | 3 ++- tools/clis/clearbit.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/clis/adobe-analytics.js b/tools/clis/adobe-analytics.js index 66149a5..a3a19bc 100755 --- a/tools/clis/adobe-analytics.js +++ b/tools/clis/adobe-analytics.js @@ -13,13 +13,14 @@ const BASE_URL = `https://analytics.adobe.io/api/${COMPANY_ID}` async function api(method, path, body) { if (args['dry-run']) { - return { _dry_run: true, method, url: `${BASE_URL}${path}`, headers: { 'Authorization': '***', 'x-api-key': '***', 'Content-Type': 'application/json' }, body: body || undefined } + return { _dry_run: true, method, url: `${BASE_URL}${path}`, headers: { 'Authorization': '***', 'x-api-key': '***', 'x-proxy-global-company-id': COMPANY_ID, 'Content-Type': 'application/json' }, body: body || undefined } } const res = await fetch(`${BASE_URL}${path}`, { method, headers: { 'Authorization': `Bearer ${ACCESS_TOKEN}`, 'x-api-key': CLIENT_ID, + 'x-proxy-global-company-id': COMPANY_ID, 'Content-Type': 'application/json', }, body: body ? JSON.stringify(body) : undefined, diff --git a/tools/clis/clearbit.js b/tools/clis/clearbit.js index 2f1206b..e0e9683 100755 --- a/tools/clis/clearbit.js +++ b/tools/clis/clearbit.js @@ -8,13 +8,14 @@ if (!API_KEY) { } async function api(method, baseUrl, path, body) { + const auth = 'Basic ' + Buffer.from(`${API_KEY}:`).toString('base64') if (args['dry-run']) { return { _dry_run: true, method, url: `${baseUrl}${path}`, headers: { 'Authorization': '***', 'Content-Type': 'application/json', 'Accept': 'application/json' }, body: body || undefined } } const res = await fetch(`${baseUrl}${path}`, { method, headers: { - 'Authorization': `Bearer ${API_KEY}`, + 'Authorization': auth, 'Content-Type': 'application/json', 'Accept': 'application/json', },