Skip to Content
ConnectionsFetch Connected Accounts

Fetch Connected Accounts

After a connection is completed, use the connection_id to fetch linked accounts.


API Reference

Get Connection Accounts


Example Response

{ "connection_id": "conn_abc123", "status": "success", "accounts": [ { "id": "acc_1", "platform_id": 1, "username": "my_account", "name": "My Page" } ] }

Handling Multiple Accounts

Some platforms return multiple accounts:

  • Facebook → Pages
  • Instagram → Business accounts

You should:

  • Let the user select an account
  • Store the selected account ID

Handling Pending State

If status is pending:

  • Wait for OAuth completion
  • Retry the request

Handling Errors

If status is failed:

  • Show error to the user
  • Allow retry

Next Step

API Reference →

Last updated on