Skip to content

Resolve access items

POST
/api/v1/access/resolve

Resolves the given access items by checking host sources and computing the injections (env vars, mounts) that would be applied to containers. Used by the UI “Test” button to preview resolution without creating a container.

Item IDs to resolve

One of:
object

OK

object
items
Array<object>
object
credentials

Credentials contains per-credential resolution results.

Array<object>
object
error

Error is set when resolution failed (distinct from “not detected”).

string
injections

Injections are the resolved container-side deliveries.

Array<object>
object
key

Key is the env var name or container path.

string
readOnly

ReadOnly applies to mount injections.

boolean
type

Type is the injection kind (env, mount_file, mount_socket).

string
Allowed values: env mount_file mount_socket
value

Value is the resolved content (env var value, host file path, or host socket path).

string
label

Label is the credential’s human-readable name.

string
resolved

Resolved is true when a source was detected and all injections were produced.

boolean
sourceMatched

SourceMatched describes which source was matched (empty when unresolved).

string
id

ID is the access item identifier.

string
label

Label is the access item display name.

string

Invalid request body

object
code
string
Allowed values: INVALID_BODY INVALID_CONTAINER_ID INVALID_CONTAINER_NAME INVALID_WORKTREE_ID INVALID_WORKTREE_NAME REQUIRED_FIELD INVALID_PATH INVALID_NETWORK_CONFIG NOT_A_DIRECTORY NOT_FOUND NAME_TAKEN NOT_CONFIGURED STALE_MOUNTS BUDGET_EXCEEDED PROXY_ERROR INTERNAL
error
string

Item not found

object
code
string
Allowed values: INVALID_BODY INVALID_CONTAINER_ID INVALID_CONTAINER_NAME INVALID_WORKTREE_ID INVALID_WORKTREE_NAME REQUIRED_FIELD INVALID_PATH INVALID_NETWORK_CONFIG NOT_A_DIRECTORY NOT_FOUND NAME_TAKEN NOT_CONFIGURED STALE_MOUNTS BUDGET_EXCEEDED PROXY_ERROR INTERNAL
error
string

Internal Server Error

object
code
string
Allowed values: INVALID_BODY INVALID_CONTAINER_ID INVALID_CONTAINER_NAME INVALID_WORKTREE_ID INVALID_WORKTREE_NAME REQUIRED_FIELD INVALID_PATH INVALID_NETWORK_CONFIG NOT_A_DIRECTORY NOT_FOUND NAME_TAKEN NOT_CONFIGURED STALE_MOUNTS BUDGET_EXCEEDED PROXY_ERROR INTERNAL
error
string