Get a connection
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
curl https://api.platic.ai/v1/channels/connections/$CONNECTION_ID \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.channels.connections.get("connection_123"); Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
connectionId | string | Connection id (chc_…) | ✓ |
Query parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
workspace | string | Workspace ID. Required if your credential covers several workspaces; without it the answer is 400 | If 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
| Field | Type | Description |
|---|---|---|
id | string | Connection id (chc_…) |
type | string | The channel being connected, such as messenger or whatsapp |
completion | string | How it is completed. authorize: someone authorizes with Meta, in shareUrl or in authorizeIn. wizard: authorizeIn opens the channel's wizard in Platica |
status | string | How it is going. See connection states |
authorizeIn | string | null | A 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 |
shareUrl | string | null | authorize 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 |
createdAt | string | null | When it was requested, in ISO 8601 |
expiresAt | string | When the connection and its link expire: 24 hours after requesting it, what expiresInMinutes said, or what the last link renewal said |
agentId | string | null | The agent that will answer the resulting channels |
availableAssets | object[] | In awaiting_selection, what there is to choose. See availableAssets |
channels | object[] | In connected, the channels that ended up connected, with the fields of a channel and its health |
error | object | null | In failed, why: { code, message }. See why it fails |
nextStep | string | English text that says what comes next. Do not program against its wording |
availableAssets
The pages or accounts the person authorized.
| Field | Type | Description |
|---|---|---|
platformId | string | The id of the page or account. It is what choose what to connect receives |
name | string | null | Display name |
imageUrl | string | null | Image to display |
installedElsewhere | boolean | true if it is already connected in another workspace. It cannot be chosen until it is disconnected there |
installedHere | boolean | true 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
status | What it means | What comes next |
|---|---|---|
awaiting_user | Nobody has completed the connection | authorize: 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 |
authorizing | The person is authorizing with Meta | Check again in a moment |
awaiting_selection | The account has several options | The person chooses on the page where they authorized, or you with choose what to connect |
installing | Platica is connecting what was chosen | Check again in a few seconds |
connected | Done | The channels are in channels. If one has no agent, assign it |
failed | It could not be done | Read error.code and request another connection |
cancelled | Someone cancelled it | Request another connection |
expired | expiresAt arrived without finishing | Request 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.code | What happened | What to do |
|---|---|---|
PERMISSIONS_DENIED | The person did not grant all the permissions | Request another connection and have them accept all of them |
NO_CONNECTABLE_ASSETS | The account has nothing that can be connected | Request another connection and authorize with another account |
ASSET_CONNECTED_ELSEWHERE | It is already connected in another workspace | Disconnect it there and request another connection |
WEBHOOK_SUBSCRIBE_FAILED | Meta did not accept that Platica receives the messages | Request another connection |
MAILBOX_IN_USE | That mailbox already has an active channel | Pause it there and request another connection |
PROVIDER_ERROR | Meta answered with an error | Request another connection |
Errors
| Status | details.code | When it happens |
|---|---|---|
400 | INVALID_REQUEST | Your 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 |
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 |
404 | CONNECTION_NOT_FOUND | The connection does not exist in this workspace |
503 | OPERATION_UNCONFIRMED | Platica 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
authorizeconnection, getting it changes nothing. On awizardone, if a channel of that type was created in the workspace since you requested it, this read leaves itconnectedwith 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:readis enough.