List connections

SDK platic.channels.connections.list()

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

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

Query parameters

ParameterTypeDescriptionRequired
statusstringopen: only the pending ones that have not expired (awaiting_user, authorizing, or awaiting_selection). all (default): all of them—
typestringOnly connections of this channel type: messenger, instagram, facebook-comments, instagram-comments, whatsapp, email, gmail or outlook—
limitintegerHow many per page, 1 to 100. Default 25—
pageTokenstringThe nextPageToken of the previous page. One that isn't from this workspace or no longer exists answers 400—
workspacestringWorkspace ID. Required if your credential covers several workspaces; without it the answer is 400If the credential has several

Response

{
  "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

FieldTypeDescription
statusstringAlways success
dataobject[]The connections, with the fields of get a connection
nextPageTokenstring | nullSend 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

Statusdetails.codeWhen it happens
400INVALID_REQUESTstatus 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)
401UNAUTHENTICATED / CREDENTIAL_REVOKEDThe credential is missing, invalid, or no longer covers this workspace
403FORBIDDENThe credential does not have the Integrations module
503OPERATION_UNCONFIRMEDPlatica could not read the connections. Try again
{
  "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.

Notes

  • When listing, each pending wizard connection is checked as when you get it: 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, the new one shows here.
  • platica:read is enough.