# A project's connections

> The credentials and platform resources the project's workflows and apps are wired to.

Source: https://docs.generalinput.com/api/projects/connections



<Endpoint method="GET" path="/v1/projects/:id/connections" />

<Access scope="projects:manage" />

One row per credential, database, store, or browser the project's workflows and apps point at, however many slots reach it. It is read off the wiring, so it grants nothing: a run reaches a connection through its workflow, and `viewerCanUse` only reports whether the caller could reach it in their own chats. Hosted singletons and slots whose target is gone are left out. Only resources the caller can see contribute.

## Response [#response]

```json
{
  "connections": [
    {
      "selectionId": "cred_01HX…",
      "kind": "credential",
      "title": "Sales HubSpot",
      "service": "hubspot",
      "iconUrl": "https://icons.generalinput.com/hubspot.png",
      "owner": { "membershipId": "um_01HX…", "displayName": "Ada" },
      "isOwnedByViewer": true,
      "viewerCanUse": true,
      "usedBy": [
        {
          "resourceId": "wf_01HX…",
          "resourceName": "Daily Digest",
          "resourceType": "workflow"
        }
      ]
    }
  ]
}
```

| Field             | Notes                                                                                        |
| ----------------- | -------------------------------------------------------------------------------------------- |
| `selectionId`     | The credential or platform-resource id the slot points at.                                   |
| `kind`            | `credential`, `database`, `storage`, or `browser_profile`.                                   |
| `service`         | The catalog id the icon resolves through; a platform resource names its kind. Can be `null`. |
| `owner`           | Who owns the connection, or `null`.                                                          |
| `isOwnedByViewer` | Whether the caller owns it.                                                                  |
| `viewerCanUse`    | Whether the caller could reach it in their own chats. It grants nothing here.                |
| `usedBy`          | The workflows and apps in the project wired to it.                                           |
