POST /api/v1/connect/linkedin
Connect (or with accountId reconnect) a LinkedIn account with the member's own web session: cookies (li_at and JSESSIONID at least) and the user agent of the browser they came from. No OAuth, no password. country (ISO-3166 alpha-2, required) and city (optional) choose where the server-side residential proxy the session goes through exits; any proxy sent by the caller is ignored. The jar is validated, sealed (encrypted) and stored; responses never contain cookie values. While approval applies to the key, the organization or the account, the connect is queued (202, kind account.linkedin_connect, the queued call carries the jar already sealed). Availability: PROVIDER_LIVE_LINKEDIN_SESSION (or mock outside production)
BearerAuthAuthorizationBearer <token>API key sk_...
application/json- body
cookies*|array<>Session cookies; must include li_at and JSESSIONID. JSON body only, never the query string (400)
userAgent*stringUser agent of the browser that minted the session
length <= 1024country*stringISO-3166 alpha-2 code (any case) of the country the member uses LinkedIn from; the session goes out through a residential proxy there
^[a-zA-Z]{2}$city?stringOptional city within that country (e.g. "Buenos Aires"); normalized to lowercase ASCII with underscores
length <= 100accountId?stringReconnect this existing LinkedIn account
externalId?stringYour reference, stored on the account
length <= 200{platform, account, verification}: the session account (never the cookies). verification is unverified until live verification is enabled
application/json- response
platform*"linkedin""linkedin"account*verification*stringcurl -X POST 'https://example.com/api/v1/connect/linkedin' \ -H 'Content-Type: application/json' \ -d '{ "cookies": { "property1": "string", "property2": "string" }, "userAgent": "string", "country": "string"}'{ "platform": "linkedin", "account": { "id": "string", "socialAccountId": "string", "status": "active", "source": "ui", "userAgent": "string", "connectedAt": "2019-08-24T14:15:22Z" }, "verification": "string"}GET /api/v1/connect/linkedin GET
Not supported: LinkedIn session connect has no OAuth link. POST the session cookies instead
GET /api/v1/connect/pending GET
Unexpired pending connections of this organization, newest first (options without tokens). Use it, or the connection.pending webhook, to learn the id after an API-started Facebook connect