Get a connection

SDK platic.channels.connections.get()

Check a connection requested with connect a channel. It shows the pending step, available choices, connected channels, or failure reason. While pending, it includes shareUrl and authorizeIn. Check after the person authorizes or completes the wizard.

Example

await platic.channels.connections.get("connection_123");

Path parameters

ParameterTypeDescriptionRequired
connectionIdstringConnection id (chc_…)✓

Query parameters

ParameterTypeDescriptionRequired
workspacestringWorkspace ID. Required if your credential covers several workspaces; without it the answer is 400If the credential has several

Response

A connection waiting for you to choose what to connect:

{
  "status": "success",
  "message": "Choose what to connect — see nextStep",
  "data": {
    "id": "chc_7f3k9QmX2pLwR4tZ",
    "type": "messenger",
    "completion": "authorize",
    "status": "awaiting_selection",
    "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": [
      { "platformId": "104857362918475", "name": "Acme Store", "imageUrl": null, "installedElsewhere": false, "installedHere": false },
      { "platformId": "118273645509182", "name": "Acme Store Guadalajara", "imageUrl": null, "installedElsewhere": false, "installedHere": false },
      { "platformId": "209384756102938", "name": "Acme Store Monterrey", "imageUrl": null, "installedElsewhere": true, "installedHere": false }
    ],
    "channels": [],
    "error": null,
    "nextStep": "Choose what to connect with POST /v1/channels/connections/chc_7f3k9QmX2pLwR4tZ/select, passing the platformId of each item of availableAssets, or let the person choose on the page they authorized from (shareUrl or authorizeIn). Items with installedElsewhere: true are connected in another workspace."
  }
}

A finished connection:

{
  "status": "success",
  "message": "Channel connected",
  "data": {
    "id": "chc_7f3k9QmX2pLwR4tZ",
    "type": "messenger",
    "completion": "authorize",
    "status": "connected",
    "authorizeIn": null,
    "shareUrl": null,
    "createdAt": "2026-11-12T18:40:00.000Z",
    "expiresAt": "2026-11-13T18:40:00.000Z",
    "agentId": "tVKljCHCNiebQdasHeit",
    "availableAssets": [],
    "channels": [
      {
        "id": "104857362918475",
        "prefixedChannelId": "fb-104857362918475",
        "platform": "messenger",
        "channelType": "messenger",
        "isConnected": true,
        "status": "CONNECTED",
        "defaultAgentId": "tVKljCHCNiebQdasHeit",
        "name": "Acme Store",
        "displayPhoneNumber": null,
        "phoneNumber": null,
        "businessId": null,
        "wabaId": null,
        "kind": "messaging",
        "commentAutoReply": null,
        "creationDate": "2026-11-12T18:42:10.000Z",
        "lastUpdate": "2026-11-12T18:42:10.000Z",
        "health": { "state": "ok", "reason": null, "since": "2026-11-12T18:42:10.000Z" }
      }
    ],
    "error": null,
    "nextStep": "Connected: 1 channel in channels."
  }
}

Response fields

FieldTypeDescription
idstringConnection id (chc_…)
typestringThe channel being connected, such as messenger or whatsapp
completionstringHow it is completed. authorize: someone authorizes with Meta, in shareUrl or in authorizeIn. wizard: authorizeIn opens the channel's wizard in Platica
statusstringHow it is going. See connection states
authorizeInstring | nullA Platica page, with a session, for someone with write access to Integrations: where they authorize (authorize) or the channel's wizard with ?connection=chc_… (wizard). null once the connection has finished
shareUrlstring | nullauthorize only: the link to send to whoever manages the page or account (/connect/chl_…). It works without a Platica account and only lets them authorize with Meta and choose what to connect in this connection. null on wizard, while installing, and once the connection has finished. See sending the link to someone else
createdAtstring | nullWhen it was requested, in ISO 8601
expiresAtstringWhen the connection and its link expire: 24 hours after requesting it, what expiresInMinutes said, or what the last link renewal said
agentIdstring | nullThe agent that will answer the resulting channels
availableAssetsobject[]In awaiting_selection, what there is to choose. See availableAssets
channelsobject[]In connected, the channels that ended up connected, with the fields of a channel and its health
errorobject | nullIn failed, why: { code, message }. See why it fails
nextStepstringEnglish text that says what comes next. Do not program against its wording

availableAssets

The pages or accounts the person authorized.

FieldTypeDescription
platformIdstringThe id of the page or account. It is what choose what to connect receives
namestring | nullDisplay name
imageUrlstring | nullImage to display
installedElsewherebooleantrue if it is already connected in another workspace. It cannot be chosen until it is disconnected there
installedHerebooleantrue if it is already connected in this workspace. Choosing it connects it again without removing its agent

It may include other data to display it, such as username, category, or pageName.

Connection states

statusWhat it meansWhat comes next
awaiting_userNobody has completed the connectionauthorize: send shareUrl to whoever manages the page or account, or give authorizeIn to someone on the team. wizard: give authorizeIn to someone on the team
authorizingThe person is authorizing with MetaCheck again in a moment
awaiting_selectionThe account has several optionsThe person chooses on the page where they authorized, or you with choose what to connect
installingPlatica is connecting what was chosenCheck again in a few seconds
connectedDoneThe channels are in channels. If one has no agent, assign it
failedIt could not be doneRead error.code and request another connection
cancelledSomeone cancelled itRequest another connection
expiredexpiresAt arrived without finishingRequest another connection

connected, failed, cancelled, and expired are final: the connection no longer changes. If there was only one new option, the connection goes straight to installing, without awaiting_selection. A wizard connection goes from awaiting_user to connected (or expires).

Why it fails

error.codeWhat happenedWhat to do
PERMISSIONS_DENIEDThe person did not grant all the permissionsRequest another connection and have them accept all of them
NO_CONNECTABLE_ASSETSThe account has nothing that can be connectedRequest another connection and authorize with another account
ASSET_CONNECTED_ELSEWHEREIt is already connected in another workspaceDisconnect it there and request another connection
WEBHOOK_SUBSCRIBE_FAILEDMeta did not accept that Platica receives the messagesRequest another connection
MAILBOX_IN_USEThat mailbox already has an active channelPause it there and request another connection
PROVIDER_ERRORMeta answered with an errorRequest another connection

Errors

Statusdetails.codeWhen it happens
400INVALID_REQUESTYour credential covers several workspaces and you did not send ?workspace=, or you sent one it does not cover. details.available lists the ones you can use
401UNAUTHENTICATED / CREDENTIAL_REVOKEDThe credential is missing, invalid, or no longer covers this workspace
403FORBIDDENThe credential does not have the Integrations module
404CONNECTION_NOT_FOUNDThe connection does not exist in this workspace
503OPERATION_UNCONFIRMEDPlatica could not read the connection. Try again
{
  "code": 404,
  "error": "Not Found - The resource doesn't exist",
  "details": {
    "code": "CONNECTION_NOT_FOUND",
    "message": "Esa conexión no existe en este workspace."
  }
}

Messages that come from Platica (details.message) are in Spanish; code against details.code. The general format is in Errors.

Notes

  • On an authorize connection, getting it changes nothing. On a wizard one, if a channel of that type was created in the workspace since you requested it, this read leaves it connected with that channel. Repeat it as many times as needed.

  • With the SDK, platic.channels.connections.wait(connectionId) checks it every 5 seconds and returns when it finishes or when it asks you to choose.

  • To see all connections, or only the ones still pending, use list connections.

  • platica:read is enough.