Get pending connection details
Retrieve details of a pending OAuth connection, including available pages/accounts that can be connected.
Retrieve details of a pending OAuth connection, including available pages/accounts that can be connected. This endpoint is used during the OAuth finalization flow for platforms like LinkedIn and Facebook that support multiple pages/profiles.
Authentication: Requires your API key, and the session token must belong to the same organization as that key. A session token from another organization is rejected as if it had expired. Because the API key is required, call this from your backend - not from the browser your user was redirected to.
Tokens are never returned. The response describes each page only well enough to render a picker (id, name, profilePictureUrl and similar). Provider access tokens stay server-side and are attached to the account when you finalize.
Flow:
- User completes OAuth authentication
- Callback redirects to your page with
?session=xxx - Your backend calls this endpoint to get available pages. Strip the
sessionparameter from the browser URL once you have read it - it lands in history, logs andRefererheaders otherwise - User selects which pages to connect
- Call POST /finalize to complete the connection
Permissions: Requires accounts:connect. Access is limited by the API key creator's current organization membership and stored key ceiling. See Organization permissions.
sessionToken*stringPending connection retrieved successfully
application/json- response
Pending connection data with available pages
success*booleandata*curl -X GET 'https://api.outstand.so/v1/social-accounts/pending/string'{ "success": true, "data": { "network": "string", "expiresAt": 0, "availablePages": [ { "id": "string", "type": "personal", "name": "string", "username": "string", "profilePictureUrl": "string", "category": "string", "urn": "string", "accountId": "string", "address": "string" } ] }}