MCPcopy Create free account
hub / github.com/triggerdotdev/trigger.dev / retrieveEnvVar

Method retrieveEnvVar

packages/core/src/v3/apiClient/index.ts:357–366  ·  view source on GitHub ↗
(projectRef: string, slug: string, key: string)

Source from the content-addressed store, hash-verified

355 }
356
357 retrieveEnvVar(projectRef: string, slug: string, key: string) {
358 return zodfetch(
359 EnvironmentVariableValue,
360 `${this.baseUrl}/api/v1/projects/${projectRef}/envvars/${slug}/${key}`,
361 {
362 method: "GET",
363 headers: this.#getHeaders(false),
364 }
365 );
366 }
367
368 createEnvVar(projectRef: string, slug: string, body: CreateEnvironmentVariableRequestBody) {
369 return zodfetch(

Callers 1

retrieveFunction · 0.80

Calls 2

#getHeadersMethod · 0.95
zodfetchFunction · 0.90

Tested by

no test coverage detected