MCPcopy Index your code
hub / github.com/simstudioai/sim / linqHeaders

Function linqHeaders

apps/sim/tools/linq/utils.ts:7–12  ·  view source on GitHub ↗
(apiKey: string)

Source from the content-addressed store, hash-verified

5
6/** Authorization headers shared by every Linq request. */
7export function linqHeaders(apiKey: string): Record<string, string> {
8 return {
9 Authorization: `Bearer ${apiKey}`,
10 'Content-Type': 'application/json',
11 }
12}
13
14/** Extract a human-readable error message from a Linq error response body. */
15export function extractLinqError(data: unknown, fallback: string): string {

Calls

no outgoing calls

Tested by

no test coverage detected