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:

  1. User completes OAuth authentication
  2. Callback redirects to your page with ?session=xxx
  3. Your backend calls this endpoint to get available pages. Strip the session parameter from the browser URL once you have read it - it lands in history, logs and Referer headers otherwise
  4. User selects which pages to connect
  5. 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.

GET
/v1/social-accounts/pending/{sessionToken}

Path Parameters

sessionToken*string

Response Body

Pending connection retrieved successfully

application/json
  1. response

Pending connection data with available pages

success*boolean
data*
Example Request
curl -X GET 'https://api.outstand.so/v1/social-accounts/pending/string'
Example Response
{  "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"      }    ]  }}