---
docId: doc_cf2f537ac9754b3d8f2a57b0d4cf7283
title: List connections
description: "List workspace connections and recover their pending links."
api:
  group: canales
  auth: bearer
  operations:
    - operationId: listChannelConnections
      method: GET
      path: /v1/channels/connections
      postmanName: List connections
---

<script>
  import { Ways } from '$lib/components';
</script>

# List connections

List workspace connections, newest first. Pending connections include `shareUrl` or `authorizeIn`, so you can recover a link or check what remains to be completed.

## Example

```bash
curl "https://api.platic.ai/v1/channels/connections?status=open" \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

## Query parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `status` | string | `open`: only the pending ones that have not expired (`awaiting_user`, `authorizing`, or `awaiting_selection`). `all` (default): all of them | — |
| `type` | string | Only connections of this channel type: `messenger`, `instagram`, `facebook-comments`, `instagram-comments`, `whatsapp`, `email`, `gmail` or `outlook` | — |
| `limit` | integer | How many per page, `1` to `100`. Default `25` | — |
| `pageToken` | string | The `nextPageToken` of the previous page. One that isn't from this workspace or no longer exists answers `400` | — |
| `workspace` | string | Workspace ID. Required if your credential covers several workspaces; without it the answer is `400` | If the credential has several |

## Response

```json
{
  "status": "success",
  "data": [
    {
      "id": "chc_7f3k9QmX2pLwR4tZ",
      "type": "messenger",
      "completion": "authorize",
      "status": "awaiting_user",
      "authorizeIn": "https://app.platica.mx/workspace/g6yCA16pkWl5eXo7KszB/connect/channel/chc_7f3k9QmX2pLwR4tZ",
      "shareUrl": "https://app.platica.mx/connect/chl_Q2x7vR9mK4pT1sW8yZ3bN6cF0hJ5gL2dA7eU9iO4qXk",
      "createdAt": "2026-11-12T18:40:00.000Z",
      "expiresAt": "2026-11-13T18:40:00.000Z",
      "agentId": "tVKljCHCNiebQdasHeit",
      "availableAssets": [],
      "channels": [],
      "error": null,
      "nextStep": "Send shareUrl to whoever manages the Facebook page: it works without a Platica account until expiresAt. They sign in with Facebook and choose the pages. A member of this workspace with access to Integrations can also open authorizeIn. Then check this connection again with GET /v1/channels/connections/chc_7f3k9QmX2pLwR4tZ. To send a new link (the current one stops working), use POST /v1/channels/connections/chc_7f3k9QmX2pLwR4tZ/link."
    },
    {
      "id": "chc_Vn2sQ8rT5wYk1LmP",
      "type": "whatsapp",
      "completion": "wizard",
      "status": "expired",
      "authorizeIn": null,
      "shareUrl": null,
      "createdAt": "2026-11-10T15:00:00.000Z",
      "expiresAt": "2026-11-11T15:00:00.000Z",
      "agentId": null,
      "availableAssets": [],
      "channels": [],
      "error": null,
      "nextStep": "It expired before a person completed it. Start a new connection with POST /v1/channels/connections."
    }
  ],
  "nextPageToken": null
}
```

## Response fields

| Field | Type | Description |
|-------|------|-------------|
| `status` | string | Always `success` |
| `data` | object[] | The connections, with the fields of [get a connection](/api-reference/channels/connections/get#response-fields) |
| `nextPageToken` | string \| null | Send it as `pageToken` for the next page. `null` on the last one |

A page may bring fewer than `limit` even when there are more, especially with `status` or `type`: keep asking while `nextPageToken` is not `null`.

## Errors

| Status | `details.code` | When it happens |
|--------|----------------|-----------------|
| `400` | `INVALID_REQUEST` | `status` is neither `open` nor `all`, `type` is not one of the connection types, `limit` is not between 1 and 100, or `pageToken` is not shaped like a connection id, isn't from this workspace or no longer exists. `details.issues` says which. Also when your credential covers several workspaces and `?workspace=` is missing (`details.available`) |
| `401` | `UNAUTHENTICATED` / `CREDENTIAL_REVOKED` | The credential is missing, invalid, or no longer covers this workspace |
| `403` | `FORBIDDEN` | The credential does not have the Integrations module |
| `503` | `OPERATION_UNCONFIRMED` | Platica could not read the connections. Try again |

```json
{
  "code": 400,
  "error": "Bad Request - The request has validation errors",
  "details": {
    "code": "INVALID_REQUEST",
    "message": "Number must be less than or equal to 100",
    "issues": [
      { "path": ["limit"], "message": "Number must be less than or equal to 100" }
    ]
  }
}
```

The general error format is in [Errors](/api-reference/errors).

## Notes

- When listing, each pending `wizard` connection is checked as when you [get it](/api-reference/channels/connections/get): if a channel of that type was already created, it shows as `connected`.
- Expired connections show as `expired`. `status=open` leaves them out.
- `shareUrl` is the current link: if you [renewed it](/api-reference/channels/connections/renew-link), the new one shows here.
- `platica:read` is enough.
