GroundsocialDocs

API · Dashboard connected accounts

POST /accounts/{id}/connected/linkedin

Connect a LinkedIn session to the account.

RequestPOST /v1/accounts/{id}/connected/linkedin
Operation iddashboard.linkedin.accounts.connect
CostFree
AuthDashboard session: Authorization: Bearer <session_token>. API keys are refused.

Path parameters

NameTypeRequiredDescription
idstringyesExample: acct_01J….

Request body

FieldTypeRequiredDescription
li_atstringyesThe value of the li_at cookie of a session you logged into yourself.
jsessionidstringyesThe JSESSIONID cookie of the same session (ajax:…).
user_agentstringyesThe user agent of the browser that session lives in.
li_astringnoOptional: the li_a cookie LinkedIn sets once you open Sales Navigator in that browser. Needed for the Sales Navigator endpoints.
proxystringnoOptional: your own proxy (ideally a static IP in your country) for every request on this account. Without one we pin the account to one sticky residential exit.
countrystringnoOptional: ISO country of the account, for the exit we pin.
labelstringnoYour name for this session, up to 60 characters.

Responses

StatusMeaningSchema
201Connected.ConnectedSession
400Invalid input.Error
401Missing or invalid credentials.Error
403Members can’t connect sessions; owners and admins can.Error
404No connected LinkedIn session with that id among yours.Error
409Already 10 connected sessions.Error
429Too many connect attempts.Error
503LinkedIn could not be reached.Error

ConnectedSession fields

FieldTypeDescription
idstring
platformstring
labelstring | null
status"ok" | "checkpoint" | "restricted" | "logged_out"ok: usable. checkpoint, restricted, logged_out: the network needs you, in your own browser; calls on it stop until you reconnect.
status_detailstring | null
profileobjectNon-secret facts about the account (name, public id).
created_atstring
last_checked_atstring | null
last_used_atstring | null
quotasobject[]

Errors use one shape everywhere; see Errors for every code and what to do.