---
title: "List connected accounts"
url: https://hexelstudio.com/docs/api/titan/connections/list-connected-accounts
---

# List connected accounts

**GET** `/titan/tools/connected-accounts`

List all connected accounts for a workspace

Requires permission `tool-gateway:auth:read`.

## Query parameters

- `workspace_id: string`

  Workspace ID

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

- `X-Workspace-Id: optional string`

  Workspace scope used by permission checks, if applicable.

- `X-Environment-Id: optional string`

  Optional environment scope.

## Returns

`200` OK (`ConnectedAccountListResponse`)

- `accounts: optional array of ConnectedAccount`

  - `account_email: optional string`

  - `account_name: optional string`

  - `attributes: optional map[string]`

    Attributes are non-secret connection attributes, only the names
reserves for per-tenant hosts (site, subdomain, region,
instance_url): values a token response maps (Salesforce instance_url)
and the non-secret credential fields of those names. They are derived,
never caller-supplied, never a token, and nothing routes on them yet.

  - `auth_config_id: optional string`

  - `connected_account_id: optional string`

  - `created_at: optional string`

  - `destination_boundaries: optional array of string`

    DestinationBoundaries carries administrator-assigned destination scope in
canonical "type:id" form (e.g. "github.organization:acme"). A Titan grant's
required boundaries must all be present here for the connection to be eligible.

  - `environment_id: optional string`

  - `expires_at: optional string`

  - `external_account_id: optional string`

  - `nano_id: optional string`

  - `organization_id: optional string`

  - `permissions: optional array of string`

    Permissions are normalized permissions derived from granted scopes at connect
time (e.g. "repo"); a grant's required_permissions must be a subset.

  - `principal_type: optional string`

    PrincipalType is the destination-principal class this connection represents
(e.g. "oauth_user", "mcp_credential"). It must be one of a grant's principal_types.

  - `priority: optional integer`

  - `status: optional string`

  - `tags: optional array of string`

    Tags are administrator-assigned labels; a grant's required_tags must be a subset.

  - `toolkit_slug: optional string`

  - `updated_at: optional string`

  - `workspace_id: optional string`

- `total: optional integer`

## Errors

- `400` Bad Request
- `401` Unauthenticated: token missing or rejected at the edge
- `403` Forbidden: caller lacks the required permission
- `500` Internal Server Error

## Example

```bash
curl --request GET \
  --url 'https://api.hexelstudio.com/v1/titan/tools/connected-accounts?workspace_id=WORKSPACE_ID' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (200)

```json
{
  "accounts": [
    {
      "account_email": "string",
      "account_name": "string",
      "attributes": {
        "key": "string"
      },
      "auth_config_id": "string",
      "connected_account_id": "string",
      "created_at": "2026-01-01T00:00:00Z",
      "destination_boundaries": [
        "string"
      ],
      "environment_id": "string",
      "expires_at": "2026-01-01T00:00:00Z",
      "external_account_id": "string",
      "nano_id": "string",
      "organization_id": "string",
      "permissions": [
        "string"
      ],
      "principal_type": "string",
      "priority": 0,
      "status": "string",
      "tags": [
        "string"
      ],
      "toolkit_slug": "string",
      "updated_at": "2026-01-01T00:00:00Z",
      "workspace_id": "string"
    }
  ],
  "total": 0
}
```

### Response (400)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (500)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
