Connect links
A link per platform that connects, or reconnects, an account to this workspace.
GET
https://antwork.io/api/v1/workspaces/{id}/connect-urlsScopereadRequest
curl https://antwork.io/api/v1/workspaces/ws_.../connect-urls \
-H "Authorization: Bearer $ANTWORK_API_KEY"Open a link in the browser of the person who owns the social account: they sign in to the platform there, and the account appears in GET /api/v1/accounts. The same link reconnects an account whose tokenHealth says it needs it. Needs the read scope.
Response
200 OK
{
"object": "connect_urls",
"workspaceId": "ws_...",
"urls": {
"linkedin": "https://antwork.io/connect/linkedin?workspaceId=ws_...&userId=...&mcpToken=...",
"x": "https://antwork.io/connect/x?workspaceId=ws_...&userId=...&mcpToken=...",
"...": "one per platform"
},
"alreadyConnected": ["linkedin"],
"notConnected": ["bluesky", "facebook", "instagram", "pinterest", "threads", "tiktok", "x", "youtube"],
"requirements": { "instagram": "Instagram connects only a Professional account ..." },
"expiresAt": "2026-10-22T10:15:00.000Z"
}Links work until expiresAt, 15 minutes after the call. Ask for them when someone is about to click, rather than storing them. requirements says what an account must be for its connect to work, such as an Instagram Professional account.
Disconnecting an account is not on the API: it can change what the account is billed, so it happens in the web app.