Get a link to connect or reconnect a channel
Connecting a channel needs a person in a browser. Give the returned url to the user, then poll GET /api/cli/accounts until the account appears. The same link reconnects an account whose token_valid is false. For devto and hashnode the page opens with the token field focused. MCP: brainy_get_connect_link.
/api/cli/accounts/connect-linksAuthorizationBearer token (ba_sk_...) · headerrequiredAPI key from /dashboard/api-keys. Keys expire after 365 days.
AuthorizationBearer token (ba_mcp_access_...) · headerrequiredThe OAuth access token the hosted MCP server issues (brainy:read for GET routes, brainy:write for everything else). One login serves MCP, the CLI and the desktop app. A token without the needed scope gets 403 Insufficient scope.
application/jsonplatformstringrequiredinstagramtiktokyoutubelinkedinxdevtohashnoderedditOK
urlstring<uri>requiredLogin-gated dashboard link. Contains no token; it signs in whoever opens it as themselves.
platformstringrequiredinstagramtiktokyoutubelinkedinxdevtohashnoderedditaccount_limitobjectrequiredShow propertiesHide properties
usedintegerrequiredlimitinteger | nullrequirednull on an unlimited plan
next_stepstringUnknown platform; the body lists the allowed ones
errorstringrequiredcodestringMissing, invalid, expired, or revoked API key
errorstringrequiredcodestring