API reference
Accounts
List the accounts you can publish to and disconnect accounts. Connecting accounts happens in the dashboard.
Accounts are connected in the dashboard (each platform’s sign-in needs a browser). The API lists them and can disconnect them.
List accounts
GET
/v1/accountsThe accounts you can publish to, newest first. Disconnected accounts are left out.
- Auth
- API key
x-api-key - Rate limit
- 120/minute
Each item has id, platform (FACEBOOK, INSTAGRAM, THREADS, YOUTUBE, TIKTOK), accountName, avatarUrl (may be null), platformAccountId (the platform’s own id), createdAt and connectionStatus (ACTIVE or REAUTH_REQUIRED). Not paginated.
Example request
curl "https://api.flenvio.com/v1/accounts" \
-H "x-api-key: $FLENVIO_API_KEY"Response 200
[
{
"id": "acc1a000-0000-4000-8000-000000000001",
"platform": "INSTAGRAM",
"accountName": "lumen.coffee",
"avatarUrl": "https://media.flenvio.example/avatars/lumen-ig.png",
"platformAccountId": "17841400000000001",
"createdAt": "2026-09-02T14:05:11.000Z",
"connectionStatus": "ACTIVE"
},
{
"id": "acc1a000-0000-4000-8000-000000000002",
"platform": "FACEBOOK",
"accountName": "Lumen Coffee Roasters",
"avatarUrl": "https://media.flenvio.example/avatars/lumen-fb.png",
"platformAccountId": "100000000000001",
"createdAt": "2026-09-02T14:03:40.000Z",
"connectionStatus": "ACTIVE"
},
{
"id": "acc1a000-0000-4000-8000-000000000003",
"platform": "TIKTOK",
"accountName": "lumencoffee",
"avatarUrl": null,
"platformAccountId": "-000AbCdEfExample",
"createdAt": "2026-09-01T09:12:00.000Z",
"connectionStatus": "REAUTH_REQUIRED"
}
]Errors
| Status | When |
|---|---|
401 | Missing, invalid, revoked or expired API key. |
429 | Too many requests to this endpoint; wait Retry-After seconds. |
Disconnect an account
DELETE
/v1/accounts/{id}Disconnects an account from Flenvio: its access is revoked where the platform allows it, and comments and messages synced from it are deleted. Your post history is kept.
- Auth
- API key
x-api-key - Rate limit
- 120/minute
Parameters
idrequiredpath · stringAccount id.
Example request
curl -X DELETE "https://api.flenvio.com/v1/accounts/acc1a000-0000-4000-8000-000000000003" \
-H "x-api-key: $FLENVIO_API_KEY"Response 200
{
"id": "acc1a000-0000-4000-8000-000000000003",
"status": "disconnected"
}Errors
| Status | When |
|---|---|
404 | Account not found.: not one of your accounts. |
401 | Missing, invalid, revoked or expired API key. |
429 | Too many requests to this endpoint; wait Retry-After seconds. |
403 | code: "api_key_read_only": the API key is read-only, and this request changes something. |