API · Dashboard connected accounts
POST /accounts/{id}/connected/linkedin
Connect a LinkedIn session to the account.
| |
|---|
| Request | POST /v1/accounts/{id}/connected/linkedin |
| Operation id | dashboard.linkedin.accounts.connect |
| Cost | Free |
| Auth | Dashboard session: Authorization: Bearer <session_token>. API keys are refused. |
| Name | Type | Required | Description |
|---|
id | string | yes | Example: acct_01J…. |
| Field | Type | Required | Description |
|---|
li_at | string | yes | The value of the li_at cookie of a session you logged into yourself. |
jsessionid | string | yes | The JSESSIONID cookie of the same session (ajax:…). |
user_agent | string | yes | The user agent of the browser that session lives in. |
li_a | string | no | Optional: the li_a cookie LinkedIn sets once you open Sales Navigator in that browser. Needed for the Sales Navigator endpoints. |
proxy | string | no | Optional: 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. |
country | string | no | Optional: ISO country of the account, for the exit we pin. |
label | string | no | Your name for this session, up to 60 characters. |
| Status | Meaning | Schema |
|---|
201 | Connected. | ConnectedSession |
400 | Invalid input. | Error |
401 | Missing or invalid credentials. | Error |
403 | Members can’t connect sessions; owners and admins can. | Error |
404 | No connected LinkedIn session with that id among yours. | Error |
409 | Already 10 connected sessions. | Error |
429 | Too many connect attempts. | Error |
503 | LinkedIn could not be reached. | Error |
| Field | Type | Description |
|---|
id | string | |
platform | string | |
label | string | 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_detail | string | null | |
profile | object | Non-secret facts about the account (name, public id). |
created_at | string | |
last_checked_at | string | null | |
last_used_at | string | null | |
quotas | object[] | |
Errors use one shape everywhere; see Errors for every code and what to do.