Appearance
Finalize pending connection
Complete the OAuth connection by selecting which pages/accounts to connect. This endpoint creates the social account records for the selected pages.
Authentication: This endpoint uses the session token from the URL path for authentication instead of API keys.
Flow:
- Call GET /pending/:sessionToken to get available pages
- User selects which pages to connect
- Call this endpoint with the selected page IDs
- Social accounts are created and returned
Note: The session is automatically deleted after successful finalization.
POST/v1/social-accounts/pending/{sessionToken}/finalize
Path Parameters
sessionTokenstring
Request Body
application/json
selectedPageIdsarray<string>
Array of page IDs to connect
Items1 <= items
Array Item
Response Body
200application/json
400application/json
404application/json
500application/json
JavaScript
Go
Java
C#
cURL
TypeScript
Python
Swift
const body = JSON.stringify({
"selectedPageIds": [\
"abc123",\
"org456"\
]
})
fetch(" {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body
})200400404500
{
"success": true,
"connectedAccounts": [\
{\
"id": "9dyJS",\
"nickname": "johndoe",\
"username": "johndoe",\
"network": "linkedin",\
"accountType": "personal"\
}\
]
}{
"success": false,
"error": "Session expired or invalid"
}{
"success": false,
"error": "Session expired or invalid"
}{
"success": false,
"error": "Internal server error",
"message": "Database connection failed"
}Get pending connection details GET\ \ Previous Page Delete a social account DELETE\ \ Next Page