Skip to content

Accounts API Reference

Accounts are one to one mapping to social accounts you have connected in the dashboard.

GET /accounts

Returns all connected accounts.

NameTypeRequiredDescription
account_group_idintegerNoOnly return accounts belonging to the specified account group.
Terminal window
curl -X GET "https://api.postproxy.dev/v1/accounts" \
-H "Authorization: Bearer YOUR_API_KEY"

Response:

[
{
"id": "777",
"name": "My Facebook Account",
"type": "facebook",
"username": "myfb"
},
{
"id": "778",
"name": "My Instagram Account",
"type": "instagram",
"username": "myinsta"
}
]

GET /account/{account_id}

Returns a single account by its unique identifier.

NameTypeRequiredDescription
account_idintegerYesThe unique ID of the account to retrieve.
Terminal window
curl -X GET "https://api.postproxy.dev/v1/accounts/777" \
-H "Authorization: Bearer YOUR_API_KEY"

Response:

{
"id": "777",
"name": "My Facebook Account",
"type": "facebook",
"username": "myfb"
}