Connect

Get pending OAuth data

Fetch pending OAuth data for headless mode using the pendingDataToken from the redirect URL.

Scope: This endpoint is used for LinkedIn organizations, Google Business Profile locations, Slack channels, Snapchat profiles, and Pinterest boards, where the selection list is too large to fit in URL params. The redirect carries a pendingDataToken instead of the full payload; the response includes the corresponding selection array (e.g. boards for Pinterest). WhatsApp, Facebook and other platforms pass selection state directly via URL query params on the redirect (profileId, tempToken, step), no pending record is created, so this endpoint will return 404 for those flows. Use the platform-specific selection endpoint instead (e.g. /v1/connect/whatsapp/select-phone-number).

Reading the token does not consume it, so this fetch is repeatable until the token expires 1 hour after issuance. Completing the platform selection deletes the pending record, so the token stops working from then on. No authentication required.

get/v1/connect/pending-data

Query parameters

tokenstring required

The pending data token from the OAuth redirect URL (pendingDataToken parameter)

Response

OAuth data fetched successfully

platformstring

The platform (e.g., "linkedin")

profileIdstring

The Zernio profile ID

tempTokenstring

Temporary access token for the platform

refreshTokenstring

Refresh token (if available)

expiresInnumber

Token expiry in seconds

userProfileobject

User profile data (id, username, displayName, profilePicture)

selectionType'organizations' | 'pages' | 'boards' | 'locations' | 'profiles'

Type of selection data

Changes