> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akua.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get install details

Returns current install metadata.

`GET https://api.akua.dev/v1/installs/{id}`

## Authorizations

- `Authorization: Bearer <token>` (BearerAuth): Bearer token for the authenticated caller.

## Headers

- `akua-context` (string): Optional workspace/scope context for the request. Carries a single workspace wire id (`ws_…`) today. Only needed for broad tokens - a workspace-owned token implies its workspace. Required string length: `1 - 53`. Example: `"ws_j572abc123def4"`.

## Path Parameters

- `id` (string, required): Install ID. Required string length: `1 - 55`. Example: `"inst_j572abc123def456"`.

## Response

### 200: Install details

`application/json`: `Install`

- `id` (string, required): Required string length: `3 - 55`.
- `html_url` (string<uri>, required): Absolute dashboard URL for this resource. OUTPUT_ONLY. Maximum string length: `2048`. Example: `"https://akua.dev/installs/inst_j572abc123def456"`.
- `workspace_id` (string, required): Required string length: `2 - 53`.
- `cluster_id` (string, required): Required string length: `3 - 54`.
- `package_id` (string, required): Required string length: `3 - 54`.
- `package_version` (string, required): Required string length: `1 - 128`.
- `state` (enum<string>, required): Install lifecycle state from the control plane perspective. Available options: `"pending"`, `"rendering"`, `"syncing"`, `"unknown"`, `"healthy"`, `"degraded"`, `"failed"`, `"deleted"`.
- `conditions` (object[], required): Maximum array length: `32 elements`. What needs attention now; empty when nothing does. Reasons:
  - `missing-permissions` (warning): the Cluster agent lacks permissions for what this Install applies, because the grant was narrowed or never covered its namespace. Remedy `grant-access` names them; the Install resumes by itself once they are granted.
  - When `state` is `failed`, one error whose reason says why: `render-failed`, `placement-failed`, `route-failed`, `endpoint-unreachable`, `agent-offline`, `agent-unsupported`, `abandoned` or `storage-class-unavailable`.
  - `storage-class-unavailable` (error): the Package claims volumes, the Cluster offers no StorageClass and the person who installed may not add one. A Workspace admin (`cluster.addons.create`) installs again and Akua adds local-path, or remedy `change-input` names `storage_class`: install again naming a class the Cluster has.
  - `reason` (string, required): Kebab-case reason; the resource documents the reasons it reports. Maximum string length: `64`. Pattern: `^[a-z0-9]+(?:-[a-z0-9]+)*$`. Example: `"agent-offline"`.
  - `severity` (enum<string>, required): `error`: the resource failed; the condition says why. `warning`: it is limited or held until the person acts or it recovers. `info`: worth knowing, nothing to do. Available options: `"error"`, `"warning"`, `"info"`.
  - `message` (string, required): Safe to show the person as is. Maximum string length: `512`.
  - `remedy` (object | null, required): What the person can do; null when nothing they do helps.
    - Any of:
      - `free-capacity`
        - `kind` (enum<string>, required): Available options: `"free-capacity"`.
        - `metric` (enum<string>, required): Available options: `"kaas/clusters"`, `"compute/machines"`, `"compute/cpu"`, `"compute/memory"`, `"compute/machines_concurrency"`, `"compute/managed_vm_trial"`, `"agents/turns_concurrency"`, `"agents/sandboxes"`, `"agents/sandboxes_running"`, `"agents/retained_filesystem_lifetime"`, `"codemode/executions"`, `"api/secrets_access"`, `"api/secrets_write"`, `"domain_routing/preview_hostnames"`, `"domain_routing/custom_domains"`, `"source_control/repositories"`.
        - `limit` (integer, required)
        - `usage` (integer, required)
        - `hint` (string, required): Maximum string length: `256`.
      - `upgrade-plan`
        - `kind` (enum<string>, required): Available options: `"upgrade-plan"`.
        - `metric` (enum<string>, required): Available options: `"kaas/clusters"`, `"compute/machines"`, `"compute/cpu"`, `"compute/memory"`, `"compute/machines_concurrency"`, `"compute/managed_vm_trial"`, `"agents/turns_concurrency"`, `"agents/sandboxes"`, `"agents/sandboxes_running"`, `"agents/retained_filesystem_lifetime"`, `"codemode/executions"`, `"api/secrets_access"`, `"api/secrets_write"`, `"domain_routing/preview_hostnames"`, `"domain_routing/custom_domains"`, `"source_control/repositories"`.
      - `grant-access`
        - `kind` (enum<string>, required): Available options: `"grant-access"`.
        - `namespace` (string | null, required): Maximum string length: `63`.
        - `permissions` (string[], required): Required array length: `1 - 64 elements`.
      - `reconnect`
        - `kind` (enum<string>, required): Available options: `"reconnect"`.
        - `what` (enum<string>, required): Available options: `"cluster-agent"`, `"connection"`.
      - `add-machine`
        - `kind` (enum<string>, required): Available options: `"add-machine"`.
      - `add-billing`
        - `kind` (enum<string>, required): Available options: `"add-billing"`.
      - `change-input`
        - `kind` (enum<string>, required): Available options: `"change-input"`.
        - `path` (string[], required): Maximum array length: `32 elements`.
      - `retry`
        - `kind` (enum<string>, required): Available options: `"retry"`.
        - `after_seconds` (integer | null, required)
      - `run-agent-install`
        - `kind` (enum<string>, required): Run the command from `POST /v1/clusters/{id}/connector_install` again; it re-applies the ClusterConnector and its updater at one release. Available options: `"run-agent-install"`.
      - `customer-upgrade`
        - `kind` (enum<string>, required): The change needs rights the agent was not granted. Run `command` (a `helm upgrade`, no secret) with an identity that holds `permissions`, or grant them to the agent. Available options: `"customer-upgrade"`.
        - `permissions` (string[], required): Required array length: `1 - 64 elements`.
        - `command` (string, required): Required string length: `1 - 8192`.
  - `last_transition_at` (integer, required): Unix timestamp (seconds) when this condition last changed. Required range: `x >= 0`.
