Skip to content
BrainyShorts Docs
Esc
↑↓navigate↵open⌘Jpreview

List connected accounts

Returns connected social accounts, newest first. Use id as social_account_id in post targets.

GET/api/cli/accounts
Authorization
AuthorizationBearer token (ba_sk_...) · headerrequired

API key from /dashboard/api-keys. Keys expire after 365 days.

or
AuthorizationBearer token (ba_mcp_access_...) · headerrequired

The 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.

Responses
200

OK

accountsAccount[]
Show properties
Array of Account
idstring<uuid>
platformstring

tiktok, instagram, youtube, linkedin or x. Article destinations (devto, hashnode, reddit) can also appear in this list.

account_handlestring
token_validboolean
created_atstring<date-time>
401

Missing, invalid, expired, or revoked API key

errorstringrequired
codestring
Try it
Server
Authorization
Request
curl -X GET "https://www.brainyshorts.com/api/cli/accounts" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "accounts": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "platform": "string",
      "account_handle": "string",
      "token_valid": true,
      "created_at": "2019-08-24T14:15:22Z"
    }
  ]
}