List the values a deployment needs in a project
const url = 'https://example.com/v1/deployments/example/values';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/deployments/example/values \ --header 'Authorization: Bearer <token>'Every value the deployment needs set in the project before it serves there: each tool’s secrets and env values with no default, a model key for each agent version it ships or carries, and the pack service’s own env. Each is read where a run in that project reads it, under the env the runtime serves: foundAt says where it’s set, and problem why it isn’t ready. Names only, never a value. In the deployment’s own project, a value is found wherever it’s set. In another project, the one a promotion would take it to, a tool’s secret counts only at a scope the caller administers, as a promotion by the caller would record it, so the list says what that promotion’s check would say. Needs what listing secrets in that project needs (admin on it), read on the project the deployment serves, and read on the tenant, as every deployments route does.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Deployment id assigned by the ledger at register time.
Query Parameters
Section titled “Query Parameters”The project the values are needed in. Default: the deployment’s own project (the tenant’s Default project for a tenant-wide deployment).
Responses
Section titled “Responses”The values, names only.
object
Every value the deployment needs in the project: each tool’s secrets and env values (in the deployment’s order), then each model key by provider, then the pack service’s env.
object
The secret’s or env value’s name; for a model key, the key’s secret name, or any provider when none is registered.
secret, env, model-key or pack-env; a later runtime may add kinds, so treat an unknown one as a value not yet named.
object
tool, agent, provider or pack; a later runtime may add kinds, so treat an unknown one as a need not yet named.
Where a run finds it, when it is set: the project, else its org, else the tenant.
Why it isn’t ready; absent when it is. One of a fixed list; a later runtime may add problems, so treat an unknown one as a reason not yet named. missing: set nowhere a run looks. secret-not-yet: a pack env name set only as a secret, which isn’t given into a pack service’s environment yet. ambiguous: a pack env name set both as a secret and as a plain value. revoked: a tool’s secret revoked where it’s recorded, or a model key revoked where a run looks first (a run refuses rather than read a wider one). no-provider: an agent that runs on any provider (it names none, or names one that isn’t registered), with no provider registered in the tenant, so a run has none to call.
Example
{ "data": [ { "foundAt": "project" } ]}A projectId that isn’t a project id, or none for a deployment whose project this runtime doesn’t record (bad-input).
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No admin on the project, or no read on the tenant.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No deployment with that id under this tenant, or one in a project the caller doesn’t read (deployment-not-found), or projectId names no project of this tenant (project-not-found).
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}See also
GET /v1/deployments/{deploymentId}: Fetch a signed deployment recordGET /v1/deployments/{deploymentId}/pack-env: Show where each name a deployment's pack declares is setPOST /v1/deployments/{deploymentId}/secrets: Sync secrets against a deploymentPOST /v1/deployments/{deploymentId}/promotions: Promote a deployment to the next environment- Error code
bad-input - Error code
deployment-not-found - Error code
project-not-found - Every error code