- `operation_id` (string, required): Required string length: `2 - 192`.
- `reconciling` (boolean, required)
- `url` (string<uri> | null, required): Maximum string length: `2048`.
- `storage_class` (string | null): The StorageClass every volume of the Install names: once ready, the one asked for or the one Akua picked from the Cluster (`storage_classes`); null when the Package claims no volume. OUTPUT_ONLY. A Kubernetes StorageClass name. Required string length: `1 - 253`. Pattern: `^[a-z0-9](?:[-a-z0-9]*[a-z0-9])?(?:\.[a-z0-9](?:[-a-z0-9]*[a-z0-9])?)*$`. Example: `"local-path"`.
- `created_at` (integer, required): Unix timestamp (seconds). Required range: `x >= 0`.
- `updated_at` (integer, required): Unix timestamp (seconds). Required range: `x >= 0`.
- `etag` (string, required)

### 401: Missing, invalid or expired credential.

`application/json`: `ApiUnauthorized`

- `_tag` (enum<string>, required): Available options: `"Unauthorized"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 403: The credential may not act in this workspace.

`application/json`: `ApiForbidden`

- `_tag` (enum<string>, required): Available options: `"Forbidden"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 404: The resource was not found in this workspace.

`application/json`: `ApiNotFound`

- `_tag` (enum<string>, required): Available options: `"NotFound"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

### 503: The service is temporarily unavailable.

`application/json`: `ApiServiceUnavailable`

- `_tag` (enum<string>, required): Available options: `"ServiceUnavailable"`.
- `success` (enum<boolean>, required): Available options: `false`.
- `errors` (object[], required): Minimum array length: `1 element`.
  - `code` (integer, required): Machine-readable error code. Required range: `-9007199254740991 <= x <= 9007199254740991`. Example: `7002`.
  - `message` (string, required): Human-readable error message. Example: `"Resource not found"`.
  - `path` (string[]): Field path that caused the error, when applicable. Example: `["body","name"]`.
  - `metadata` (record<string, string>)
- `result` (object, required)

## Example request

```bash
curl --request GET \
  --url 'https://api.akua.dev/v1/installs/inst_j572abc123def456' \
  --header 'Authorization: Bearer <token>'
```

## Example response

`200` `application/json`

```json
{
  "id": "inst_j572abc123def456",
  "html_url": "https://akua.dev/installs/inst_j572abc123def456",
  "workspace_id": "ws_j572abc123def456",
  "cluster_id": "clu_j572abc123def456",
  "package_id": "pkg_j572abc123def456",
  "package_version": "<string>",
  "state": "pending",
  "conditions": [
    {
      "reason": "agent-offline",
      "severity": "error",
      "message": "<string>",
      "remedy": {
        "kind": "free-capacity",
        "metric": "kaas/clusters",
        "limit": 123,
        "usage": 123,
        "hint": "<string>"
      },
      "last_transition_at": 123
    }
  ],
  "operation_id": "op_j572abc123def456",
  "reconciling": true,
  "url": "https://example.com",
  "storage_class": "local-path",
  "created_at": 123,
  "updated_at": 123,
  "etag": "<string>"
}
```
