Renew the link

SDK platic.channels.connections.renewLink()

Generate a new shareUrl for a pending Messenger, Instagram, or comments connection (completion: "authorize"). The previous link stops working immediately. The new link and the connection expire together.

Use it if you sent the link to the wrong person, if it leaked, or if more time is needed. See sending the link to someone else.

Example

curl -X POST https://api.platic.ai/v1/channels/connections/$CONNECTION_ID/link \
  -H "Authorization: Bearer $PLATIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "expiresInMinutes": 4320 }'

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

Request body

ParameterTypeDescriptionRequired
expiresInMinutesintegerNew validity, in minutes, counted from now: 15 to 10080 (7 days). Default 1440 (24 hours). It can shorten the validity, not only extend it—

The body is optional.

{
  "expiresInMinutes": 4320
}

Response

data is the connection, with its new shareUrl and its new expiresAt.

{
  "status": "success",
  "message": "New shareable link: the previous one no longer works",
  "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_Hk4nW8pZ2tY6vB1qR5sX9cM3jF7dL0gA2eU8iO6wNyb",
    "createdAt": "2026-11-12T18:40:00.000Z",
    "expiresAt": "2026-11-16T09:15: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."
  }
}

The fields are in get a connection.

Errors

Statusdetails.codeWhen it happens
400INVALID_REQUESTexpiresInMinutes is not an integer between 15 and 10080. details.issues says so. 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 write access to Integrations
403INSUFFICIENT_SCOPEThe OAuth token does not have platica:write
403READ_ONLY_CREDENTIALAn internal Platica agent can only read
404CONNECTION_NOT_FOUNDThe connection does not exist in this workspace
409SHARE_LINK_NOT_AVAILABLEIt is a wizard connection (WhatsApp, email, Gmail, or Outlook): it is completed in Platica, with a session, and has no share link. details.type says the type
409CONNECTION_FINISHEDThe connection already finished: connected, failed, cancelled, or expired, in details.status. If it expired or was cancelled, request another one
409CONNECTION_INSTALLINGThe connection is installing (installing); it no longer needs a link
503OPERATION_UNCONFIRMEDPlatica could not confirm whether it issued the link. Get the connection before retrying
{
  "code": 409,
  "error": "Conflict - The resource state conflicts with this request",
  "details": {
    "code": "CONNECTION_FINISHED",
    "message": "La conexión venció.",
    "status": "expired"
  }
}

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

Notes

  • It works while the connection is awaiting_user, authorizing, or awaiting_selection.
  • authorizeIn does not change.
  • Needs a workspace API key, or an OAuth token with write access to Integrations and the platica:write scope.