---
title: "Sync Linkedin Cookie"
method: POST
path: "/api/channels/linkedin/accounts/{account_id}/sync-cookie"
tags: ["channels", "channels", "linkedin"]
---

# Sync Linkedin Cookie

`POST /api/channels/linkedin/accounts/{account_id}/sync-cookie`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/channels/linkedin/accounts/{account_id}/sync-cookie`
- Auth: none declared

Sync updated cookies from browser extension.

Called periodically by the extension when cookies change or as a heartbeat.
Updates stored cookies and re-verifies session if needed.

Safe overwrite rules:
- Only update if new li_at is provided and non-empty
- Don't overwrite good credentials with empty values
- Verify new credentials before accepting them

## Path parameters

- `account_id` integer, required

## Request body

- SrcApiChannelsLinkedinCookieSyncRequest: Request to sync/update cookies from browser extension.
  - `li_at` string, required
  - `li_a` string, nullable
  - `jsessionid` string, nullable
  - `user_agent` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
