Refresh the cookies of a connected scraping account

PUT
/linkedin-scrappers/authes/{id}

Replaces the session cookies of a scraping account (its authId), typically after a scraper stopped with INVALID_COOKIE or when the account shows status: invalid. status is set back to valid (the cookies are not tested at this moment). Then restart the stopped scraper with PUT /linkedin-scrappers/{scrapperId}/resume.

Send the complete set every time: li_a, ua, viewport, country and additionnalsCookie that you omit are cleared, and so is the LinkedIn profile shown in the app.

Returns the same account id. Only scraping accounts can be updated here (not campaign accounts).

Authorization

apiKey
Authorization<token>

Your 48 character API key, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api.

In: header

Path Parameters

id*string

Account id (the authId returned by POST /linkedin-scrappers/authes). 24 hexadecimal characters.

Match^[0-9a-fA-F]{24}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Session cookies of a LinkedIn account logged in to Sales Navigator.

Response Body

application/json

application/json

application/json

text/html

application/json

curl -X PUT "https://example.com/linkedin-scrappers/authes/66e0f1a2b3c4d5e6f7a8b9c0" \  -H "Authorization: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "li_at": "AQEDAFakeLiAtCookieForDocsOnly0000000000",    "li_a": "AQJ2FakeLiACookieForDocsOnly0000000000",    "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36",    "additionnalsCookie": [      {        "name": "JSESSIONID",        "value": "\\"ajax:0000000000000000000\\"",        "domain": ".www.linkedin.com"      },      {        "name": "lang",        "value": "v=2&lang=fr-fr",        "domain": ".linkedin.com"      },      {        "name": "bcookie",        "value": "\\"v=2&00000000-fake-0000-0000-000000000000\\"",        "domain": ".linkedin.com"      }    ],    "viewport": {      "width": 1440,      "height": 900    },    "country": "FR"  }'
{  "success": true,  "authId": "66e0f1a2b3c4d5e6f7a8b9c0"}