List connected accounts
GET
/accounts
const url = 'https://postflow.biz.id/api/v1/accounts';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://postflow.biz.id/api/v1/accounts \ --header 'Authorization: Bearer <token>'MCP tool: list_accounts.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”By platform, then name.
Media typeapplication/json
Array<object>
object
id
required
Use as socialAccountId in post targets.
string
platform
required
string
name
required
string
status
required
needs_reconnect: the owner must reconnect it in PostFlow before it can publish.
string
contentTypes
required
Content types this account can publish.
Array<string>
Example
[ { "platform": "facebook", "status": "active", "contentTypes": [ "fb_post" ] }]Missing, invalid, expired or deleted key or token.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
A sentence you can show to a person.
string
details
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}More than 120 requests in a minute with this key.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
A sentence you can show to a person.
string
details
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}