# Get secret bindings

`GET https://api.instacloud.com/projects/{projectId}/secret-bindings`

**Token scope:** `account` · `org` · `project` — read-only tokens allowed.

List explicit provider credential bindings — for one compute service, or for the whole branch when target is omitted. Gated — secrets.read.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `branch` | query | `string` | no | Branch name (defaults to the project's default branch) |
| `target` | query | `string` | no | target compute service ref: "compute/<name>"; omit for every binding on the branch |
| `projectId` | path | `string` | yes |  |

## Response 200

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bindings` | `object[]` | yes |  |
| `bindings.envName` | `string` | yes |  |
| `bindings.sourceName` | `string` | yes |  |
| `bindings.target` | `object` | yes |  |
| `bindings.target.id` | `string` | yes |  |
| `bindings.target.type` | `string` | yes |  |
| `bindings.target.name` | `string` | yes |  |
| `bindings.source` | `object` | yes |  |
| `bindings.source.id` | `string` | yes |  |
| `bindings.source.type` | `string` | yes |  |
| `bindings.source.name` | `string` | yes |  |

## Response 202

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | `"approval_required"` | no |  |
| `approvalId` | `string` | no |  |
| `action` | `string` | no | the gated action, or a comma-joined compound set — prefer `actions` |
| `actions` | `string[]` | no | every capability this approval covers |
| `message` | `string` | no |  |
| `url` | `string` | no | the console page where a project admin reviews this request |
| `nextActions` | `object[]` | no |  |
| `nextActions.op` | `string` | yes | Neutral logical action id, e.g. "service.add" — NOT an operationId or a CLI/MCP tool name; each client maps it to its own surface. |
| `nextActions.reason` | `string` | yes | Natural-language, human/LLM-facing "why do this now". |
| `nextActions.args` | `object` | no | Suggested, flat named arguments; "<placeholder>"s where a value is unknown. |
| `nextActions.gated` | `boolean` | no | True if the action passes a governance gate. |

## Response 400

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | yes |  |

## Response 404

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | yes |  |
