Accounts
Find the social account IDs and connection states for your workspace.
On this page
Connect or reconnect an account
Open Dashboard → Accounts as a workspace admin or owner and complete the platform's connection flow. Use the same workspace when creating your API key.
If an account needs reauthorization, reconnect it from Accounts before creating a post. Manage connections in the dashboard or use the account details, disconnect, and reconnect endpoints. Workspace admins can also create expiring client connect links for people who lack a Posthoop login.
List accounts and choose targets
GET /api/v1/accounts returns accounts with each account's id, platform, handle, and status.
Shell
curl --fail-with-body -sS "$POSTHOOP_URL/api/v1/accounts" \
-H "Authorization: Bearer $POSTHOOP_API_KEY"| Status | Meaning |
|---|---|
| active | The account is connected and can be selected for publishing. |
| needs_reauth | The account needs to be reconnected. |
| revoked | The account was disconnected. |
Use the Posthoop id as targets[].accountId. The handle helps distinguish accounts on the same platform.