Skip to content

Commit 5ff54bf

Browse files
committed
Fix Brandfetch Search API authentication method
Change authentication from Bearer token to clientId query parameter (?c=) as required by Brandfetch Search API v2 endpoint.
1 parent ac91bf6 commit 5ff54bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/sim/tools/brandfetch/search.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ export const brandfetchSearchTool: ToolConfig<BrandfetchSearchParams, Brandfetch
2424

2525
request: {
2626
url: (params) =>
27-
`https://api.brandfetch.io/v2/search/${encodeURIComponent(params.name.trim())}`,
27+
`https://api.brandfetch.io/v2/search/${encodeURIComponent(params.name.trim())}?c=${params.apiKey}`,
2828
method: 'GET',
29-
headers: (params) => ({
30-
Authorization: `Bearer ${params.apiKey}`,
29+
headers: () => ({
3130
Accept: 'application/json',
3231
}),
3332
},

0 commit comments

Comments
 (0)