HTTP API

Accounts and captions

Your connected accounts and groups, and your recent captions.

Accounts and groups

GET/api/v1/accounts

Your connected accounts and your groups. network is one of facebook, instagram, threads, youtube, tiktok, x, linkedin. Accounts in the default group ("default": true) get a post that names no accounts or group.

Response
{
  "accounts": [
    { "id": "acc_1", "network": "instagram", "name": "Bakery KL", "username": "bakerykl",
      "default": true, "groups": ["Bakery"] }
  ],
  "groups": [
    { "id": "grp_1", "name": "Bakery", "default": true, "accountIds": ["acc_1"] }
  ]
}

Accounts are connected in PostAll through each network’s own sign-in; the API reads them but can’t connect or remove them.

Recent captions

GET/api/v1/captions?limit=15

Your latest captions, newest first (up to 50), so a script or an AI can write new ones in the same voice.

Response
{ "captions": ["Fresh out of the oven 🥐", "Open till 6 today…"] }