# LinkUp API > This file is very large and may be truncated. For an index of this content, please refer to https://docs.linkupapi.com/llms.txt instead. # Verify Checkpoint (2FA) Source: https://docs.linkupapi.com/api-reference/v2/accounts/checkpoint POST /v2/checkpoint Submit a verification code to complete account connection Complete 2FA verification for an account that returned `checkpoint_required` during login. Depending on the `challenge_type` used at login, either submit a verification code or simply confirm the app challenge. > [!NOTE] > > This endpoint costs **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. > [!NOTE] > > Also completes an **email** OAuth connection (Gmail / Microsoft): after the user consents, submit the `code` (and `state`) returned to your `redirect_uri` together with the `account_id`. See [Connect a mailbox](/api-reference/v2/accounts/login#email-mailbox). > [!NOTE] > > **Recruiter seat**: pass the account's `account_id` with the `code`. See [Recruiter seat](/api-reference/v2/accounts/login#recruiter-seat). > [!NOTE] > > **Product or contract choice** (`checkpoint_type``product_selection` or `contract_selection`): put the choice in `code`, e.g. `"classic,recruiter"` or a contract id. See [Choosing products and contracts](/api-reference/v2/accounts/login#choosing-products-and-contracts). > [!NOTE] > > **WhatsApp**: send only the `account_id` to get the current QR code, or `connected` once scanned. `resend: true` gives a new code once it expired. See [Connect Account](/api-reference/v2/accounts/login#whatsapp). ### Header Parameters **x-api-key** `string` *required* Your API key ### Body Parameters **account_id** `string` *required* The account ID returned from the `/v2/login` endpoint with `checkpoint_required` status **code** `string` The verification code received via email, SMS, or authenticator app. Required when `challenge_type` is `code_challenge`. Not needed for `app_challenge` — the user approves directly from the platform's mobile app. `checkpoint_type` in the login response tells where the code went. Each new `/v2/login` invalidates the previous code. **resend** `boolean` (default: false) LinkedIn only. Set to `true` to have LinkedIn send the verification code again on the same channel if the user did not receive it. No `code` needed, no credit consumed — then call this endpoint again with the code. ### Response **success** `boolean` Whether the verification was successful **data** `object` **Properties** **account_id** `string` The account ID, now fully connected **status** `string` `connected` — the account is ready to use ```json Success Response theme={null} { "success": true, "data": { "account_id": "69c127c37cae0494dd827286", "status": "connected" }, "metadata": { "action": "checkpoint", "credits_consumed": 1, "timestamp": "2025-01-15T10:32:00.000000" } } ``` ```json Resend (resend: true) theme={null} { "success": true, "data": { "account_id": "69c127c37cae0494dd827286", "status": "code_sent", "method": "sms", "available_methods": ["sms", "call", "email"], "sent_to": "phone number ending with 23", "checkpoint_message": "LinkedIn sent a verification code to the phone number ending with 23." }, "metadata": { "action": "checkpoint", "credits_consumed": 0, "timestamp": "2025-01-15T10:31:00.000000" } } ``` ```json Error — Invalid Code theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "Verification failed", "sub_code": "CHECKPOINT_VERIFICATION_FAILED" }, "metadata": { "action": "checkpoint", "credits_consumed": 0, "timestamp": "2025-01-15T10:32:00.000000" } } ``` ```json Error — Session Expired theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "Session expired, please login again", "sub_code": "CHECKPOINT_SESSION_EXPIRED" }, "metadata": { "action": "checkpoint", "credits_consumed": 0, "timestamp": "2025-01-15T10:32:00.000000" } } ``` ### Challenge Types * **`code_challenge`** — The user receives a verification code (email, SMS, or authenticator app). Submit the code in the `code` field. * **`app_challenge`** — The user approves the login directly from the platform's mobile app. Once approved, call this endpoint with only the `account_id` (no `code` needed). ### Notes * If the session has expired, you need to call `/v2/login` again to restart the process * Once verified, the account status changes to `connected` and is ready for use * The `account_id` remains the same — no need to update your integration # Hosted Connection Link Source: https://docs.linkupapi.com/api-reference/v2/accounts/connect-link POST /v2/accounts/connect-link Let your users connect their LinkedIn, WhatsApp or email account on a page hosted by LinkupAPI, so their credentials never reach your servers Generate a single-use link and hand it to your user. They connect their account on `app.linkupapi.com` (LinkedIn sign-in and 2FA, WhatsApp QR or pairing code, Google / Microsoft consent or SMTP settings), and you only receive the resulting `account_id`. Your app never sees or handles the credentials. > [!NOTE] > > The link itself is free. A LinkedIn login through it costs **1 credit**, like [Connect Account](/api-reference/v2/accounts/login); WhatsApp and email are free. Ignore this if you're on per-seat pricing. **Flow** 1. Your backend calls this endpoint and gets a `url`. 2. Your app sends the user to that `url` (full redirect or new tab, never an iframe). 3. The user picks a channel (if you offered several) and connects it on our page, verification included. 4. We POST the outcome to your `notify_url` and send the user to your `success_url`. You can also poll [Get Connection Link](#get-connection-link) or [List Accounts](/api-reference/v2/accounts/list-accounts). Links are single-use: generate a new one each time a user starts a connection. ### Header Parameters **x-api-key** `string` *required* Your API key ### Body Parameters **platforms** `string | string[]` (default: \*) Channels the page offers: `linkedin`, `whatsapp`, `email`, or `*` for all. With a single value the page skips the chooser. `platform` works as a shorthand for one value. **name** `string` Your own reference for this user (max 200 characters), echoed in the `notify_url` payload so you can match the new account to your user. **brand_name** `string` Your product or company name (max 60 characters). The page then reads "Connect LinkedIn to ", in the heading and the tab title. Omit for a neutral page. **logo_url** `string` HTTPS URL of your logo, shown above the heading. **email_providers** `string[]` (default: \["google", "microsoft", "smtp"]) Choices on the email step: `google` and `microsoft` are one-click OAuth buttons (the user picks the mailbox on the provider's consent screen), `smtp` opens the IMAP/SMTP form. Pass `["google"]` for a single "Continue with Google" button. **expires_in** `integer` (default: 3600) Link lifetime in seconds, from 60 to 604800 (7 days). **country** `string` LinkedIn and WhatsApp: lock the proxy country (same codes as [Connect Account](/api-reference/v2/accounts/login)). Omit to let the user pick it on the page. **account_id** `string` Reconnect an existing account instead of creating one. The page only offers that account's channel and pre-fills its email; the account keeps its id, its country and its webhooks. **account_name** `string` Display name of the account once connected. Defaults to the email. **success_url** `string` Where to send the user once the account is connected. Omit to show our confirmation screen. **failure_url** `string` Where to send the user if they open the link after it expired or was used. **notify_url** `string` HTTPS endpoint we POST to once the account is connected. See [Callback](#callback). **products** `string[]` LinkedIn: `classic`, `sales_navigator`, `recruiter`. The page then asks the user what to connect, and which contract if there are several. Omit for classic only. **domain** `string` One of your active [custom domains](#custom-domain). The link opens there instead of app.linkupapi.com. ### Response **data.link_id** `string` Id of the link, for [Get Connection Link](#get-connection-link). **data.url** `string` The page to send your user to. **data.expires_at** `string` ISO 8601 UTC expiry of the link. ### Callback When the account is connected we POST this JSON to `notify_url`, with a `X-Linkup-Link-Id` header. We retry twice (after 5 s and 30 s) if your endpoint doesn't answer 2xx. ```json theme={null} { "status": "CREATION_SUCCESS", "account_id": "6acf60d12e999f4a3534cfcb", "platform": "linkedin", "name": "user_12345", "link_id": "6ad01a9b2e999f4a3534d001" } ``` `status` is `RECONNECTED` when the link was created with an `account_id`. The callback is not signed: confirm it with [Get Account](/api-reference/v2/accounts/get-account) before trusting it. ### Custom domain To open the page on your own domain (for example `connect.yourapp.com`), add the domain under **Access → Custom domain** in the dashboard, or with `POST /v2/hosted/domains` and `{"domain": "connect.yourapp.com"}`. Then create a `CNAME` record from that hostname to `hosted.linkupapi.com`. The domain turns `active` once we've checked the record and issued its certificate, usually within a few minutes. `GET /v2/hosted/domains` shows the status. After that, pass `domain` when you create a link. ### Get Connection Link `GET /v2/accounts/connect-link/{link_id}` returns the link's `status` (`pending`, `checkpoint` while the user is completing a verification, `used`, `expired`), the `platform` chosen, its `account_id` once connected, and `notified` when a `notify_url` was set. ```bash cURL theme={null} curl -X POST https://api.linkupapi.com/v2/accounts/connect-link \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "platforms": ["linkedin", "email"], "name": "user_12345", "brand_name": "Acme", "logo_url": "https://acme.com/logo.svg", "country": "FR", "success_url": "https://yourapp.com/linkedin/connected", "notify_url": "https://yourapp.com/webhooks/linkup" }' ``` ```python Python theme={null} import requests r = requests.post( "https://api.linkupapi.com/v2/accounts/connect-link", headers={"x-api-key": "YOUR_API_KEY"}, json={ "platforms": ["linkedin", "email"], "name": "user_12345", "brand_name": "Acme", "logo_url": "https://acme.com/logo.svg", "country": "FR", "success_url": "https://yourapp.com/linkedin/connected", "notify_url": "https://yourapp.com/webhooks/linkup", }, ) print(r.json()["data"]["url"]) ``` ```json Response theme={null} { "success": true, "data": { "link_id": "6ad01a9b2e999f4a3534d001", "url": "https://app.linkupapi.com/connect/K3sX9...", "expires_at": "2026-10-14T16:00:00Z", "platforms": ["linkedin", "email"], "name": "user_12345", "brand_name": "Acme", "logo_url": "https://acme.com/logo.svg", "reconnect": null }, "metadata": { "action": "connect_link", "credits_consumed": 0 } } ``` # Delete Account Source: https://docs.linkupapi.com/api-reference/v2/accounts/delete-account DELETE /v2/accounts/{account_id} Disconnect an account and delete everything attached to it Disconnects a channel account and removes it, along with everything attached to it. > [!NOTE] > > This endpoint is **free** — it does not consume any credits. > [!WARNING] > > Permanent. Reconnecting later means a full [Connect Account](/api-reference/v2/accounts/login) and a new `account_id`. To pause temporarily, stop the webhooks instead. ### Path Parameters **account_id** `string` *required* The account to delete. Must belong to your API key. ### Header Parameters **x-api-key** `string` *required* Your API key ### What gets deleted * the real-time monitor is stopped, which **halts its billing** * every webhook on the account * the cached connections snapshot * stored webhook events * the account itself ### Response **success** `boolean` Whether the deletion succeeded **data** `object` **Properties** **account_id** `string` The account that was deleted **deleted** `boolean` Always `true` on success **webhooks_deleted** `integer` Number of webhooks removed **connections_deleted** `integer` Number of cached connection snapshots removed **events_deleted** `integer` Number of stored webhook events removed ```json Success Response theme={null} { "success": true, "data": { "account_id": "69c127c37cae0494dd827286", "deleted": true, "webhooks_deleted": 2, "connections_deleted": 1, "events_deleted": 47 }, "metadata": { "action": "delete_account", "credits_consumed": 0, "timestamp": "2026-04-28T12:00:00Z" } } ``` ```json 404 (unknown account) theme={null} { "success": false, "error": { "code": "INVALID_ACCOUNT", "message": "Account not found" }, "metadata": { "credits_consumed": 0, "timestamp": "2026-04-28T12:00:00Z" } } ``` ```json 400 (malformed id) theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Invalid account_id format" }, "metadata": { "credits_consumed": 0, "timestamp": "2026-04-28T12:00:00Z" } } ``` ### Notes * The Sales Nav seat goes with the account. The licence is untouched — reconnect with `sales_nav: true` to restore the seat * An account owned by another API key returns `404`, same as an unknown one * Safe to repeat: a second delete returns `404` * Does not log the user out of LinkedIn # Get Account Details Source: https://docs.linkupapi.com/api-reference/v2/accounts/get-account GET /v2/accounts/{account_id} Get detailed information about a specific account Retrieve detailed information about a specific account, including its configuration and current status. > [!NOTE] > > This endpoint costs **0 credits**. ### Header Parameters **x-api-key** `string` *required* Your API key ### Path Parameters **account_id** `string` *required* The unique identifier of the account to retrieve ### Response **success** `boolean` Whether the request was successful **data** `object` **Properties** **account_id** `string` Unique identifier for the account **platform** `string` Platform type (e.g. "linkedin") **account_name** `string` Display name of the account **is_active** `boolean` Whether the account is currently active and usable **status** `string` Account status, always in step with `is_active`: * `connected` — ready to use (`is_active: true`) * `checkpoint_required` — waiting on a 2FA code, see [Checkpoint](/api-reference/v2/accounts/checkpoint) * `disconnected` — the LinkedIn session expired; re-authenticate via [Connect Account](/api-reference/v2/accounts/login) **checkpoint_type** `string` Where the code went, when `checkpoint_required`: `email`, `sms`, `authenticator_app`, `app_approval` or `code`. **sent_to** `string` Masked destination when LinkedIn shows it, e.g. `phone number ending with 23`. **checkpoint_message** `string` Ready-to-display sentence for your user, built from `checkpoint_type` and `sent_to`, e.g. `LinkedIn sent a verification code to the phone number ending with 23.` `message` keeps its generic wording. **country** `string` Country code associated with the account **created_at** `string` ISO 8601 timestamp of when the account was created **updated_at** `string` ISO 8601 timestamp of the last account update **sales_nav** `object` State of the account's Sales Nav seat — same shape as in [List Accounts](/api-reference/v2/accounts/list-accounts#sales-nav-seat). **sales_nav properties** **connected** `boolean` Whether the account currently has a usable Sales Nav seat. **contract_id** `string` Sales Nav contract the seat belongs to. **seat_id** `string` The seat within that contract. **connected_at** `string` Last seat activation or refresh. Only when `connected` is `true`. **reason** `string` Why the seat is unavailable. Only when `connected` is `false` and a seat existed before. **disconnected_at** `string` When the seat was lost. Only when the seat died on its own. **recruiter** `object` LinkedIn accounts only. State of the Recruiter seat — same shape as in [List Accounts](/api-reference/v2/accounts/list-accounts). **proxy** `object` `{ "mode": "managed" }` or `{ "mode": "custom", "host": "...", "port": 8080 }` — see [Set Custom Proxy](/api-reference/v2/accounts/set-proxy). LinkedIn accounts only. **metadata** `object` **Properties** **action** `string` The action performed ("get_account") **account_id** `string` The account_id that was queried **credits_consumed** `integer` Number of credits consumed (always 0 for this endpoint) **timestamp** `string` ISO 8601 timestamp of the response ```json Success Response theme={null} { "success": true, "data": { "account_id": "acc_abc123", "platform": "linkedin", "account_name": "John Doe", "is_active": true, "status": "connected", "country": "FR", "created_at": "2025-10-15T08:30:00Z", "updated_at": "2026-03-20T14:22:00Z", "sales_nav": { "connected": true, "contract_id": "2016220713", "seat_id": "1545550052", "connected_at": "2026-03-20T14:22:00Z" }, "recruiter": { "connected": true, "contract_id": "2064790365", "seat_id": "1612889193", "connected_at": "2026-03-21T09:00:00Z" }, "proxy": { "mode": "managed" } }, "metadata": { "action": "get_account", "account_id": "acc_abc123", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json Error Response theme={null} { "success": false, "error": { "code": "INVALID_ACCOUNT", "message": "Account not found" }, "metadata": { "action": "get_account", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` ### Notes * This endpoint is free and does not consume any credits * Use this to check if an account is active before making action requests * Use the dedicated webhook endpoints to configure webhooks for your accounts # List Accounts Source: https://docs.linkupapi.com/api-reference/v2/accounts/list-accounts GET /v2/accounts List all accounts associated with your API key Retrieve a paginated list of accounts linked to your API key. Use the returned `account_id` values in all subsequent V2 action requests. > [!NOTE] > > This endpoint is **free** — it does not consume any credits. ### Header Parameters **x-api-key** `string` *required* Your API key ### Query Parameters **count** `integer` (default: 50) Maximum number of accounts to return per page (1-500). **offset** `integer` (default: 0) Number of accounts to skip — use with `limit` to paginate (e.g. `offset=50&limit=50` for page 2). ### Response **success** `boolean` Whether the request was successful **data** `object` **Properties** **items** `array` **Account Object** **account_id** `string` Unique identifier for the account (use this in action requests) **platform** `string` Platform type (e.g. "linkedin") **account_name** `string` Display name of the account **is_active** `boolean` Whether the account is currently active and usable **status** `string` Account status, always in step with `is_active`: * `connected` — ready to use (`is_active: true`) * `checkpoint_required` — waiting on a 2FA code, see [Checkpoint](/api-reference/v2/accounts/checkpoint) * `disconnected` — the LinkedIn session expired; re-authenticate via [Connect Account](/api-reference/v2/accounts/login) **checkpoint_type** `string` Where the code went, when `checkpoint_required`: `email`, `sms`, `authenticator_app`, `app_approval` or `code`. **sent_to** `string` Masked destination when LinkedIn shows it, e.g. `phone number ending with 23`. **country** `string` Country code associated with the account **created_at** `string` ISO 8601 timestamp of when the account was created **updated_at** `string` ISO 8601 timestamp of the last account update **sales_nav** `object` State of the account's Sales Nav seat. **sales_nav properties** **connected** `boolean` Whether the account currently has a usable Sales Nav seat. **contract_id** `string` Sales Nav contract the seat belongs to. Present once a seat has been activated. **seat_id** `string` The seat within that contract. **connected_at** `string` ISO 8601 timestamp of the last seat activation or refresh. Only when `connected` is `true`. **reason** `string` Why the seat is unavailable. Only when `connected` is `false` and a seat existed before. **disconnected_at** `string` ISO 8601 timestamp of when the seat was lost. Only when the seat died on its own. **recruiter** `object` LinkedIn accounts only. State of the account's Recruiter seat — `{ "connected": false }` when there is none. Same fields as `sales_nav`. Recruiter actions use this account's `account_id` (see [Recruiter seat](/api-reference/v2/accounts/login#recruiter-seat)). **proxy** `object` `{ "mode": "managed" }` or `{ "mode": "custom", "host": "...", "port": 8080 }` — see [Set Custom Proxy](/api-reference/v2/accounts/set-proxy). LinkedIn accounts only. **total** `integer` Total number of accounts matching the query (across all pages) **limit** `integer` The `limit` used for this request **offset** `integer` The `offset` used for this request **metadata** `object` **Properties** **action** `string` The action performed ("list_accounts") **credits_consumed** `integer` Always `0` — this endpoint is free **timestamp** `string` ISO 8601 timestamp of the response ```json Success Response theme={null} { "success": true, "data": { "items": [ { "account_id": "acc_abc123", "platform": "linkedin", "account_name": "John Doe", "is_active": true, "status": "connected", "country": "FR", "created_at": "2025-10-15T08:30:00Z", "updated_at": "2026-03-20T14:22:00Z", "sales_nav": { "connected": true, "contract_id": "2016220713", "seat_id": "1545550052", "connected_at": "2026-03-20T14:22:00Z" }, "recruiter": { "connected": true, "contract_id": "2064790365", "seat_id": "1612889193", "connected_at": "2026-03-21T09:00:00Z" }, "proxy": { "mode": "managed" } }, { "account_id": "acc_def456", "platform": "linkedin", "account_name": "Jane Smith", "is_active": false, "status": "disconnected", "country": "US", "created_at": "2025-11-01T12:00:00Z", "updated_at": "2026-02-10T09:15:00Z", "sales_nav": { "connected": false }, "recruiter": { "connected": false }, "proxy": { "mode": "managed" } } ], "total": 1247, "limit": 50, "offset": 0 }, "metadata": { "action": "list_accounts", "credits_consumed": 0, "timestamp": "2026-04-28T12:00:00Z" } } ``` ```json Sales Nav states theme={null} // seat live "sales_nav": { "connected": true, "contract_id": "2016220713", "seat_id": "1545550052", "connected_at": "2026-07-28T10:13:12Z" } // licence lost, LinkedIn account still fine "sales_nav": { "connected": false, "reason": "No Sales Nav license found for this account", "disconnected_at": "2026-07-28T10:12:25Z" } // LinkedIn account disconnected "sales_nav": { "connected": false, "reason": "LinkedIn account is disconnected — reconnect it to restore the Sales Nav seat", "contract_id": "2016220713", "seat_id": "1545550052" } ``` ```json Error Response theme={null} { "success": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API Key" }, "metadata": { "action": "list_accounts", "credits_consumed": 0, "timestamp": "2026-04-28T12:00:00Z" } } ``` ### Sales Nav seat Whether the account can run [lead searches](/api-reference/v2/profiles/search-people-nav), send InMails and read its [InMail balance](/api-reference/v2/messages/balance). The seat is derived from the LinkedIn session, so: * account disconnects → seat goes with it; reconnecting restores it * seat can die alone (expired licence, seat reassigned) → `is_active` stays `true`, `connected` turns `false` with a `reason` * never had Sales Nav → just `{ "connected": false }` ### Recruiter seat `recruiter` on the LinkedIn account tells whether its Recruiter seat is connected. Recruiter actions use the account's own `account_id` (see [Recruiter seat](/api-reference/v2/accounts/login#recruiter-seat)). * several contracts → `contracts`, with `selected` on the current one (same in `sales_nav`) * the seat and the account disconnect independently * no seat → `"recruiter": { "connected": false }` ### Notes * Use the `account_id` from the response in all V2 action requests * Only accounts with `is_active: true` can be used for actions * Results are sorted by `created_at` descending (newest first) * Default page size is `50`; the maximum allowed `limit` is `500`. To page through all accounts, increment `offset` by `limit` until `offset + limit >= total` # Connect Account Source: https://docs.linkupapi.com/api-reference/v2/accounts/login POST /v2/login Connect a channel account to start using the API Connect a new channel account (LinkedIn, WhatsApp, etc.) to your API key. Once connected, you receive an `account_id` to use in all subsequent requests. > [!NOTE] > > This endpoint costs **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ### Header Parameters **x-api-key** `string` *required* Your API key ### Body Parameters **platform** `string` *required* The channel platform to connect. Available: `linkedin`, `whatsapp`, `email`. Optional in the one case below where you pass an existing `account_id` to activate a premium seat — the account already carries its platform. For `email`, see [Email mailbox](#email-mailbox) below. **email** `string` Account email address (required for credential-based login) **password** `string` Account password (required for credential-based login) **login_token** `string` Authentication token/cookie for direct token-based connection. Alternative to email+password. **phone_number** `string` WhatsApp only. The number to link, e.g. `+33612345678`. Sets the proxy country when `country` is not given. **country** `string` (default: FR) Country code for proxy selection. Available: US, CA, MX, CR, BR, AR, CL, CO, FR, UK, DE, NL, ES, IT, PT, BE, CH, AT, IE, SE, DK, FI, LT, LV, EE, PL, CZ, SK, HU, RO, UA, SI, HR, RS, AL, GR, CY, TR, IL, AE, EG, ZA, IN, PK, BD, JP, SG, MY, ID, TH, PH, AU **account_name** `string` Optional display name for the account. Defaults to the email address. **challenge_type** `string` (default: code_challenge) Type of 2FA challenge to use if the account has two-factor authentication enabled. * `code_challenge` — receive a verification code via email, SMS, or authenticator app. You must then submit the code via `/v2/checkpoint`. * `app_challenge` — confirm the login directly from the platform's mobile app. No code needed — just call `/v2/checkpoint` with the `account_id` after approving on the app. This is a preference, LinkedIn may impose another method: check `checkpoint_type` in the response. **sales_nav** `boolean` (default: false) Also activate the account's **Sales Nav** seat during login (requires the account to hold a Sales Nav license). No extra credential is needed — the seat is derived from the existing session. See [Sales Nav](#sales-nav) below. **recruiter** `boolean` (default: false) Connect the **LinkedIn Recruiter (Lite)** seat of an already-connected account. Needs `account_id` + `email` + `password`. See [Recruiter seat](#recruiter-seat) below. **products** `string[]` What to open with this login: `classic`, `sales_navigator`, `recruiter`. `classic` is always included. With `recruiter`, one login and one 2FA open the account and its Recruiter seat. See [Recruiter seat](#recruiter-seat). **allow_product_selection** `boolean` (default: false) Let the user choose. After the login you get `checkpoint_type: "product_selection"` with the products the account holds. See [Choosing products and contracts](#choosing-products-and-contracts). **choose_contract** `boolean` (default: false) If the account holds several Sales Nav or Recruiter contracts, return them instead of picking one (`checkpoint_type: "contract_selection"`). **contract_id** `string` Open the seat on this contract. Remembered for later reconnections. **account_id** `string` Pass an **existing** account's id together with `sales_nav: true` to activate a Sales Nav seat on an already-connected account (e.g. bought after connecting) — no re-login, no credential, and **no credit**. When set, no other login parameter is required. With `recruiter: true`, the LinkedIn account the Recruiter seat is opened from. **proxy** `string | object` LinkedIn only. Your own HTTP(S) proxy for this account — the login and every later request go through it. See [Custom proxy](#custom-proxy) below. ### Response **success** `boolean` Whether the request was successful **data** `object` **Properties** **account_id** `string` The unique identifier for the connected account. Use this in all future requests. **platform** `string` The platform that was connected **status** `string` Account status: `connected` (ready to use) or `checkpoint_required` (needs 2FA verification) **message** `string` Additional information (present when checkpoint is required) **checkpoint_type** `string` Where the code went, when `checkpoint_required`: `email`, `sms`, `authenticator_app`, `app_approval` or `code`. **sent_to** `string` Masked destination when LinkedIn shows it, e.g. `phone number ending with 23`. **checkpoint_message** `string` Ready-to-display sentence for your user, built from `checkpoint_type` and `sent_to`, e.g. `LinkedIn sent a verification code to the phone number ending with 23.` `message` keeps its generic wording. **sales_nav** `object` Present when `sales_nav: true` was requested. `{ "connected": true, "contract_id": "...", "seat_id": "..." }` on success, or `{ "connected": false, "error": "..." }` if no seat could be activated. When the login returns `checkpoint_required`, this is `{ "pending": true }` and the seat is activated once the checkpoint completes. **recruiter** `object` Present when `products` includes `recruiter`. `{ "connected": true, "contract_id": "...", "seat_id": "..." }`, or `{ "connected": false, "error": "..." }`. `{ "pending": true }` while a 2FA is pending. **proxy** `object` Present when `proxy` was given: `{ "mode": "custom", "host": "...", "port": 8080 }`. ```json Connected Successfully theme={null} { "success": true, "data": { "account_id": "69c127c37cae0494dd827286", "platform": "linkedin", "status": "connected" }, "metadata": { "action": "login", "credits_consumed": 1, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Checkpoint Required (2FA) theme={null} { "success": true, "data": { "account_id": "69c127c37cae0494dd827286", "platform": "linkedin", "status": "checkpoint_required", "message": "Check your email for verification code", "checkpoint_type": "sms", "sent_to": "phone number ending with 23", "checkpoint_message": "LinkedIn sent a verification code to the phone number ending with 23." }, "metadata": { "action": "login", "credits_consumed": 1, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Checkpoint Required (WhatsApp) theme={null} { "success": true, "data": { "account_id": "6ab7dd7ba4886df610eab269", "platform": "whatsapp", "status": "checkpoint_required", "checkpoint_type": "whatsapp_qr", "qr_code": "https://wa.me/settings/linked_devices#2@…", "qr_code_image": "data:image/png;base64,iVBORw0KGgo…", "expires_in_seconds": 180 }, "metadata": { "action": "login", "credits_consumed": 0, "timestamp": "2026-09-26T15:00:00.000000" } } ``` ```json Error Response theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Bad username or password", "sub_code": "BAD_CREDENTIALS" }, "metadata": { "action": "login", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ### Login Methods There are two ways to connect an account: 1. **Credential-based login** — provide `email` + `password`. If 2FA is enabled, you'll receive a `checkpoint_required` status and need to call `/v2/checkpoint`. 2. **Token-based login** — provide a `login_token` directly. No 2FA step needed. ### Email mailbox Connect a mailbox with `platform: "email"` and a `provider`: * `gmail_oauth` / `m365_oauth` — OAuth. Two steps: this call returns `status: "checkpoint_required"` + an `authorization_url`; redirect the user there, then submit the returned `code` to [`/v2/checkpoint`](/api-reference/v2/accounts/checkpoint). By default LinkupAPI's own OAuth app is used — pass `oauth_client_id` + `oauth_client_secret` in `params` to use your own. * `smtp_generic` — IMAP/SMTP. Verified and connected in one call (no checkpoint). The mailbox address is the top-level **`email`** field (the same one used for credential login), and its display name the top-level **`account_name`**. For OAuth the address is optional: without it the user picks the mailbox on the provider's consent screen and the account takes that address. Everything else goes in `params`: optional `daily_limit` (default 40); `redirect_uri` for OAuth; `smtp` `{ host, port, password }` (+ optional `imap` `{ host, port }`) for SMTP. Tip: call [`/v2/email/autoconfig`](/api-reference/v2/email/autoconfig) first to get the right `provider` and server settings. Connecting a mailbox is **free**. ```json OAuth (step 1) theme={null} { "platform": "email", "provider": "gmail_oauth", "email": "you@company.com", "params": { "redirect_uri": "https://yourapp.com/oauth/email/callback" } } ``` ```json SMTP (one call) theme={null} { "platform": "email", "provider": "smtp_generic", "email": "you@company.com", "params": { "smtp": { "host": "smtp.company.com", "port": 587, "password": "app-password" }, "imap": { "host": "imap.company.com", "port": 993 } } } ``` Common failures return the standard error envelope: an address with no Gmail mailbox or a rejected SMTP login → `CHANNEL_ERROR` (422); an expired/reused code → `INVALID_PARAMS` (400); denied consent → `FORBIDDEN` (403). A failed attempt leaves no leftover account. ### WhatsApp 1. `platform: "whatsapp"` + `phone_number` → `checkpoint_required` with a QR code (`qr_code_image`) 2. Scan it on the phone: WhatsApp › Settings › Linked devices › Link a device 3. Poll [`/v2/checkpoint`](/api-reference/v2/accounts/checkpoint) with the `account_id` every few seconds → current QR, then `connected` * The QR refreshes every \~20 s and expires after 3 min: `/v2/checkpoint` with `resend: true` gives a new one * Can't scan (QR shown on the same phone)? Pass `params.pairing_code: true`: you get an 8-character `pairing_code` to type on the phone instead (Link a device › Link with phone number instead) * Free ```json WhatsApp theme={null} { "platform": "whatsapp", "phone_number": "+33612345678" } ``` ### iMessage An iMessage line is a dedicated US or UK number. It is not connected with `/v2/login`: buy it from the dashboard ([Plans](https://app.linkupapi.com/plans) or Account connection), \$199 per line per month. Once active, it appears in [List Accounts](/api-reference/v2/accounts/list-accounts) with `platform: "imessage"` and works with the same message endpoints and webhooks. Sending rules: [iMessage limits](/api-reference/v2/best-practices#imessage-limits). ### Sales Nav The Sales Nav seat is derived from the account's existing session — there is **no separate login**. There are two ways to activate it: 1. **At login** — pass `sales_nav: true` alongside your credentials or `login_token`. The seat is activated in the same request. 2. **On an already-connected account** — pass `account_id` + `sales_nav: true` (no credential, no credit). Ideal when the user buys Sales Nav after connecting. The seat is attached to the account and renewed automatically when it expires. Activating a seat never breaks an otherwise-successful login: if the account has no Sales Nav license, you still get `status: connected` with `sales_nav.connected: false`. ```json Connected + Sales Nav theme={null} { "success": true, "data": { "account_id": "69c127c37cae0494dd827286", "platform": "linkedin", "status": "connected", "sales_nav": { "connected": true, "contract_id": "2016220713", "seat_id": "1545550052" } }, "metadata": { "action": "login", "credits_consumed": 1, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Activate seat on existing account (account_id) theme={null} { "success": true, "data": { "account_id": "69c127c37cae0494dd827286", "platform": "linkedin", "status": "connected", "sales_nav": { "connected": true, "contract_id": "2016220713", "seat_id": "1545550052" } }, "metadata": { "action": "login", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ### Recruiter seat Recruiter actions use the LinkedIn account's `account_id`. **New account** — one login opens both: ```json Request theme={null} { "platform": "linkedin", "email": "you@company.com", "password": "••••••", "products": ["classic", "recruiter"] } ``` **Already-connected account** — pass its `account_id`, `recruiter: true`, `email` and `password`. No password needed if it was connected with `products`. * One 2FA at most. Answer it with [`/v2/checkpoint`](/api-reference/v2/accounts/checkpoint) * The seat's events arrive on the account's webhook, with `"product": "recruiter"` * The seat and the account disconnect independently. Reconnect the seat with `recruiter: true` * No Recruiter licence → `recruiter.connected: false` (`NO_RECRUITER_LICENSE` with `recruiter: true`) * The seat itself is free and never billed as an extra account ```json Response theme={null} { "success": true, "data": { "account_id": "69c127c37cae0494dd827286", "platform": "linkedin", "status": "connected", "recruiter": { "connected": true, "contract_id": "347818991", "seat_id": "1612550011" } }, "metadata": { "action": "login", "credits_consumed": 1, "timestamp": "2026-10-15T10:30:00.000000" } } ``` ### Choosing products and contracts Some accounts hold several products or contracts. Let the user pick: * `allow_product_selection: true` → `checkpoint_type: "product_selection"` with `products`. Answer with `code: "classic,recruiter"` * `choose_contract: true` → `checkpoint_type: "contract_selection"` with `contracts`. Answer with `code: ""` Both answers go to [`/v2/checkpoint`](/api-reference/v2/accounts/checkpoint) with the account's `account_id`. To change contract later: * `GET /v2/accounts/{account_id}/contracts?product=recruiter` lists them (`selected` marks the current one) * `POST /v2/accounts/{account_id}/contracts/{contract_id}/select?product=recruiter` switches. No password Use `product=sales_navigator` for Sales Nav. ```json Contract choice theme={null} { "success": true, "data": { "account_id": "69c127c37cae0494dd827286", "status": "checkpoint_required", "checkpoint_type": "contract_selection", "product": "recruiter", "contracts": [ { "id": "338091421", "name": "Acme Inc. - Recruiter" }, { "id": "347818991", "name": "Recruiter Lite" } ] } } ``` ### Custom proxy * `proxy`: `http://user:pass@host:port`, `host:port:user:pass`, `host:port`, or `{ "host", "port", "username", "password" }`. HTTP(S) only * tested before the login — unreachable proxy returns `400`, no credit * kept for later re-logins. Change it with [Set Custom Proxy](/api-reference/v2/accounts/set-proxy), remove it with [Remove Custom Proxy](/api-reference/v2/accounts/remove-proxy) ### Notes * The `account_id` returned is permanent — store it and reuse it for all API calls * If you receive `checkpoint_required`, use the `/v2/checkpoint` endpoint to complete verification * The `country` parameter determines which proxy is used for the connection # Set Proxy Country Source: https://docs.linkupapi.com/api-reference/v2/accounts/set-country POST /v2/accounts/{account_id}/country Change the country of the managed proxy of a connected LinkedIn account Moves an already-connected account to a LinkupAPI-managed proxy of another country. Every request of the account (actions, real-time webhooks, background checks) then exits from the new country. > [!NOTE] > > This endpoint is **free** — it does not consume any credits. ### Path Parameters **account_id** `string` *required* A LinkedIn account of your API key ### Header Parameters **x-api-key** `string` *required* Your API key ### Body Parameters **country** `string` *required* ISO 3166-1 alpha-2 code of the new proxy country, e.g. `TH` ### Response **data** `object` **Properties** **country** `string` Country now used by the account's proxy **previous_country** `string` Country before the change **changed** `boolean` `false` when the account was already on this country (nothing done) **session_verified** `boolean` The LinkedIn session was accepted from an IP of the new country **webhooks_repinned** `integer` Webhooks of the account moved to the new country ```json Success Response theme={null} { "success": true, "data": { "account_id": "69c127c37cae0494dd827286", "country": "TH", "previous_country": "IN", "changed": true, "proxy": { "mode": "managed" }, "session_verified": true, "webhooks_repinned": 1 }, "metadata": { "action": "set_account_country", "credits_consumed": 0, "timestamp": "2026-09-21T14:02:11.418223" } } ``` ```json 422 (session refused from the new country) theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "LinkedIn did not accept the account session from a TH IP; the country was NOT changed. Re-login the account with `country: \"TH\"` on POST /v2/login to bind a fresh session from that country.", "sub_code": "SESSION_REJECTED_THROUGH_PROXY" }, "metadata": { "action": "set_account_country", "credits_consumed": 0, "timestamp": "2026-09-21T14:02:11.418223" } } ``` ### Notes * The session is verified from the new country before applying — nothing changes on failure * Device identity (device id, user agent) is preserved; only the exit IP changes * Re-logging the account with another `country` on [Login](/api-reference/v2/accounts/login) also moves it * Not available on accounts routed through a [custom proxy](/api-reference/v2/accounts/set-proxy): the country is defined by your proxy # Sync Inbox Source: https://docs.linkupapi.com/api-reference/v2/accounts/sync-inbox POST /v2/accounts/{account_id}/sync Import the existing LinkedIn inbox of an account into your webhooks Imports the messages already in an account's inbox into your webhooks — typically right after connecting it, to [build the inbox](/api-reference/v2/messages/build-inbox) in your product before real time takes over. Covers the classic inbox and the connected Sales Navigator / Recruiter seats. The sync runs in the background (\~20 minutes for 100 conversations). Every message is delivered exactly like a real-time `message` webhook, grouped per conversation: each POST carries up to 25 messages under `events`, with `sync_id` and `catch_up: true` at the top level. Messages already delivered to your webhooks are skipped, and your webhook's `message_type` filter applies. > [!NOTE] > > This endpoint is **free** — it does not consume any credits. One sync at a time per account, 10 per 24 hours. > [!WARNING] > > The account needs an active [webhook](/api-reference/v2/webhooks/introduction) subscribed to messages (`events`: `all` or `message_received`). Set `message_type: "all"` on it to also import the messages the account sent. ### Path Parameters **account_id** `string` *required* A LinkedIn account of your API key ### Header Parameters **x-api-key** `string` *required* Your API key ### Body Parameters **since** `integer` Only conversations and messages from this point on, in epoch **milliseconds**. Omit it to import the whole inbox (within the limits below) **inbox** `string` (default: all) `all`, `classic`, `sales_nav` or `recruiter`. `all` syncs every inbox connected on the account **max_conversations** `integer` (default: 100) Most recent conversations to import, 1 to 500 **messages_per_conversation** `integer` (default: 200) Most recent messages per conversation, 1 to 200. Older ones: [`get_conversation`](/api-reference/v2/messages/get-conversation) with `cursor` ### Response **data** `object` **Properties** **sync_id** `string` Identifier of the sync, also present on every webhook it delivers **status** `string` `queued`, `running`, `completed` or `failed` **inboxes** `object` Progress per inbox (`classic`, `sales_nav`, `recruiter`): `status`, `conversations_total`, `conversations_done`, `messages_delivered`, and `error` when that inbox failed **estimated_minutes** `integer` Typical duration of the sync **warnings** `array` Present when your webhooks only receive one direction of messages (`message_type`) ```json Success Response theme={null} { "success": true, "data": { "sync_id": "6ae89fc905a1e2341aadccda", "account_id": "6a7705f479d5cb9de0687ae0", "status": "queued", "since": 0, "inboxes": { "classic": { "status": "queued", "conversations_total": null, "conversations_done": 0, "messages_delivered": 0 } }, "max_conversations": 100, "messages_per_conversation": 200, "created_at": "2026-11-02T14:20:03.511000", "started_at": null, "finished_at": null, "estimated_minutes": 20 }, "metadata": { "action": "sync_account", "credits_consumed": 0, "timestamp": "2026-11-02T14:20:03.514201" } } ``` ```json 409 (sync already running) theme={null} { "success": false, "error": { "code": "RATE_LIMITED", "message": "A sync is already running on this account (sync_id 6ae89fc905a1e2341aadccda)" }, "metadata": { "action": "sync_account", "credits_consumed": 0, "timestamp": "2026-11-02T14:21:40.002117" } } ``` ```json GET /v2/accounts/{account_id}/sync/{sync_id} theme={null} { "success": true, "data": { "sync_id": "6ae89fc905a1e2341aadccda", "account_id": "6a7705f479d5cb9de0687ae0", "status": "running", "since": 0, "inboxes": { "classic": { "status": "running", "conversations_total": 100, "conversations_done": 37, "messages_delivered": 412 } }, "max_conversations": 100, "messages_per_conversation": 200, "created_at": "2026-11-02T14:20:03.511000", "started_at": "2026-11-02T14:20:05.108000", "finished_at": null }, "metadata": { "action": "get_account_sync", "credits_consumed": 0, "timestamp": "2026-11-02T14:28:51.730415" } } ``` ### Follow a sync `GET /v2/accounts/{account_id}/sync/{sync_id}` returns the same object (without `estimated_minutes`), updated as the sync progresses. Free. `404` when the sync does not exist on this account. ### Notes * A sync is `completed` when at least one of its inboxes succeeded; check `inboxes..status` for each one * Synced messages can be months old: skip those carrying `sync_id` / `catch_up: true` in automations that react to incoming messages * Each item of `events` is the `event` object of a real-time message webhook — see [Manage LinkedIn Messaging](/api-reference/v2/messages/build-inbox) for a parser handling both * `409` when a sync is already running on the account, `429` after 10 syncs in 24 hours * LinkedIn accounts only # Platform Best Practices Source: https://docs.linkupapi.com/api-reference/v2/best-practices Limits, guidelines, and recommendations to use LinkupAPI safely LinkupAPI connects to third-party platforms like LinkedIn, WhatsApp and iMessage. Each provider enforces its own limits and restrictions. Understanding these limits is essential to avoid account warnings or suspensions. > [!WARNING] > > The limits below are **conservative recommendations**. You may increase them at your own risk. Exceeding provider limits will result in HTTP `429` or `500` errors. Make sure your system handles these errors gracefully. ## General Principles These principles apply to **all providers and all routes**: * **Space out your calls** — Use random delays between requests instead of fixed intervals. Predictable patterns are easily flagged as automation. * **Distribute across working hours** — Spread your actions throughout the day during business hours rather than sending everything at once. * **Warm up new accounts** — For new or inactive accounts, start with low volumes and increase gradually over 2-3 weeks. Accounts with fewer than \~150 connections may experience delivery issues with invitations. * **Use real accounts only** — Fake accounts are well-detected by platforms, even without automation. We strongly recommend using only genuine accounts. * **All limits are per account** — They are independent of the API route and do not accumulate across endpoints. *** ## LinkedIn Limits ### Connection Requests (Invitations) | Account Type | Daily Limit | Weekly Limit | Note Length | | - | - | - | - | | **Paid LinkedIn** (Premium, Business, etc.) | 80–100 invitations | \~200/week | Up to 300 characters | | **Free LinkedIn** | \~5 invitations/month (with note) | \~150/week (without note) | Up to 200 characters | > [!NOTE] > > When you hit LinkedIn's invitation limit, you'll receive a `429 / RATE_LIMITED` error — back off and retry later. We don't enforce any limits on our side — you'll hit the exact same limit as in the LinkedIn UI. You can verify by trying the same action directly in the LinkedIn interface. > > A `422 / CHANNEL_ERROR` mentioning `CANT_RESEND_YET` is not a quota: after withdrawing an invitation, LinkedIn only lets you invite the same member again about 3 weeks later. **Recommendations:** * Withdraw stale invitations older than 2-3 weeks using the [Withdraw](/api-reference/v2/network/withdraw) endpoint * Target relevant profiles — random invitations increase rejection rates and trigger LinkedIn restrictions ### Profile Retrieval | Action | Recommended Daily Limit | | - | - | | Profile views / profile data | \~100 per account per day | This is a conservative recommendation. We don't enforce this limit, but exceeding it may trigger LinkedIn restrictions on your account. ### Search Results There are **two separate limits** to consider: **Per-search cap (LinkedIn limit):** * Standard LinkedIn search: max **1,000 profiles** returned per search query * Even if the UI shows more total results, LinkedIn only returns the first 1,000 > [!TIP] > > To retrieve more results than the per-search cap, narrow your query using filters (location, industry, company, etc.) and perform multiple searches. **Daily usage (recommendation):** * We recommend limiting the total number of profiles retrieved to **\~1,000 per day** per account * This refers to the total result lines actually fetched, not the number of API requests ### Connections & Invitation Lists If you need to detect accepted invitations, **avoid polling at fixed intervals** (e.g., every hour or at 8:00 AM daily) — this pattern is easily flagged as automation. **Recommended approach:** 1. Use the [Webhook](/api-reference/v2/webhooks/introduction) `accepted_invitation` event to detect accepted invitations ### Messaging **Recommendations:** * Space actions randomly throughout the day * Limit to **30–50 messages per day** per account for optimal deliverability * Personalize every message — generic copy gets flagged and ignored * Wait 3-7 days before following up, and limit follow-ups to 2-3 per contact ### InMail The number of InMails you can send depends on your LinkedIn subscription. Even without remaining credits, you can still send **free InMails to open profiles**. **Recommendations:** * Space sends randomly throughout the day * Limit daily sends to **30–50** to maximize your monthly allocation ### Content & Posts * **1-2 posts per day** maximum — more than that reduces engagement * Vary your content format (text, articles, media) * For comments and reactions: follow the general limit of \~100 per day per account ### Other LinkedIn Routes For any route not listed above, follow the same principles: * Minimize usage as much as possible * Space out calls at random intervals * Default limit: **\~100 actions per day per account** (e.g., retrieving company profiles, fetching posts, adding reactions, commenting) *** ## WhatsApp Limits WhatsApp enforces strict anti-spam measures. Follow these guidelines: | Action | Recommended Limit | | - | - | | New conversations | 20–30 per day | | Messages to existing chats | 100 per day | * **Don't message contacts who haven't opted in** — WhatsApp bans accounts aggressively for unsolicited messages * **Use random delays** between messages (10-30 seconds minimum) * **Warm up new numbers** — Start with 5-10 messages/day and increase over several weeks *** ## iMessage Limits An iMessage line is a dedicated phone number. Messaging is unlimited; what is limited is how many **different contacts** a line reaches, and how fast it **opens new conversations**. LinkupAPI checks the sending rules before each send and refuses a send that would break them, with the reason in `error.sub_code` (see below). ### Contacts per line | Limit | Per line | | - | - | | Different contacts | 300 per rolling 24 hours, 1,000 per month | * Every contact the line sends to counts once in the period, including contacts who wrote first. Messaging the same contact again does not count twice. * Once a limit is reached, the line still **receives** messages but can no longer **reply** until the period frees up. LinkupAPI refuses a send to one more contact with `IMESSAGE_CONTACT_LIMIT`; writing to contacts already counted still goes through. The month is counted over the last 30 days. ### Opening conversations | Rule | Value | | - | - | | New conversations | up to **50 per day** per line | | Interval between two new conversations | 15 minutes | | Follow-ups to a contact who has not replied | 2 at most, 24 hours apart | * **Replies don't count.** Once a contact has answered, messages to them no longer use the new-conversation quota. A reply within 24 hours of their last message goes out with no interval; after 24 hours of silence, such messages are spaced 2 minutes apart. * **First message in plain text.** Until the contact replies, a message cannot contain a link, an email address, a phone number, an amount of money, or an attachment. Write something the contact would answer, and let them say if they don't want to hear from you. * **Reply rate.** Keep it above roughly 30%. Message contacts who recently opted in or gave you their consent. * A follow-up to a contact who never replied counts as a new conversation. ### Ready numbers and new numbers | | Ready number | New number | | - | - | - | | Age | Usually 1+ months | Brand new | | New conversations per day | 50 from day one | Days 1–2: 2 · Days 3–4: 5 · Days 5–7: 10 · Days 8–14: 20 · Days 15–21: 30 · Then: 50 | | Number | Picked from the available numbers, no area code choice | Assigned by the carrier | | Activation | Within a minute | Within a few hours | A ready number may have had another owner: from time to time, it can receive messages from contacts of that owner. A new number is assigned when no ready number is available in the country. `get_me` on an iMessage account returns `sending_limits`: the day of the line, new conversations allowed, used and left in the last 24 hours, different contacts reached in the last 24 hours and 30 days, the reply rate, and whether the line is warmed up. ### Refused sends | `error.sub_code` | HTTP | Meaning | | - | - | - | | `IMESSAGE_CONTACT_LIMIT` | 429 | Different contacts of the last 24 hours or 30 days used up | | `IMESSAGE_DAILY_NEW_CONTACT_LIMIT` | 429 | New conversations of the last 24 hours used up | | `IMESSAGE_NEW_CONTACT_INTERVAL` | 429 | Less than 15 minutes since the last new conversation | | `IMESSAGE_FOLLOW_UP_TOO_SOON` | 429 | Less than 24 hours since the last follow-up to this contact | | `IMESSAGE_FOLLOW_UP_INTERVAL` | 429 | Less than 2 minutes since the last message to a contact quiet for 24 hours | | `IMESSAGE_RECIPIENT_MUST_REPLY` | 422 | 3 messages without a reply: wait for theirs | | `IMESSAGE_FIRST_MESSAGE_CONTENT` | 400 | Link, email, phone number, amount or attachment before the contact replied | | `IMESSAGE_SEND_REFUSED` | 422 | Refused by the carrier | The `429` messages say how many seconds to wait before retrying. *** ## Architecture Recommendations > [card] Use a Job Queue > > Process API calls through a queue (Redis, RabbitMQ, etc.) with random delays between jobs. This prevents bursts and makes retry logic simpler. > [card] Cache Aggressively > > Profile and company data don't change every minute. Cache results locally to save credits and reduce unnecessary API calls. > [card] Use Webhooks > > Instead of polling for new messages or accepted invitations, set up [Webhooks](/api-reference/v2/webhooks/introduction) for real-time notifications. It's safer and more efficient. # Reply to Comment Source: https://docs.linkupapi.com/api-reference/v2/content/answer-comment POST /v2/content Reply to a specific comment on a post. ## Overview Reply to a specific comment on a post. This creates a threaded reply under the target comment. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. > [!NOTE] > > The `tracking_id`, `profile_urn`, and `comment_urn` values can be obtained from the [Get Post Comments](/api-reference/v2/content/get-comments) response. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"answer_comment"`. **params** `object` *required* **params properties** **tracking_id** `string` *required* The tracking ID associated with the post. Obtained from the `get_comments` response. **profile_urn** `string` *required* The URN of the profile that owns the post. Obtained from the `get_comments` response. **comment_urn** `string` *required* The URN of the comment to reply to. Obtained from the `get_comments` response. **comment_text** `string` *required* The text content of the reply. **mention_user** `boolean` (default: false) Whether to mention the original commenter in the reply. Default is `false`. **commenter_name** `string` The name of the original commenter. Used when `mention_user` is `true` to format the mention. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` Confirmation of the reply action. **data properties** **comment_urn** `string` Unique identifier of the created reply. Treat it as an opaque string and pass it back exactly as returned. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"answer_comment"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "comment_urn": "urn:li:comment:(activity:7654321098765432100,7654321098765432102)" }, "metadata": { "action": "answer_comment", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "tracking_id, profile_urn, comment_urn, and comment_text are required." }, "metadata": { "action": "answer_comment", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Comment on Post Source: https://docs.linkupapi.com/api-reference/v2/content/comment POST /v2/content Add a comment to a post. ## Overview Post a comment on a post. You can also comment as a company page by providing the `company_url` parameter. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"comment"`. **params** `object` *required* **params properties** **post_url** `string` *required* The URL of the post to comment on, as shown on the connected platform. **comment_text** `string` *required* The text content of the comment. Also accepts `message` as an alias. **company_url** `string` Optional. The URL of a company page to comment as. You must be an admin of the company page. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **commented** `boolean` `true` when the comment was successfully posted. **post_url** `string` The post URL that was commented on (echo of the input). **comment_text** `string` The comment text that was posted (echo of the input). **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"comment"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "commented": true, "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7654321098765432100", "comment_text": "Great insights! Thanks for sharing." }, "metadata": { "action": "comment", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "post_url and comment_text are required." }, "metadata": { "action": "comment", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Create Post Source: https://docs.linkupapi.com/api-reference/v2/content/create POST /v2/content Create a new post with text, images, video, a document, or carousel content. ## Overview Create a post from the authenticated account. Supports plain text posts, single image, video or document attachments, and multi-image carousels. **WhatsApp:** posts a Status (visible 24 hours). `message` is the text, or the caption of the first image/video in `file` / `files`. Optional: `phone_numbers` (who sees it; default: your 500 most recent 1:1 chats), `background_color` (hex) and `font` (0-5) for a text Status. Returns `post_urn` (the Status id), `audience_count` and `expires_at` (ms). > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"create"`. **params** `object` **params properties** **message** `string` The text content of the post. Supports hashtags (`#tag`), line breaks and people mentions. To mention someone, use `mention_user(public_id, display_text)` where `public_id` is the slug of their profile URL (`linkedin.com/in/`) and `display_text` is the clickable text shown in the post — e.g. `"Great talk mention_user(williamhgates, Bill Gates)!"`. To mention a company page, use `mention_company(slug, display_text)` where `slug` is from `linkedin.com/company/` — e.g. `"Proud to partner with mention_company(microsoft, Microsoft)"`. **file** `string | object` A single file to attach — an image (`.jpg`, `.png`, `.gif`, `.webp`), a video (`.mp4`, `.mov`, `.webm`…) or a document (`.pdf`, `.doc`, `.docx`, `.ppt`, `.pptx`), which LinkedIn publishes as a page carousel. Can be a URL string or an object with `filename` and `data` properties. **file object properties** **filename** `string` The name of the file including extension (e.g. `"photo.jpg"`). **data** `string` Base64-encoded file data. **thumbnail** `string | object` Custom cover image for a video post. Only valid when `file` is a single video (`.mp4`, `.mov`, `.webm`…). Same format as `file`: a URL string or an object with `filename` and `data` (base64). Without it, LinkedIn picks a frame of the video. **document_title** `string` Title displayed under a document post, and used by LinkedIn to build the post URL. Only valid when `file` is a document. Defaults to the file name without its extension. **link** `string` A URL shown as a preview card under the text (title, source and image, as when a link is pasted in the composer). Exclusive with `file` and `files`: LinkedIn shows one card per post. The URL does not need to appear in `message`. **files** `array` An array of files for carousel posts. Each element can be a URL string or an object with `filename`, `data`, and optional `altText` properties. **file object properties** **filename** `string` The name of the file including extension. **data** `string` Base64-encoded file data. **altText** `string` Alternative text for the image (accessibility). **phone_numbers** `array` WhatsApp only. Phone numbers that can see the Status. Defaults to your 500 most recent 1:1 chats. **background_color** `string` WhatsApp only. Background color of a text Status, in hex (e.g. `"#128C7E"`). **font** `integer` WhatsApp only. Font of a text Status, from `0` to `5`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` The created post data. **data properties** **post_url** `string` The URL of the newly created post. **post_urn** `string` Unique identifier of the post. Treat it as an opaque string and pass it back exactly as returned. **share_urn** `string` Share identifier of the post (`urn:li:share:...`). Opaque string. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"create"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7654321098765432100", "post_urn": "urn:li:activity:7654321098765432100", "share_urn": "urn:li:share:7654321098765432000" }, "metadata": { "action": "create", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "message or file is required to create a post." }, "metadata": { "action": "create", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Create Company Post Source: https://docs.linkupapi.com/api-reference/v2/content/create-company POST /v2/content Create a new post on a company page. ## Overview Create a post on a company page. The authenticated account must be an admin of the specified company page. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. > [!NOTE] > > You must be an admin of the company page to create posts on its behalf. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"create_company"`. **params** `object` *required* **params properties** **company_url** `string` *required* The URL of the company page on the connected platform (e.g. `"https://www.linkedin.com/company/acme-corp"`). **message** `string` The text content of the post. Supports hashtags (`#tag`), line breaks and people mentions. To mention someone, use `mention_user(public_id, display_text)` where `public_id` is the slug of their profile URL (`linkedin.com/in/`) and `display_text` is the clickable text shown in the post — e.g. `"Great talk mention_user(williamhgates, Bill Gates)!"`. To mention a company page, use `mention_company(slug, display_text)` where `slug` is from `linkedin.com/company/` — e.g. `"Proud to partner with mention_company(microsoft, Microsoft)"`. **file** `string | object` A single file to attach — an image (`.jpg`, `.png`, `.gif`, `.webp`), a video (`.mp4`, `.mov`, `.webm`…) or a document (`.pdf`, `.doc`, `.docx`, `.ppt`, `.pptx`), which LinkedIn publishes as a page carousel. Can be a URL string or an object with `filename` and `data` properties. **file object properties** **filename** `string` The name of the file including extension (e.g. `"photo.jpg"`). **data** `string` Base64-encoded file data. **thumbnail** `string | object` Custom cover image for a video post. Only valid when `file` is a single video (`.mp4`, `.mov`, `.webm`…). Same format as `file`: a URL string or an object with `filename` and `data` (base64). Without it, LinkedIn picks a frame of the video. **files** `array` An array of files for carousel posts. Each element can be a URL string or an object with `filename`, `data`, and optional `altText` properties. **file object properties** **filename** `string` The name of the file including extension. **data** `string` Base64-encoded file data. **altText** `string` Alternative text for the image (accessibility). ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` The created post data. **data properties** **post_url** `string` The URL of the newly created company post. **post_urn** `string` Unique identifier of the post. Treat it as an opaque string and pass it back exactly as returned. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"create_company"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7654321098765432100", "post_urn": "urn:li:activity:7654321098765432100" }, "metadata": { "action": "create_company", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Company not found or no admin access for: acme-corp" }, "metadata": { "action": "create_company", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Get Post Source: https://docs.linkupapi.com/api-reference/v2/content/get POST /v2/content Retrieve a single post from its URL. ## Overview Returns the details of one post (author, text, media, reaction and comment counts) from its URL. Same post shape as [`POST /v2/profiles` → `get_posts`](/api-reference/v2/profiles/get-posts). > [!NOTE] > > This endpoint consumes **1 credit** per call. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get"`. **params** `object` **params properties** **post_url** `string` *required* URL of the post (`/posts/...-activity--xxx` or `/feed/update/urn:li:activity:`). A bare `urn:li:activity:` is also accepted. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **backend_urn** `string` Activity URN of the post (`urn:li:activity:...`). **activity_id** `string` Numeric part of the activity URN, as a string. **shareUrl** `string` Public URL of the post. **text** `string` Text content of the post. **published_at** `integer` Publication time as a Unix timestamp (seconds). **numLikes** `integer` Total number of reactions. **numComments** `integer` Number of comments. **numShares** `integer` Number of reposts. **reactions** `object` Reaction counts by type (`LIKE`, `EMPATHY`, `PRAISE`, `INTEREST`, `APPRECIATION`, `ENTERTAINMENT`). **content** `object` Attached media. `type` is one of `text`, `image`, `article`, `video`, `document`, `poll`, `celebration`; the other fields depend on the type (`images`, `title`, `url`, `thumbnail`…). **actor_name** `string` Name of the author. **actor_description** `string` Headline of the author. **actor_profile_url** `string` Profile URL of the author. **is_reshare** `boolean` `true` when the post is a repost. The original post is then available in `original_post`. **post_url** `string` The URL that was queried. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ## Post analytics `"action": "get_analytics"` with the same `post_url` returns the post's `impressions`, `members_reached`, `reactions`, `comments`, `reposts`, `saves`, `sends`, `profile_viewers`, `followers_gained` and `viewer_demographics`. Only the post's author can read them: any other account gets `CHANNEL_ERROR` with `sub_code: "NOT_POST_AUTHOR"`. 1 credit. ```json 200 theme={null} { "success": true, "data": { "shareAudience": "PUBLIC", "backend_urn": "urn:li:activity:7497818529442742272", "activity_id": "7497818529442742272", "shareUrl": "https://www.linkedin.com/posts/williamhgates_a-city-mobilizes-against-a-stubborn-health-activity-7497818529442742272-yNR5", "text": "After a major surge in dengue fever, the Brazilian city of Belém went all in to fight the virus...", "numLikes": 560, "numComments": 90, "numShares": 38, "reactions": { "LIKE": 497, "EMPATHY": 21, "APPRECIATION": 20, "PRAISE": 10, "INTEREST": 8, "ENTERTAINMENT": 1 }, "actor_name": "Bill Gates", "actor_description": "Chair, Gates Foundation and Founder, Breakthrough Energy", "actor_image": "https://media.licdn.com/dms/image/...", "actor_profile_url": "https://www.linkedin.com/in/williamhgates", "created_time": 1787619240, "published_at": 1787619240, "content": { "type": "article", "title": "A city mobilizes against a stubborn health threat", "subtitle": "gatesnotes.com", "url": "https://www.gatesnotes.com/...", "thumbnail": "https://media.licdn.com/dms/image/..." }, "post_images": [], "is_reshare": false, "post_url": "https://www.linkedin.com/posts/williamhgates_a-city-mobilizes-against-a-stubborn-health-activity-7497818529442742272-yNR5" }, "metadata": { "action": "get", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-08-25T11:20:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Post not found or not accessible with this account" }, "metadata": { "action": "get", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-08-25T11:20:00Z" } } ``` # Get Post Comments Source: https://docs.linkupapi.com/api-reference/v2/content/get-comments POST /v2/content Retrieve comments on a specific post. ## Overview Returns the comments on a specific post. Pagination is **offset-based** — set `count` for the page size and `offset` to skip ahead. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. The platform returns up to **10 comments per internal request**, so larger `count` values trigger multiple upstream calls automatically. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_comments"`. **params** `object` *required* **params properties** **post_url** `string` *required* The URL of the post to retrieve comments from, as shown on the connected platform. Not needed when `comment_urn` is set. **comment_urn** `string` Returns the replies to this comment instead of the post's comments, oldest first, in the same shape. Pass a `comment_urn` from a previous `get_comments` call; poll the parent's `num_replies` to detect new replies. **count** `integer` (default: 10) Number of comments to return. Defaults to `10`. **Capped at `1000`** per call. **offset** `integer` (default: 0) Zero-indexed offset into the comments list. Defaults to `0`. Use `pagination.next_offset` from a previous response to fetch the next page. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **comments** `array` List of comments. **comment properties** **comment_urn** `string` Unique identifier of the comment. Use this with the `answer_comment` action. **tracking_id** `string` Tracking ID required to reply to the comment via `answer_comment`. **comment_text** `string` Plain-text content of the comment. **created_time** `integer` Unix epoch (milliseconds) when the comment was posted. **commenter** `object` **commenter properties** **name** `string` Display name. **profile_urn** `string` Unique identifier of the commenter. Treat it as an opaque string and pass it back exactly as returned. **linkedin_url** `string` Public profile URL. **occupation** `string` Headline / current role. **profile_picture** `string` Profile picture URL, `null` if none. **distance** `string` Network distance from the connected account: `DISTANCE_1`, `DISTANCE_2`, `DISTANCE_3`, `OUT_OF_NETWORK` or `SELF`. **num_likes** `integer` Reactions on the comment. **num_replies** `integer` Replies to the comment. **total_results** `integer` Number of comments returned in this response. **total_available_results** `integer` Total number of comments on the post reported by the platform. **pagination** `object` **pagination properties** **offset** `integer` Offset of the first comment in this response. **count** `integer` Number of comments returned (mirrors `total_results`). **next_offset** `integer` Offset to send as `offset` in the next request. `null` when exhausted. **has_more** `boolean` `true` if more comments are available. **results_per_page** `integer` Maximum batch size used per upstream request (10). **pages_fetched** `integer` Number of internal upstream batches consumed. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_comments"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "comments": [ { "comment_urn": "urn:li:comment:(activity:7453382311909445632,7453434056920387584)", "tracking_id": "tXyr6F5s8TwZ9U3ezehCwg==", "comment_text": "Great post! Very insightful.", "created_time": 1777037157279, "commenter": { "name": "Jane Doe", "profile_urn": "urn:li:fsd_profile:ACoAA...", "linkedin_url": "https://www.linkedin.com/in/jane-doe-42", "occupation": "Product Manager at Acme Corp", "profile_picture": "https://media.licdn.com/dms/image/v2/.../profile-displayphoto-shrink_800_800/...", "distance": "DISTANCE_2" }, "num_likes": 4, "num_replies": 1 } ], "total_results": 1, "total_available_results": 10, "pagination": { "offset": 0, "count": 1, "next_offset": 1, "has_more": true, "results_per_page": 10, "pages_fetched": 1 } }, "metadata": { "action": "get_comments", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "post_url is required." }, "metadata": { "action": "get_comments", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Get Feed Source: https://docs.linkupapi.com/api-reference/v2/content/get-feed POST /v2/content Retrieve the home feed of the authenticated account. ## Overview Returns the home feed posts for the authenticated account. Pagination is **cursor-based** because the feed is a dynamic, time-ordered stream — pass the `next_cursor` returned by a previous call to fetch older posts. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. The platform returns up to **10 posts per internal request**, so larger `count` values trigger multiple upstream calls automatically. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_feed"`. **params** `object` **params properties** **count** `integer` (default: 10) Number of feed posts to return. Defaults to `10`. **cursor** `string` Cursor returned by a previous response as `pagination.next_cursor`. Omit for the first page. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **Feed** `array` List of feed posts. **post properties** **type** `string` Post type: `"regular"`, `"sponsored"`, `"reshared"`, etc. **actor** `object` Author of the post: `name`, `description`, `image_url`, `profile_url`. **content** `object` Content payload (e.g. `{ "type": "image", "images": [...] }`, `{ "type": "video", ... }`). **commentary** `string` Plain-text body of the post. **social_stats** `object` Engagement counts: `reactions`, `comments`, `shares`. **reshared** `boolean` Whether this is a reshared post. **url** `string` Public URL of the post. **total_results** `integer` Number of posts returned in this response. **pagination** `object` **pagination properties** **results_per_page** `integer` Batch size used per upstream request (typically 10). **pages_fetched** `integer` Number of internal upstream batches consumed. **has_more** `boolean` `true` if more feed posts are available. **next_cursor** `string` Cursor to send as `cursor` in the next request. `null` when exhausted. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_feed"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "Feed": [ { "type": "regular", "actor": { "name": "Jane Doe", "description": "Founder @ Acme Corp", "image_url": "https://media.licdn.com/dms/image/v2/.../profile.jpg", "profile_url": "https://www.linkedin.com/in/jane-doe-42" }, "content": { "type": "image", "images": ["https://media.licdn.com/dms/image/v2/.../share.jpg"] }, "commentary": "Thrilled to share our latest milestone...", "social_stats": { "reactions": 224, "comments": 10, "shares": 14 }, "reshared": false, "url": "https://www.linkedin.com/posts/jane-doe-42_announcement-activity-7453382311909445632-TZ0m" } ], "total_results": 1, "pagination": { "results_per_page": 10, "pages_fetched": 1, "has_more": true, "next_cursor": "10|1013432138-1777199560305-f3e028f30691a0c579cd6dbdfaacf5dd" } }, "metadata": { "action": "get_feed", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "account_id or account_ids is required" }, "metadata": { "action": "get_feed", "account_id": null, "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Get Post Reactions Source: https://docs.linkupapi.com/api-reference/v2/content/get-reactions POST /v2/content Retrieve reactions on a specific post. ## Overview Returns the users who reacted to a specific post. Pagination is **offset-based** — set `count` for the page size and `offset` to skip ahead. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. The platform returns up to **10 reactions per internal request**, so larger `count` values trigger multiple upstream calls automatically. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_reactions"`. **params** `object` *required* **params properties** **post_url** `string` *required* The URL of the post to retrieve reactions from, as shown on the connected platform. **count** `integer` (default: 10) Number of reactions to return. Defaults to `10`. **Capped at `1000`** per call. **offset** `integer` (default: 0) Zero-indexed offset into the reactions list. Defaults to `0`. Use `pagination.next_offset` from a previous response to fetch the next page. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **reactions** `array` List of reaction objects. **reaction properties** **type** `string` Reaction type: `"LIKE"`, `"PRAISE"`, `"EMPATHY"`, `"INTEREST"`, `"APPRECIATION"`, `"ENTERTAINMENT"`. **name** `string` Display name of the reactor. **subtitle** `string` Headline / current role of the reactor. **profile_url** `string` Public profile URL of the reactor. **actor_urn** `string` Unique identifier of the reactor. Treat it as an opaque string and pass it back exactly as returned. **profile_picture** `string` Profile picture URL of the reactor, `null` if none. **total_results** `integer` Number of reactions returned in this response. **total_available_results** `integer` Total number of reactions on the post reported by the platform. **pagination** `object` **pagination properties** **offset** `integer` Offset of the first reaction in this response. **count** `integer` Number of reactions returned (mirrors `total_results`). **next_offset** `integer` Offset to send as `offset` in the next request. `null` when exhausted. **has_more** `boolean` `true` if more reactions are available. **results_per_page** `integer` Maximum batch size used per upstream request (10). **pages_fetched** `integer` Number of internal upstream batches consumed. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_reactions"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "reactions": [ { "type": "LIKE", "name": "Jane Doe", "subtitle": "Cofounder @ Acme Corp", "profile_url": "https://www.linkedin.com/in/jane-doe-42", "actor_urn": "urn:li:fsd_profile:ACoAA...", "profile_picture": "https://media.licdn.com/dms/image/v2/.../profile-displayphoto-shrink_800_800/..." } ], "total_results": 1, "total_available_results": 224, "pagination": { "offset": 0, "count": 1, "next_offset": 1, "has_more": true, "results_per_page": 10, "pages_fetched": 1 } }, "metadata": { "action": "get_reactions", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "post_url is required." }, "metadata": { "action": "get_reactions", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # React to Post Source: https://docs.linkupapi.com/api-reference/v2/content/react POST /v2/content React to a post with a specific reaction type. ## Overview React to a post with a specific reaction type. You can also react as a company page by providing the `company_url` parameter. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"react"`. **params** `object` *required* **params properties** **post_url** `string` *required* The URL of the post to react to, as shown on the connected platform. **reaction_type** `string` (default: LIKE) The type of reaction. One of: `"LIKE"`, `"CELEBRATE"`, `"SUPPORT"`, `"FUNNY"`, `"LOVE"`, `"INSIGHTFUL"`. Default is `"LIKE"`. **company_url** `string` Optional. The URL of a company page to react as. You must be an admin of the company page. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **reacted** `boolean` `true` when the reaction was successfully applied. **post_url** `string` The post URL that was reacted to (echo of the input). **reaction_type** `string` The reaction type that was applied. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"react"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "reacted": true, "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7654321098765432100", "reaction_type": "CELEBRATE" }, "metadata": { "action": "react", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "post_url is required." }, "metadata": { "action": "react", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Repost Source: https://docs.linkupapi.com/api-reference/v2/content/repost POST /v2/content Repost a post to your feed. ## Overview Repost (share) a post to the authenticated account's feed. You can also repost as a company page by providing the `company_url` parameter. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"repost"`. **params** `object` *required* **params properties** **post_url** `string` *required* The URL of the post to repost, as shown on the connected platform. **company_url** `string` Optional. The URL of a company page to repost as. You must be an admin of the company page. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **reposted** `boolean` `true` when the post was successfully reposted. **post_url** `string` The post URL that was reposted (echo of the input). **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"repost"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "reposted": true, "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7654321098765432100" }, "metadata": { "action": "repost", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "post_url is required." }, "metadata": { "action": "repost", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Search Posts Source: https://docs.linkupapi.com/api-reference/v2/content/search POST /v2/content Search for posts using keywords and advanced filters. ## Overview Search for posts using keywords with optional filters by author, company, industry, date, mentions, and more. Pagination is **offset-based** — set `count` for the page size and `offset` to skip ahead. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. The platform returns up to **50 posts per internal request**, so larger `count` values trigger multiple upstream calls automatically. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"search"`. **params** `object` **params properties** **keyword** `string` The search keyword or phrase. Multi-value supported via array (e.g. `["AI", "agents"]`). **count** `integer` (default: 10) Number of posts to return. Defaults to `10`. **Capped at `1000`** per call. **offset** `integer` (default: 0) Zero-indexed offset into the search results. Defaults to `0`. Use `pagination.next_offset` from a previous response to fetch the next page. **post_type** `string` Filter by content type (e.g. `"VIDEOS"`, `"IMAGES"`, `"ARTICLES"`). **sort_by** `string` (default: date_posted) Sort order: `"date_posted"` (default) or `"relevance"`. **post_date** `string` Filter by date range (e.g. `"past-24h"`, `"past-week"`, `"past-month"`). **profile_url** `string` Filter posts authored by a specific profile. Accepts the URL of the profile on the connected platform. **company_url** `string` Filter posts authored by a specific company page. **author_company** `string` Filter by the author's current company. **author_industry** `string` Filter by the author's industry. **author_job_title** `string` Filter by the author's job title. **mentions_member** `string` Filter posts that mention a specific member. **mentions_organization** `string` Filter posts that mention a specific organization. **posted_by** `string` Filter by author network: `"first"`, `"following"`, or `"first,following"`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **posts** `array` List of matching posts. **post properties** **backend_urn** `string` Unique identifier of the post. Treat it as an opaque string and pass it back exactly as returned. **shareUrl** `string` Public share URL of the post. **text** `string` Plain-text content of the post. **numLikes** `integer` Reaction count. **numComments** `integer` Comment count. **numShares** `integer` Share count. **actor_name** `string` Author display name. **actor_description** `string` Author headline. **actor_image** `string` Author profile picture URL. **actor_profile_url** `string` Author's public profile URL. **created_time** `integer` Post creation Unix epoch (seconds). **post_images** `array` List of attached image URLs. **shareAudience** `string` Audience scope (e.g. `"PUBLIC"`). **total_results** `integer` Number of posts returned in this response. **total_available_results** `integer` Total number of posts matching the query reported by the platform. **pagination** `object` **pagination properties** **offset** `integer` Offset of the first post in this response. **count** `integer` Number of posts returned (mirrors `total_results`). **next_offset** `integer` Offset to send as `offset` in the next request. `null` when exhausted. **has_more** `boolean` `true` if more posts are available. **results_per_page** `integer` Maximum batch size used per upstream request. **pages_fetched** `integer` Number of internal upstream batches consumed. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"search"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "posts": [ { "backend_urn": "urn:li:activity:7454082992819519488", "shareUrl": "https://www.linkedin.com/posts/jane-doe-42_post-activity-7454082992819519488-lXYU", "text": "Exciting developments in artificial intelligence this week...", "numLikes": 234, "numComments": 45, "numShares": 12, "actor_name": "Jane Doe", "actor_description": "AI Researcher at Acme Corp", "actor_image": "https://media.licdn.com/dms/image/v2/.../profile.jpg", "actor_profile_url": "https://www.linkedin.com/in/jane-doe-42", "created_time": 1777191911, "post_images": [], "shareAudience": "PUBLIC" } ], "total_results": 1, "total_available_results": 1240, "pagination": { "offset": 0, "count": 1, "next_offset": 1, "has_more": true, "results_per_page": 50, "pages_fetched": 1 } }, "metadata": { "action": "search", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Get Credit Balance Source: https://docs.linkupapi.com/api-reference/v2/credits/get-balance GET /v2/credits Check your current credit balance Retrieve the number of credits remaining on your account. ### Header Parameters **x-api-key** `string` *required* Your API key ### Response **success** `boolean` Whether the request was successful **data** `object` **Properties** **credits** `integer` The number of credits remaining on your account ```json Success Response theme={null} { "success": true, "data": { "credits": 4825 }, "metadata": { "action": "get_credits", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Error — Invalid API Key theme={null} { "success": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API Key" }, "metadata": { "action": "get_credits", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ### Notes * This endpoint does **not** consume any credits * Use this to monitor your usage and implement low-credit alerts in your application * Credits are consumed by most API actions — see the [Introduction](/api-reference/v2/introduction#credit-system) for details on the credit system # Autoconfig Provider Source: https://docs.linkupapi.com/api-reference/v2/email/autoconfig GET /v2/email/autoconfig Detect the provider and IMAP/SMTP settings for an email address ## Overview Given an email address, returns the recommended connection method and the IMAP/SMTP server settings — so you can route the user to the right flow (Gmail/Microsoft OAuth vs IMAP/SMTP) and pre-fill the server fields. Resolution: a curated provider table, then an MX lookup (Google Workspace / Microsoft 365 on custom domains), then the Mozilla ISPDB (covers most ISPs), then a manual fallback. > [!NOTE] > > This endpoint is **free** (0 credits) and read-only. ## Request **x-api-key** `string` *required* Your API key. **email** `string` *required* The mailbox address to look up, e.g. `you@company.com`. ## Response **success** `boolean` Whether the lookup succeeded. **data** `object` **data properties** **email** `string` The address that was looked up. **domain** `string` Its domain. **provider_bucket** `string` `"google"`, `"outlook"` or `"other"`. **recommended_method** `string` The `provider` to pass to [`/v2/login`](/api-reference/v2/email/connect): `"gmail_oauth"`, `"m365_oauth"` or `"smtp_generic"`. **oauth_available** `boolean` `true` for Google/Microsoft — prefer OAuth over an app password. **imap** `object` Suggested IMAP settings (`host`, `port`, `security`), or `null` when unknown. **smtp** `object` Suggested SMTP settings (`host`, `port`, `security`), or `null` when unknown. **source** `string` How it was resolved: `"domain_table"`, `"mx"`, `"ispdb"` or `"unknown"`. ```json 200 (Google Workspace) theme={null} { "success": true, "data": { "email": "you@company.com", "domain": "company.com", "provider_bucket": "google", "recommended_method": "gmail_oauth", "oauth_available": true, "imap": { "host": "imap.gmail.com", "port": 993, "security": "ssl" }, "smtp": { "host": "smtp.gmail.com", "port": 587, "security": "starttls" }, "source": "mx" }, "metadata": { "action": "email_autoconfig", "credits_consumed": 0, "timestamp": "2026-09-14T12:00:00Z" } } ``` ```json 200 (IMAP provider) theme={null} { "success": true, "data": { "email": "you@orange.fr", "domain": "orange.fr", "provider_bucket": "other", "recommended_method": "smtp_generic", "oauth_available": false, "imap": { "host": "imap.orange.fr", "port": 993, "security": "ssl" }, "smtp": { "host": "smtp.orange.fr", "port": 465, "security": "ssl" }, "source": "ispdb" }, "metadata": { "action": "email_autoconfig", "credits_consumed": 0, "timestamp": "2026-09-14T12:00:00Z" } } ``` > [!NOTE] > > When the domain is unknown, `imap` and `smtp` are `null` and `source` is `"unknown"` — the user fills the server settings by hand. # Find Email Source: https://docs.linkupapi.com/api-reference/v2/enrich/find-email POST /v2/enrich Find a professional email address from name + company. ## Overview Finds a professional email address from a person's name and company. You can identify the target either by: * **First name + last name + company** (`company_name` or `company_domain`) * **Profile URL** — the service auto-extracts name and current company from the profile > [!NOTE] > > This endpoint consumes **1 credit** per request. ## Request **action** `string` *required* Must be `"find_email"`. **params** `object` *required* **params properties** **first_name** `string` Person's first name. Required unless `profile_url` is provided. **last_name** `string` Person's last name. Required unless `profile_url` is provided. **company_domain** `string` Company root domain (e.g. `"acme-corp.com"`). Provide either this or `company_name`. Also accepts `domain` as an alias. **company_name** `string` Company display name (the service resolves it to a domain via Google search). Also accepts `company` as an alias. **profile_url** `string` Public URL of the person's profile (e.g. `"https://www.linkedin.com/in/jane-doe-42"`). When provided, name and current company are extracted automatically and `first_name`/`last_name`/`company_*` become optional. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **email** `string` The validated email address found, or `null` if no valid pattern matched. **alternatives** `array` Other potential emails (typically empty when a primary match is locked, or populated when the domain is catch-all). **catchall** `boolean` `true` if the company domain is catch-all (deliverability not guaranteed). **domain_used** `string` The domain on which the matching email was found. **domains_tested** `array` List of domains tested in order before stopping. **domains_filtered** `array` All candidate domains after blacklist filtering (social platforms, free providers, etc.). **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"find_email"`). **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "email": "jane.doe@acme-corp.com", "alternatives": [], "catchall": true, "domain_used": "acme-corp.com", "domains_tested": ["acme-corp.com"], "domains_filtered": ["acme-corp.com"] }, "metadata": { "action": "find_email", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 200 — Not found theme={null} { "success": true, "data": { "email": null, "alternatives": [], "catchall": false, "domain_used": null, "domains_tested": ["acme-corp.com"], "domains_filtered": ["acme-corp.com"] }, "metadata": { "action": "find_email", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Provide either linkedin_url, or first_name + last_name + (company_name or company_domain)" }, "metadata": { "action": "find_email", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Reverse Email Lookup Source: https://docs.linkupapi.com/api-reference/v2/enrich/reverse-email POST /v2/enrich Identify a person from their professional email address. ## Overview Reverse-resolves a professional email address into the matching profile, returning the person's full identity (name, headline, current company, profile URL, etc.). > [!NOTE] > > Only **professional** email addresses are accepted. Personal providers (Gmail, Yahoo, Hotmail, Outlook, iCloud, ProtonMail, free.fr, orange.fr, etc.) are rejected with `INVALID_PARAMS`. > > This endpoint consumes **1 credit** per request. ## Request **action** `string` *required* Must be `"reverse_email"`. **params** `object` *required* **params properties** **email** `string` *required* Professional email address to reverse-resolve. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **email_parsed** `object` Output of the GPT parsing step. **email_parsed properties** **original_email** `string` The input email (echo). **first_name** `string` First name extracted from the local part. **last_name** `string` Last name extracted (may be empty if the local part contained only the first name). **company_domain** `string` The company domain (everything after `@`). **parsing_confidence** `string` GPT's confidence in the parse: `"high"`, `"medium"`, or `"low"`. **person_found** `object` The resolved person. * When a profile is matched: full profile object (same shape as [Get Profile Info](/api-reference/v2/profiles/get-profile)) — `full_name`, `first_name`, `last_name`, `headline`, `location`, `summary`, `industry`, `experience`, `education`, `skills`, `profile_picture_url`, `connection_count`, etc. * When no profile match is found: minimal fallback `{full_name, first_name, last_name}`. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"reverse_email"`). **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 — Profile matched theme={null} { "success": true, "data": { "email_parsed": { "original_email": "jane.doe@acme-corp.com", "first_name": "Jane", "last_name": "Doe", "company_domain": "acme-corp.com", "parsing_confidence": "high" }, "person_found": { "full_name": "Jane Doe", "first_name": "Jane", "last_name": "Doe", "headline": "Senior Product Manager at Acme Corp", "location": "San Francisco Bay Area", "industry": "Computer Software", "profile_url": "https://www.linkedin.com/in/jane-doe-42", "experience": [ { "company": "Acme Corp", "title": "Senior Product Manager", "start_date": "1/2023", "end_date": "" } ] } }, "metadata": { "action": "reverse_email", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 200 — No profile match (fallback) theme={null} { "success": true, "data": { "email_parsed": { "original_email": "j.doe@small-shop.io", "first_name": "John", "last_name": "Doe", "company_domain": "small-shop.io", "parsing_confidence": "medium" }, "person_found": { "full_name": "John Doe", "first_name": "John", "last_name": "Doe" } }, "metadata": { "action": "reverse_email", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 — Personal email rejected theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Only professional email addresses are accepted. Personal email providers (Gmail, Yahoo, Hotmail, etc.) are not supported." }, "metadata": { "action": "reverse_email", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 — Invalid format theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Invalid email format" }, "metadata": { "action": "reverse_email", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Validate Email Source: https://docs.linkupapi.com/api-reference/v2/enrich/validate-email POST /v2/enrich Verify whether an email address is valid and deliverable. ## Overview Checks whether an email address is valid and deliverable. Returns syntax validity, deliverability, catch-all status, and a reachability verdict. No connected account is required for this action. > [!NOTE] > > This endpoint consumes **1 credit** per request. ## Request **action** `string` *required* Must be `"validate_email"`. **params** `object` *required* **params properties** **email** `string` *required* The email address to validate. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **email** `string` The email that was validated (echo of input). **is_valid** `boolean` `true` when the email passes syntax + MX + deliverability checks. **is_catch_all** `boolean` `true` if the domain accepts all addresses (deliverability is not a guarantee). **reachability** `string` SMTP probe verdict: `"safe"`, `"risky"`, or `"unknown"`. **is_deliverable** `boolean` `true` if the SMTP server accepts mail for this address. **syntax_valid** `boolean` `true` if the address has valid RFC syntax. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"validate_email"`). **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "email": "jane.doe@acme-corp.com", "is_valid": true, "is_catch_all": true, "reachability": "risky", "is_deliverable": true, "syntax_valid": true }, "metadata": { "action": "validate_email", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "email is required" }, "metadata": { "action": "validate_email", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Error Codes Source: https://docs.linkupapi.com/api-reference/v2/error-codes V2 API error codes and how to handle them Every error response has the same shape: ```json theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "No Sales Nav license found for this account", "sub_code": "NO_SALES_NAV_SEAT" }, "metadata": { "action": "search_people_nav", "credits_consumed": 1, "timestamp": "2026-10-15T12:00:00Z" } } ``` Branch on `code` and `sub_code`, never on `message`: the text may change, the codes don't. `sub_code` is always present on `CHANNEL_ERROR`, and on other codes only in the cases listed under [Sub-codes](#sub-codes). When it is absent, handle the error on `code` alone; treat an unknown `sub_code` the same way. ## Handling errors | Case | What to do | When | | - | - | - | | **LinkedIn limited the account** | Pause this action on the account. When LinkedIn lifts the limit depends on the case. | `LINKEDIN_RATE_LIMITED`, `SALES_NAV_RATE_LIMITED`, `FUSE_LIMIT_EXCEEDED`, `QUOTA_EXCEEDED`, `INMAIL_MONTHLY_FUSE_LIMIT` | | **The account is disconnected** | Reconnect it with `POST /v2/login`. | `ACCOUNT_INACTIVE` (except `NOT_CONNECTED`), `ACCOUNT_DISCONNECTED`, the seat sub-codes | | **The target can't be reached** | Skip it and move on. | `PROFILE_NOT_FOUND`, `CANT_RESEND_YET`, `RECIPIENT_NOT_FIRST_DEGREE_CONNECTION`, other `CHANNEL_ERROR` refusals | | **The request is wrong** | Fix it, or top up on `INSUFFICIENT_CREDITS`. | Other `INVALID_PARAMS`, `INVALID_ACTION`, `INVALID_ACCOUNT`, `INSUFFICIENT_CREDITS` | | **Temporary failure on our side** | The request was fine. On `CONCURRENCY_LIMIT`, send fewer requests in parallel. | `INTERNAL_ERROR`, `UPSTREAM_ERROR`, `*_UNAVAILABLE`, `CONCURRENCY_LIMIT`, `NOT_CONNECTED` | **WhatsApp only:** `NOT_CONNECTED` means the connection to WhatsApp dropped and is being reopened automatically. Retry later and do not re-link the number. No webhook is sent when the connection drops or comes back; re-link only when you receive a [`disconnection`](/api-reference/v2/webhooks/introduction#disconnection) event. ## Codes | Code | HTTP | Meaning | | - | - | - | | `INVALID_API_KEY` | 403 | The `x-api-key` header is missing or invalid. | | `INVALID_ACCOUNT` | 404 | The `account_id` doesn't exist under your API key. | | `ACCOUNT_INACTIVE` | 403 | The account's session stopped working during the call. | | `INVALID_ACTION` | 400 | The action doesn't exist for this endpoint, or not on this account (no credit charged). | | `INVALID_PARAMS` | 400 | A parameter is missing or invalid, the target doesn't exist (`PROFILE_NOT_FOUND`), or the `account_id` is disconnected (`ACCOUNT_DISCONNECTED`). | | `RATE_LIMITED` | 429 | Too many concurrent requests on your key, or LinkedIn limited the account. | | `INSUFFICIENT_CREDITS` | 402 | Not enough credits. Only on credit plans, and for email enrichment on every plan. | | `SEAT_LIMIT_REACHED` | 402 | Per-account plan: all seats are used and auto-upgrade is off. Add seats or turn auto-upgrade on in [Billing](https://app.linkupapi.com/billing). | | `CHANNEL_ERROR` | 422 | The request was valid but the platform refused it. `sub_code` says why. | | `INTERNAL_ERROR` | 500 | Unexpected error on our side. Contact [support@linkupapi.com](mailto:support@linkupapi.com) if it persists. | ## Examples ```json INVALID_API_KEY theme={null} { "success": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API Key" }, "metadata": { "credits_consumed": 0, "timestamp": "2026-10-15T12:00:00Z" } } ``` ```json INVALID_ACCOUNT theme={null} { "success": false, "error": { "code": "INVALID_ACCOUNT", "message": "Account not found" }, "metadata": { "action": "get", "credits_consumed": 0, "timestamp": "2026-10-15T12:00:00Z" } } ``` ```json ACCOUNT_INACTIVE theme={null} { "success": false, "error": { "code": "ACCOUNT_INACTIVE", "message": "LinkedIn account is no longer connected. Please re-authenticate.", "sub_code": "LINKEDIN_SESSION_EXPIRED" }, "metadata": { "action": "get", "credits_consumed": 0, "timestamp": "2026-10-15T12:00:00Z" } } ``` ```json INVALID_ACTION theme={null} { "success": false, "error": { "code": "INVALID_ACTION", "message": "Unsupported action 'foo_bar' for category 'profiles' on platform 'linkedin'" }, "metadata": { "action": "foo_bar", "credits_consumed": 0, "timestamp": "2026-10-15T12:00:00Z" } } ``` ```json INVALID_PARAMS theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Profile not found", "sub_code": "PROFILE_NOT_FOUND" }, "metadata": { "action": "get", "credits_consumed": 0, "timestamp": "2026-10-15T12:00:00Z" } } ``` ```json RATE_LIMITED theme={null} { "success": false, "error": { "code": "RATE_LIMITED", "message": "LinkedIn invitation limit reached on this account (FUSE_LIMIT_EXCEEDED)", "sub_code": "FUSE_LIMIT_EXCEEDED" }, "metadata": { "action": "invite", "credits_consumed": 1, "timestamp": "2026-10-15T12:00:00Z" } } ``` ```json INSUFFICIENT_CREDITS theme={null} { "success": false, "error": { "code": "INSUFFICIENT_CREDITS", "message": "Not enough credits" }, "metadata": { "action": "get", "credits_consumed": 0, "timestamp": "2026-10-15T12:00:00Z" } } ``` ```json SEAT_LIMIT_REACHED theme={null} { "success": false, "error": { "code": "SEAT_LIMIT_REACHED", "message": "Seat limit reached: 3/3 accounts connected. Add seats or turn on auto-upgrade in your dashboard to connect more accounts." }, "metadata": { "action": "login", "credits_consumed": 0, "timestamp": "2026-10-15T12:00:00Z" } } ``` ```json CHANNEL_ERROR theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "LinkedIn won't accept this invitation yet: after withdrawing an invitation, the same member can only be invited again about 3 weeks later (CANT_RESEND_YET)", "sub_code": "CANT_RESEND_YET" }, "metadata": { "action": "invite", "credits_consumed": 1, "timestamp": "2026-10-15T12:00:00Z" } } ``` ```json INTERNAL_ERROR theme={null} { "success": false, "error": { "code": "INTERNAL_ERROR", "message": "An unexpected error occurred while processing your request" }, "metadata": { "action": "get", "credits_consumed": 0, "timestamp": "2026-10-15T12:00:00Z" } } ``` ## Sub-codes | Area | `sub_code` | | - | - | | Temporary (our side) | `UPSTREAM_ERROR`, `WHATSAPP_UNAVAILABLE`, `SALES_NAV_SEAT_UNAVAILABLE`, `NO_PROXY_AVAILABLE`, `MONITOR_START_FAILED`, `MAILBOX_PROVIDER_ERROR`, `NOT_CONNECTED` (WhatsApp reconnecting, sent with `ACCOUNT_INACTIVE`) | | Rate limits (`RATE_LIMITED`) | `CONCURRENCY_LIMIT` (your key), `LINKEDIN_RATE_LIMITED`, `SALES_NAV_RATE_LIMITED`, `FUSE_LIMIT_EXCEEDED`, `QUOTA_EXCEEDED` (invitations), `INMAIL_MONTHLY_FUSE_LIMIT` (Sales Nav InMails) | | Disconnected (`ACCOUNT_INACTIVE`) | `LINKEDIN_SESSION_EXPIRED`, `MAILBOX_AUTH_REVOKED`, `MAILBOX_AUTH_FAILED`, `RECRUITER_SEAT_EXPIRED` | | Request (`INVALID_PARAMS`) | `PROFILE_NOT_FOUND`, `ACCOUNT_DISCONNECTED`, `BAD_CREDENTIALS` (login), and on a refused `send` LinkedIn's own code: `RECIPIENT_NOT_FIRST_DEGREE_CONNECTION`, `NOT_ALLOWED_PREMIUM_INMAIL_SUBSEQUENT_REPLY`… | | Invitations | `CANT_RESEND_YET` (already connected, invitation pending, or recently withdrawn), `ALREADY_CONNECTED`, `ALREADY_INVITED`, `CUSTOM_MESSAGE_TOO_LONG`, `INVITATION_REFUSED`, `INVITATION_NOT_CONFIRMED` (check with `check_invitation`), `INVITATION_NOT_PENDING` | | LinkedIn refusals | `PROFILE_RESTRICTED`, `ENTITY_NOT_FOUND`, `GEO_RESTRICTED`, `INMAIL_NOT_ALLOWED`, `JOB_POSTING_FAILED`, `LINKEDIN_REFUSED` | | Sales Navigator | `NO_SALES_NAV_SEAT`, `SALES_NAV_SEAT_INVALID`, `SALES_NAV_ACCESS_DENIED`, `SALES_NAV_BAD_REQUEST`, `SALES_NAV_NOT_FOUND`, `ACCOUNT_UNDER_REVIEW`, `MISSING_CONVERSATION_ID`, `SALES_NAV_ERROR` | | Recruiter | `RECRUITER_SEAT_MISSING`, `RECRUITER_SEAT_EXPIRED`, `NO_RECRUITER_LICENSE`, `RECRUITER_LOGIN_FAILED`, `RECRUITER_ERROR` | | Login & checkpoint | `LOGIN_FAILED`, `ACCOUNT_RESTRICTED`, `ACCOUNT_VERIFICATION_REQUIRED` (LinkedIn asks the member to verify the account on linkedin.com, e.g. add a phone number; retry the login after), `INVALID_LOGIN_TOKEN`, `CHECKPOINT_VERIFICATION_FAILED`, `CHECKPOINT_SESSION_EXPIRED`, `CHECKPOINT_RESEND_FAILED` | | Accounts | `SESSION_REJECTED_THROUGH_PROXY` (proxy or country change refused, nothing changed) | | Email | `MAILBOX_AUTHORIZATION_FAILED`, `MAILBOX_PERMISSIONS_MISSING`, `MAILBOX_CONNECTION_FAILED`, `NO_GMAIL_MAILBOX`, `MICROSOFT_SENDING_UNAVAILABLE`, `IMAP_AUTH_FAILED`, `IMAP_CONNECTION_FAILED` | | WhatsApp | `WHATSAPP_LINK_EXPIRED`, `WHATSAPP_LINK_REFUSED`, `NOT_ON_WHATSAPP`, `SEND_FAILED`, `CHAT_NOT_FOUND` | | iMessage | `IMESSAGE_CONTACT_LIMIT`, `IMESSAGE_DAILY_NEW_CONTACT_LIMIT`, `IMESSAGE_NEW_CONTACT_INTERVAL`, `IMESSAGE_FOLLOW_UP_INTERVAL`, `IMESSAGE_FOLLOW_UP_TOO_SOON`, `IMESSAGE_RECIPIENT_MUST_REPLY`, `IMESSAGE_FIRST_MESSAGE_CONTENT`, `IMESSAGE_SEND_REFUSED`, `IMESSAGE_TYPING_UNAVAILABLE`, `IMESSAGE_UNAVAILABLE` — see [iMessage limits](/api-reference/v2/best-practices#imessage-limits) | | Other | `COMPANY_NOT_FOUND` (enrich), `CONNECT_LINK_UNAVAILABLE`, `CONNECTION_FAILED` (hosted connection links) | # Introduction Source: https://docs.linkupapi.com/api-reference/v2/introduction Connect your AI agent to B2B channels LinkupAPI connects your product or AI agent to LinkedIn, WhatsApp, iMessage, and Email. One unified API to automate outreach, find contacts, and gather market insights for **sales** and **recruitment**. ## What You Can Build > [card] Sales Automation > > Generate leads, automate outreach on LinkedIn/WhatsApp/Email, track funding signals, and enrich company data in real-time. > [card] Recruitment Automation > > Source candidates, track hiring companies, and connect with talent on LinkedIn and WhatsApp at scale. ## What's New in V2 > [card] Action-Based Endpoints > > Each category has a single endpoint. Send the `action` in the request body instead of calling different URLs. > [card] Account Management > > Manage your accounts via the API. List accounts, get details, and use `account_id` in all requests. > [card] Standardized Responses > > Every response follows the same format with `success`, `data`/`error`, and `metadata` fields. ## Quick Start ### 1. Get Your API Key Sign up at [linkupapi.com](https://app.linkupapi.com/signup) ### 2. Connect Your Account ```bash theme={null} curl -X POST https://api.linkupapi.com/v2/login \ -H "x-api-key: your_api_key" \ -H "Content-Type: application/json" \ -d '{"platform": "linkedin", "login_token": "your_token", "country": "FR"}' ``` ### 3. Make Your First Request ```bash theme={null} curl -X POST https://api.linkupapi.com/v2/profiles \ -H "x-api-key: your_api_key" \ -H "Content-Type: application/json" \ -d '{"account_id": "your_account_id", "action": "get_me"}' ``` ## Authentication All V2 endpoints require your API key in the `x-api-key` header. ## Request Format All action endpoints use `POST` with the following body structure: ```json theme={null} { "account_id": "acc_123", "action": "action_name", "params": { "key": "value" } } ``` **account_id** `string` *required* The unique identifier of the account to use for this action. **action** `string` *required* The action to perform. Each category has its own set of available actions. **params** `object` Action-specific parameters. See each action's documentation for required and optional fields. ## Response Format Every V2 response follows a standardized format. ### Success Response ```json theme={null} { "success": true, "data": { "..." }, "metadata": { "action": "get_profile", "account_id": "acc_123", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ### Error Response ```json theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "profile_url is required" }, "metadata": { "action": "get_contact", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` ## Billing Two billing modes, chosen in [Billing](https://app.linkupapi.com/plans). The API is identical, only the limits differ. **Per-account plan.** You pay per connected account (one LinkedIn profile, mailbox or WhatsApp number), billed upfront each month: \$55 for the first 15 accounts, then from \$3.70 per extra account, capped at \$3,000/month. Usage is unlimited on every endpoint. With auto-upgrade on (default) you can connect beyond your seats and the monthly peak is billed at renewal; with it off, one account too many returns `SEAT_LIMIT_REACHED`. Only email enrichment still consumes credits. **Credit plans.** Most actions consume **1 credit** per request. Actions that return lists (search, get connections, etc.) consume **1 credit per 10 results**, rounded up. For example: * Fetching a single profile: **1 credit** * Searching with 25 results: **3 credits** (25 / 10 = 2.5, rounded up to 3) * Listing 10 connections: **1 credit** The exact number of credits consumed is always returned in the `metadata.credits_consumed` field of the response. At zero, calls return `INSUFFICIENT_CREDITS` until the plan renews or you buy a pack. ## Available Categories | Category | Endpoint | Description | | - | - | - | | **Profiles** | `POST /v2/profiles` | Get profile info, search profiles, visit profiles, get contact info | | **Messages** | `POST /v2/messages` | Send messages, get conversations, list inbox | | **Network** | `POST /v2/network` | Send connection requests, manage invitations, get connections | | **Content** | `POST /v2/content` | Create posts, comment, like, repost, get feed | | **Recruiter** | `POST /v2/recruiter` | Create job posts, get candidates, manage job offers | | **Credits** | `GET /v2/credits` | Check your credit balance | | **Webhooks** | `POST/GET /v2/webhooks` | Real-time event notifications via webhook URLs | | **Mail** | `POST /v2/mail` | Find, reverse-lookup, and validate email addresses | ## Need Help? * Check our [Migration Guide](/api-reference/v2/migration) if you're coming from V1 * Email: [support@linkupapi.com](mailto:support@linkupapi.com) # Search Jobs Source: https://docs.linkupapi.com/api-reference/v2/jobs/search POST /v2/jobs Search LinkedIn job postings and read one, including who posted it. ## Overview Search job postings with the filters of LinkedIn's Jobs tab, paginated with `count` and `offset`. Works with any LinkedIn account. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"search"`. **params** `object` *required* **params properties** **keywords** `string` Job title, skill or company. Required unless a location is given. **location** `string` Location as text (`"Paris"`, `"Germany"`). Or `location_id`: the geo id from [Typeahead](/api-reference/v2/profiles/typeahead) or from a previous response. **sort_by** `string` `"recent"` or `"relevant"`. **date_posted** `string | integer` `"24h"`, `"week"`, `"month"`, or a number of seconds. **experience** `string | string[]` `internship`, `entry`, `associate`, `mid_senior`, `director`, `executive`. **job_type** `string | string[]` `full_time`, `part_time`, `contract`, `temporary`, `volunteer`, `internship`, `other`. **workplace** `string | string[]` `on_site`, `remote`, `hybrid`. **company** `string | string[]` Company ids. Same for `industry`, `function` and `title` ids. **easy_apply** `boolean` Only Easy Apply jobs. Other flags: `in_network`, `under_10_applicants`, `verified`. **count** `integer` (default: 10) Number of jobs to return. Capped at `100` per call; paginate with `offset`. **offset** `integer` (default: 0) Use `pagination.next_offset` from the previous response. LinkedIn returns the first 1,000 results. ## Response **data** `object` **data properties** **jobs** `array` The jobs: `linkedin_job_id`, `job_url`, `title`, `company_name`, `company_url`, `company_id`, `location`, `listed_at` (ms), `easy_apply`, `promoted`, `reposted`, and LinkedIn's own texts when shown: `salary_text`, `benefits_text`, `applicant_insight`, `insight`. **total_results** `integer` Number of jobs returned. **total_available_results** `integer` Total number of jobs matching the search. **location_id** `string` The geo id the search ran on. **pagination** `object` `offset`, `count`, `next_offset`, `has_more`. ## Get a job Same endpoint, action `"get"` with `job_id` or `job_url`. 1 credit. * Returns `title`, `description`, `job_state`, `company_name`, `company_url`, `location`, `workplace_type`, `employment_status`, `experience_level`, `industry`, `job_functions`, `listed_at`, `expire_at`, `salary`, `benefits`, `closed` and `viewer` (`applied`, `saved`). * `apply`: `type` (`"easy_apply"` or `"external"`), `url`, and `company_apply_url` when the employer has its own page. * `hiring_team`: who posted the job, each with `name`, `role`, `job_title`, `profile_url`, `profile_urn`, `profile_picture`, `connection_level`. Empty when LinkedIn shows nobody. * An unknown job returns `INVALID_PARAMS` with `sub_code: "JOB_NOT_FOUND"`. ## Apply to a job Easy Apply jobs only (`apply.type: "easy_apply"`), same endpoint. 1 credit each. * `"get_apply_form"` with `job_id` or `job_url`: the `questions` to answer, each with `question_id`, `label`, `type`, the `pattern` an answer must match and the `value` LinkedIn pre-fills (email, phone, resume on file). `can_apply` is `false` when the form holds a question type not supported yet (choice, checkbox, date, upload). * `"apply"` with `job_id` and `answers` (`{question_id: answer}`): submits the application. Pre-filled questions can be left out. Nothing is sent if an answer is missing or invalid (`MISSING_ANSWERS`, `INVALID_ANSWER`). * Other errors: `NOT_EASY_APPLY`, `ALREADY_APPLIED`, `UNSUPPORTED_FORM`. ```json Request theme={null} { "account_id": "your-account-id", "action": "search", "params": { "keywords": "account executive", "location": "Paris", "date_posted": "week", "easy_apply": true, "count": 10 } } ``` ```json 200 theme={null} { "success": true, "data": { "jobs": [ { "linkedin_job_id": "4178681638", "job_url": "https://www.linkedin.com/jobs/view/4178681638/", "title": "Account Executive, Mid Market", "company_name": "Acme Corp", "company_url": "https://www.linkedin.com/company/acme-corp/", "company_id": "1234567", "location": "Paris, Île-de-France, France (Hybrid)", "listed_at": 1794587880000, "easy_apply": true, "promoted": false, "reposted": false, "salary_text": "50K EUR/yr - 65K EUR/yr", "benefits_text": null, "applicant_insight": "Be an early applicant", "insight": null } ], "total_results": 1, "total_available_results": 36, "location_id": "106383538", "pagination": { "offset": 0, "count": 1, "next_offset": 1, "has_more": true } }, "metadata": { "action": "search", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-11-14T12:29:34.538517" } } ``` ```json 200 (get) theme={null} { "success": true, "data": { "linkedin_job_id": "4178681638", "job_url": "https://www.linkedin.com/jobs/view/4178681638/", "title": "Account Executive, Mid Market", "description": "Acme Corp is hiring an Account Executive...", "job_state": "LISTED", "company_name": "Acme Corp", "company_url": "https://www.linkedin.com/company/acme-corp", "location": "Paris, Île-de-France, France", "workplace_type": "Hybrid", "employment_status": "Full-time", "experience_level": "Associate", "industry": ["Software Development"], "listed_at": 1794582818000, "salary": [ { "type": "BASE_SALARY", "min": 50000.0, "max": 65000.0, "currency": "EUR", "period": "YEARLY" } ], "apply": { "type": "easy_apply", "url": "https://www.linkedin.com/job-apply/4178681638", "company_apply_url": null }, "hiring_team": [ { "name": "Jane Doe", "role": "Job poster", "job_title": "Talent Acquisition Manager at Acme Corp", "profile_url": "https://www.linkedin.com/in/jane-doe", "profile_urn": "urn:li:fsd_profile:ACoAAB1x2y3z", "profile_picture": "https://media.licdn.com/dms/image/v2/.../800_800.jpg", "connection_level": "2nd degree" } ] }, "metadata": { "action": "get", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-11-14T12:29:35.723489" } } ``` ```json 200 (get_apply_form) theme={null} { "success": true, "data": { "linkedin_job_id": "4178681638", "job_url": "https://www.linkedin.com/jobs/view/4178681638/", "can_apply": true, "already_applied": false, "unsupported_questions": [], "questions": [ { "question_id": "ea.q::32647306348::EMAIL::email", "category": "EMAIL", "label": "Email address", "type": "text", "pattern": null, "value": "jane@example.com", "supported": true }, { "question_id": "ea.q::32647306372::UNKNOWN::value_0_0", "category": "UNKNOWN", "label": "How many years of experience do you have in sales?", "type": "text", "pattern": "^[0-9]+$", "value": null, "supported": true } ] }, "metadata": { "action": "get_apply_form", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-11-14T14:10:02.118402" } } ``` # List API Logs Source: https://docs.linkupapi.com/api-reference/v2/logs/list-logs GET /v2/logs Browse your API call history, one entry per request Every V2 call is logged: action, LinkedIn account used, credits consumed, status and error message. Logs are tied to your user, so they survive an API key rotation. Served from our store: **no LinkedIn traffic** and **no credits consumed**. Paginated, newest first, capped at 200 rows per page. ### Header Parameters **x-api-key** `string` *required* Your API key ### Query Parameters **limit** `integer` (default: 50) Number of rows per page. Between 1 and 200. **offset** `integer` (default: 0) Number of rows to skip. **action** `string` Only calls of this action, e.g. `invite`, `send`, `search_people`. Same names as the `metadata.action` of each response. **account_id** `string` Only calls made with this LinkedIn account. **status** `string` `success` or `error`. **date_from** `string` ISO date (`YYYY-MM-DD`) or datetime. Only calls at or after this moment. **date_to** `string` ISO date or datetime. A date-only value is **inclusive** of that whole day. ### Response **success** `boolean` Whether the request was successful **data** `object` **Properties** **items** `array` Log entries, newest first **Log Entry** **action** `string` The action called **account_id** `string` LinkedIn account used. `null` for calls without an account (email enrichment, account management) **credits_consumed** `number` Credits charged for this call **status** `string` `success` or `error` **error_message** `string` Present on errors only **created_at** `string` ISO 8601 timestamp (UTC) **total** `integer` Total number of rows matching the filters **limit** `integer` Page size used **offset** `integer` Offset used ```json Success Response theme={null} { "success": true, "data": { "items": [ { "user_id": "6791f88f4db9c32ae63eadad", "action": "invite", "account_id": "69c127c37cae0494dd827286", "credits_consumed": 1, "status": "success", "created_at": "2025-01-15T10:29:41.512000" }, { "user_id": "6791f88f4db9c32ae63eadad", "action": "check_inmail_seat", "account_id": "6aaba8609d428bee16115d50", "credits_consumed": 0, "status": "error", "created_at": "2025-01-15T09:49:18.489000", "error_message": "Account not found" } ], "total": 23729, "limit": 2, "offset": 0 }, "metadata": { "action": "list_logs", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Error — Invalid limit theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "query -> limit: Input should be less than or equal to 200" }, "metadata": { "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ### Notes * This endpoint does **not** consume any credits * Filters combine: `?account_id=…&action=list_inbox&status=error` returns only the failed inbox reads of that account * `GET /v2/logs/stats` returns the same history aggregated: `total_calls`, `total_credits`, `by_account` and `by_action` (calls, successes, errors, credits). Accepts `account_id`, `date_from`, `date_to`; with `account_id`, `by_action` is the breakdown of that account * `GET /v2/logs/export` returns the same rows as a CSV file, same filters, no pagination # MCP Setup Source: https://docs.linkupapi.com/api-reference/v2/mcp-setup Connect LinkupAPI to Claude, ChatGPT, Gemini, Cursor, or any MCP-compatible LLM in under 2 minutes. ## What is MCP? The **Model Context Protocol (MCP)** lets LLMs call LinkupAPI directly — all social platform and B2B intelligence tools become native capabilities of your AI assistant. ## Endpoint ``` https://mcp.linkupapi.com/mcp ``` Two ways to authenticate: * **OAuth 2.1** (recommended) — approve access from the LinkupAPI dashboard, no key to paste. Supported by Claude, ChatGPT, Cursor, Gemini, VS Code, and most modern MCP clients. * **API key** — pass your key via the `x-api-key` header. Works everywhere, useful for headless setups or clients without OAuth. Get your API key at [app.linkupapi.com](https://app.linkupapi.com). ## Claude (Desktop / Code) ### Option 1 — OAuth (recommended) ```bash theme={null} claude mcp add --transport http linkupapi https://mcp.linkupapi.com/mcp ``` On first use, Claude opens `app.linkupapi.com/mcp/authorize` in your browser. Sign in and click **Authorize** — Claude is connected. ### Option 2 — API key ```bash theme={null} claude mcp add --transport http linkupapi https://mcp.linkupapi.com/mcp --header "x-api-key: YOUR_API_KEY" ``` Restart Claude — all LinkupAPI tools are now available. ## ChatGPT (Custom Connectors) In ChatGPT → **Settings → Connectors → Add custom connector**: * **Name:** LinkupAPI * **Server URL:** `https://mcp.linkupapi.com/mcp` * **Authentication:** choose **OAuth** to authorize from the dashboard, or **Custom header** with `x-api-key: YOUR_API_KEY` Save and enable the connector in your chat. ## Cursor Add to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project): ```json theme={null} { "mcpServers": { "linkupapi": { "url": "https://mcp.linkupapi.com/mcp" } } } ``` Cursor auto-discovers OAuth on first use and opens the LinkupAPI authorize page. To skip OAuth and use an API key, add `"headers": { "x-api-key": "YOUR_API_KEY" }`. ## Gemini (gemini-cli / Gemini Code Assist) Add to `~/.gemini/settings.json`: ```json theme={null} { "mcpServers": { "linkupapi": { "httpUrl": "https://mcp.linkupapi.com/mcp" } } } ``` Restart Gemini — it triggers the OAuth flow automatically. For API key auth, add `"headers": { "x-api-key": "YOUR_API_KEY" }`. ## VS Code (GitHub Copilot) Add to `.vscode/mcp.json`: ```json theme={null} { "servers": { "linkupapi": { "type": "http", "url": "https://mcp.linkupapi.com/mcp" } } } ``` Click **Auth** above the server entry to trigger OAuth in your browser. Tokens are stored in the OS keychain. ## Windsurf / other clients without OAuth Windsurf's Cascade doesn't implement the MCP OAuth flow natively. Use API key auth: ```json theme={null} { "mcpServers": { "linkupapi": { "url": "https://mcp.linkupapi.com/mcp", "transport": "http", "headers": { "x-api-key": "YOUR_API_KEY" } } } } ``` Or wrap the server with [`mcp-remote`](https://github.com/geelen/mcp-remote) to get OAuth via a stdio bridge. ## Verify it works Ask your LLM: *"Validate the email [elon.musk@tesla.com](mailto:elon.musk@tesla.com) using LinkupAPI"*. It should call the `validate_email` tool and return a result. ## Support Issues? Reach us at [support@linkupapi.com](mailto:support@linkupapi.com) or via the [dashboard support page](https://app.linkupapi.com/support). # Balance Source: https://docs.linkupapi.com/api-reference/v2/messages/balance POST /v2/balance Get an account's remaining premium messaging credits (InMail). ## Overview Returns the remaining **InMail credits** for an account's premium seat. > [!NOTE] > > This endpoint costs **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. > [!NOTE] > > This is separate from your account credit balance (see [Credits](/api-reference/v2/credits/get-balance)) — it reports the credits available on the connected premium seat. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to query. Must have a premium seat (e.g. Sales Nav). **action** `string` *required* Must be `"get"`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **product** `string` The premium product the balance belongs to (e.g. `sales_nav`). **inmail_credits** `integer` Number of InMail credits currently available on the seat. ```json 200 theme={null} { "success": true, "data": { "product": "sales_nav", "inmail_credits": 150 }, "metadata": { "action": "get", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 422 (no premium seat) theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "No Sales Nav license found for this account", "sub_code": "NO_SALES_NAV_SEAT" }, "metadata": { "action": "get", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Manage LinkedIn Messaging Source: https://docs.linkupapi.com/api-reference/v2/messages/build-inbox Show an account’s LinkedIn inbox in your product: three ways You connect an account and want its LinkedIn inbox inside your product. Pick the approach that matches how your product stores data. | | Managed inbox (on request) | On-demand + cache | Full sync (storage) | | - | - | - | - | | You store | Nothing | What your users opened | Every message | | History comes from | `list_inbox` / `get_conversation`, answered by LinkupAPI | `list_inbox` / `get_conversation`, when needed | One [`/sync`](/api-reference/v2/accounts/sync-inbox), pushed to your webhook | | New messages | Already in `list_inbox` / `get_conversation` (webhooks optional) | Real-time webhooks | Real-time webhooks | | Best for | A unibox without its own message storage | Showing an inbox, light integrations | Search, analytics, a CRM that owns its data | ## 1. Managed inbox > [!NOTE] > > **Available on request.** Email [support@linkupapi.com](mailto:support@linkupapi.com) with your API key: we switch it to managed inbox. LinkupAPI keeps the account's inbox on its side. You store nothing: read it with [`list_inbox`](/api-reference/v2/messages/list-inbox) and [`get_conversation`](/api-reference/v2/messages/get-conversation) whenever you need it — same parameters, same response. * Reads are served from LinkupAPI, not LinkedIn: call `list_inbox` and `get_conversation` as often as you need, without worrying about LinkedIn rate limits. * Holds the 100 most recent conversations with their latest messages, kept up to date in real time (new messages, read status, reactions, edits). * Older conversations and messages are read from LinkedIn transparently: paginate with `cursor` / `next_cursor` as usual. * Ready about 20 minutes after an account is switched on. * Covers the classic inbox and the Sales Nav and Recruiter mailboxes (`sales_nav: true` / `recruiter: true`). ## 2. On-demand with a cache Nothing to import. You read LinkedIn when a user looks at something, and the webhook keeps what you cached up to date. 1. **Inbox screen** — [`list_inbox`](/api-reference/v2/messages/list-inbox), paginated with `cursor`. To refresh it, pass `since` (your last refresh, in ms): you only get the conversations that moved. 2. **Opening a conversation** — [`get_conversation`](/api-reference/v2/messages/get-conversation) with `count` (e.g. 25). When the user scrolls up, call it again with the returned `next_cursor` to load older messages. 3. **New messages** — a [webhook](/api-reference/v2/webhooks/introduction) subscribed to messages, with `message_type: "all"` to also get what the account sends. Append each `message` event to the conversation you cached, keyed by `metadata.conversation_urn`. ## 3. Full sync into your storage You keep every message in your database. Import the history once, then let real time take over — everything arrives through **the same webhook, in the same format**. 1. **Create the webhook** (`events`: `all` or `message_received`, `message_type: "all"`). 2. **Call [`POST /v2/accounts/{account_id}/sync`](/api-reference/v2/accounts/sync-inbox)** right after connecting the account. LinkupAPI reads the inbox in the background and posts every message to your webhook, conversation by conversation. 3. **Real time** continues on the same webhook as soon as the account is connected. Messages delivered by real time are never sent again by the sync. A sync POST carries up to 25 messages of one conversation under `events`. **Each item is exactly the `event` object of a real-time message webhook**, so one parser handles both: ```json Sync webhook (several messages) theme={null} { "event_id": "6ae8a00905a1e2341aadcce0", "account_id": "6a7705f479d5cb9de0687ae0", "account_name": "your.email@example.com", "platform": "linkedin", "sync_id": "6ae89fc905a1e2341aadccda", "catch_up": true, "events": [ { "type": "message", "inbox": "classic", "message_text": "Hi John, thanks for connecting!", "direction": "outbound", "sender": { "name": "Your Name", "profile_url": "https://www.linkedin.com/in/ACoAAD…", "is_self_sent": true }, "conversation": { "participants": [ … ], "is_group_chat": false, "unread_count": 0 }, "metadata": { "entity_urn": "urn:li:msg_message:(…)", "conversation_urn": "urn:li:msg_conversation:(…)", "delivered_at": 1793518874708 }, "attachments": [], "has_attachments": false, "mentions": [], "message_type": "TEXT" }, { "type": "message", "direction": "inbound", "message_text": "Hey! Glad to connect.", … } ], "timestamp": "2026-11-02T14:41:12.204118" } ``` ```json Real-time webhook (one message) theme={null} { "event_id": "6ae8b12c43dbdad51c2e7b02", "account_id": "6a7705f479d5cb9de0687ae0", "platform": "linkedin", "event": { "type": "message", "inbox": "classic", "message_text": "…", "direction": "inbound", … }, "timestamp": "2026-11-02T15:02:40.118230" } ``` One line normalizes both: ```js Node.js theme={null} app.post("/webhooks/linkup", (req, res) => { const items = req.body.events ?? [req.body.event]; // sync = several, real time = one for (const event of items) handleMessage(event, req.body); res.sendStatus(200); }); ``` ```python Python theme={null} items = body.get("events") or [body["event"]] # sync = several, real time = one for event in items: handle_message(event, body) ``` > [!WARNING] > > Synced messages can be months old. If you run automations on incoming messages (auto-replies, sequences stopping on a reply), skip the ones carrying `sync_id` or `catch_up: true`. ## All approaches: nothing is lost If the real-time connection of an account is interrupted (network, proxy, reconnection), LinkupAPI catches up the messages of the gap automatically and delivers them to your webhook as normal `message` events with a top-level `catch_up: true`. # Check Numbers Source: https://docs.linkupapi.com/api-reference/v2/messages/check-numbers POST /v2/messages Check which phone numbers are on WhatsApp. ## Overview Tells which phone numbers have WhatsApp, from a connected **WhatsApp** account. Nothing is sent to them. > [!NOTE] > > This endpoint consumes **1 credit** per call (up to 50 numbers). Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* A connected WhatsApp account. **action** `string` *required* Must be `"check_numbers"`. **params** `object` *required* **params properties** **phone_numbers** `string[]` *required* Up to 50 numbers in international format, e.g. `+33612345678`. ```json Request theme={null} { "account_id": "your-whatsapp-account-id", "action": "check_numbers", "params": { "phone_numbers": ["+33612345678", "+33600000000"] } } ``` ```json 200 theme={null} { "success": true, "data": { "results": [ { "phone_number": "+33612345678", "on_whatsapp": true, "conversation_id": "33612345678@s.whatsapp.net" }, { "phone_number": "+33600000000", "on_whatsapp": false, "conversation_id": null } ], "total_results": 2 }, "metadata": { "action": "check_numbers", "account_id": "your-whatsapp-account-id", "credits_consumed": 1, "timestamp": "2026-09-26T15:40:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "At most 50 phone numbers per call" }, "metadata": { "action": "check_numbers", "account_id": "your-whatsapp-account-id", "credits_consumed": 0, "timestamp": "2026-09-26T15:40:00Z" } } ``` # Download Attachment Source: https://docs.linkupapi.com/api-reference/v2/messages/download-attachment GET /v2/messages/attachment Download the bytes of a message attachment. ## Overview Returns the raw file for an attachment received in a message — on **LinkedIn** (classic messaging and the Recruiter mailbox), **email** (Gmail / Outlook) and **WhatsApp** accounts. LinkedIn's own media URL requires the account session and its signature expires, so this endpoint re-resolves it on demand; for email the bytes are fetched over the mailbox API. For LinkedIn, every attachment in a webhook payload (and in a Recruiter [Get Conversation](/api-reference/v2/messages/get-conversation)) already carries a ready-to-call `download_url` — see [Webhooks Introduction](/api-reference/v2/webhooks/introduction). For email, use the `attachments[]` from [Get Conversation](/api-reference/v2/messages/get-conversation). You still send your `x-api-key` header. > [!NOTE] > > This endpoint costs **1 credit** per successful download. Nothing is stored on our side. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The account the message belongs to. **conversation_id** `string` **(LinkedIn, classic messaging)** The conversation URN, from `event.metadata.conversation_urn`. **asset_urn** `string` **(LinkedIn)** The attachment identifier, from `attachments[].asset_urn`. **message_id** `string` **(Email + WhatsApp)** The id of the message carrying the attachment (`attachments[].message_id`). **(LinkedIn Recruiter)** The message URN (`urn:li:ts_msg_message:…`): `event.metadata.entity_urn` in a webhook, `messages[].entity_urn` in Get Conversation. A Recruiter file is signed per message, so it takes `message_id` instead of `conversation_id`, with `account_id` set to the Recruiter seat. **attachment_id** `string` **(Email)** The attachment id (`attachments[].attachment_id`). **filename** `string` **(Email + LinkedIn Recruiter)** Optional filename for the download. ## Response On success, the raw file with its own `Content-Type` (and `Content-Disposition` when a filename is known) — not the usual JSON envelope. On failure, the standard V2 error envelope: | Code | Meaning | | - | - | | `INSUFFICIENT_CREDITS` | Not enough credits. | | `ACCOUNT_INACTIVE` | The account is disconnected — re-authenticate it. On WhatsApp, `sub_code` `NOT_CONNECTED` is a reconnection: retry later. | | `INVALID_PARAMS` | Attachment not found: the message was deleted, or `conversation_id` / `message_id` / `asset_urn` is wrong. | ```bash cURL theme={null} curl -X GET "https://api.linkupapi.com/v2/messages/attachment?account_id=ACCOUNT_ID&conversation_id=CONVERSATION_URN&asset_urn=ASSET_URN" \ -H "x-api-key: YOUR_API_KEY" \ --output attachment.pdf ``` # Get Conversation Source: https://docs.linkupapi.com/api-reference/v2/messages/get-conversation POST /v2/messages Retrieve messages from a specific conversation. ## Overview Returns messages from a specific conversation, ordered from most recent to oldest. Identify the conversation by `conversation_id` or by passing a `profile_url` (the conversation with that user is resolved automatically). Pagination is **cursor-based** — pass the `next_cursor` returned by a previous call to fetch older messages. > [!NOTE] > > This endpoint consumes **1 credit per 10 messages** returned. Ignore this if you're on per-seat pricing: usage is unlimited. > [!NOTE] > > For an **email** mailbox, pass the `conversation_id` from [List Inbox](/api-reference/v2/messages/list-inbox#email-inbox) to fetch the whole thread. The response keeps the same shape (`messages[]`, `total_message_count`, `next_cursor`), each email mapped to a message — `sender_info` carries `{ name, email, is_me }`, and each message adds `id` (provider message id), `subject`, `message_id`, and `has_attachments` / `attachments[]` (`{ filename, mime_type, size, attachment_id, message_id }`, downloadable via the [attachment endpoint](/api-reference/v2/messages/manage-emails#download-attachment)). **Gmail** and **Outlook** are supported; generic IMAP falls back to the inbox listing. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_conversation"`. **params** `object` *required* **params properties** **conversation_id** `string` Unique identifier of the conversation, as returned by other endpoints. Treat it as an opaque string and pass it back exactly as returned. **Required if `profile_url` is not provided.** **profile_url** `string` URL of the other participant's profile on the connected platform. When provided, the conversation with this user is resolved automatically. **Required if `conversation_id` is not provided.** **phone_number** `string` **(WhatsApp + iMessage)** The contact's number, instead of `conversation_id`. On iMessage, `conversation_id` is the contact's number, Apple ID email, or `group:` for a group. **count** `integer` (default: 10) Number of messages to return. Defaults to `10`. **cursor** `string` Cursor returned by a previous response as `data.next_cursor`. Omit for the first page (most recent messages). **mark_as_read** `boolean` `true` marks the conversation as read on LinkedIn after fetching it, `false` marks it as unread. Omit to leave the read state unchanged. Not available with `sales_nav`. On iMessage, the contact also sees "Read" when the conversation was active in the last 5 minutes. **sales_nav** `boolean` (default: false) Read a **Sales Nav** thread instead of a classic conversation. See [Sales Nav conversations](#sales-nav-conversations) below. **recruiter** `boolean` (default: false) Read a **Recruiter** thread. See [Recruiter conversations](#recruiter-conversations) below. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **total_message_count** `integer` Total number of messages in the conversation (across all pages). **unread_count** `integer` Number of unread messages in the conversation, as it was before this call. **marked_as_read** `boolean` Read state applied when `mark_as_read` was sent. If LinkedIn refused the change, `mark_as_read_error` is returned instead and the messages are still delivered. **last_seen_message** `boolean` `true` when the most recent message in this batch has been read by the recipient. Classic messages only: LinkedIn has no read receipts on Sales Nav or Recruiter, so their threads never say whether the recipient read a message. **last_seen_at** `integer` Unix epoch timestamp in **milliseconds** when the recipient last read the conversation. Omitted if no read receipt is available. **messages** `array` Messages from the conversation, sorted **most recent first**. **message properties** **text** `string` Plain-text body of the message. **timestamp** `integer` Unix epoch timestamp in **milliseconds** when the message was delivered. **sender** `string` Display name of the sender. **sender_info** `object` **sender_info properties** **first_name** `string` Sender's first name. **last_name** `string` Sender's last name. **profile_url** `string` Sender's public profile URL. **is_me** `boolean` `true` when the account itself sent the message. **message_type** `string` Message type. Common values: `"TEXT"`, `"INVITATION"`, `"SHARED_POST"`. **entity_urn** `string` Unique identifier of the message. Treat it as an opaque string and pass it back exactly as returned. **has_attachments** `boolean` `true` when the message carries at least one image, file, voice note, video or GIF. **attachments** `array` One entry per attachment, empty when there are none. Same shape as in [webhook message events](/api-reference/v2/webhooks/introduction): `type` (`image`, `file`, `audio`, `video`, `gif`), `url` (signed LinkedIn URL, private and short-lived), `name`, `mime_type`, `byte_size`, `asset_urn`, and `download_url` — a stable URL on [Download Attachment](/api-reference/v2/messages/download-attachment) that streams the bytes on demand (1 credit). **reactions** `array` Emoji reactions left on the message, empty when there are none: `emoji`, `count`, `first_reacted_at` (epoch ms), `viewer_reacted` (`true` when the connected account reacted). **reply_to** `object` Present when the message quotes an earlier one (Reply action): `message_text`, `sender_name`, `sender_profile_url`, `sender_urn`, `timestamp` (epoch ms) and `entity_urn` of the quoted message, reusable as `quoted_message_id` in [Send Message](/api-reference/v2/messages/send). `null` otherwise. **mentions** `array` Members tagged with `@` in `text`, empty when nobody is tagged: `name`, `member_urn`, `profile_url`, `start`, `length` (offsets in `text`, counted like JavaScript strings). Same shape as in [webhook message events](/api-reference/v2/webhooks/introduction). **next_cursor** `string` Cursor (epoch-ms timestamp of the oldest message in this batch) to send as `cursor` in the next request to fetch older messages. Omitted when there are no more messages. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_conversation"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 messages). **timestamp** `string` ISO 8601 timestamp of the response. ## WhatsApp conversations Each message also has `id` (the `message_id` for react / edit / delete / forward), `edited`, `deleted` and `reactions`: one entry per person, `{ "emoji": "👍", "timestamp": 1793787663121, "sender": { "name", "phone_number", "jid", "is_me" } }`. ## Sales Nav conversations Set `sales_nav: true` and pass the Sales Nav **thread id** — from [List Inbox](/api-reference/v2/messages/list-inbox) with `sales_nav: true`, or the `threadId` returned when the InMail was sent. `profile_url` is not supported, so `conversation_id` is required. Messages keep the classic shape and order (newest first), plus: * `sender_info.is_me` and `sender_info.recipient_urn` * `subject` and `attachments`, only when present — attachments use the same shape as in [webhook message events](/api-reference/v2/webhooks/introduction), fetched via [Download Attachment](/api-reference/v2/messages/download-attachment) * `content_flag` — `DELETED` when the message was deleted; `text` is then empty * `edited_at` — only on edited messages * `message_type`: `INMAIL`, `INMAIL_ACCEPT`, `INMAIL_REPLY`, `MESSAGE` `last_seen_message` is replaced by `conversation_id`, `type`, `archived` and `participants` (everyone but you). > [!WARNING] > > Sales Nav has no message cursor: a thread returns its `count` most recent messages and never issues a `next_cursor` (`cursor` is ignored). To read further back, raise `count` — compare it with `total_message_count` to know whether you have the whole thread. ```json 200 theme={null} { "success": true, "data": { "total_message_count": 55, "unread_count": 0, "last_seen_message": true, "last_seen_at": 1777147641366, "messages": [ { "text": "Sounds good, talk soon!", "timestamp": 1777147641366, "sender": "Jane Doe", "sender_info": { "first_name": "Jane", "last_name": "Doe", "profile_url": "https://www.linkedin.com/in/jane-doe-42/", "is_me": false }, "message_type": "TEXT", "entity_urn": "urn:li:msg_message:(urn:li:fsd_profile:ACoAA...,2-MTc3NzE0...)", "has_attachments": false, "attachments": [], "reactions": [ { "emoji": "👍", "count": 1, "first_reacted_at": 1777147702118, "viewer_reacted": true } ], "reply_to": { "message_text": "Can we talk Thursday?", "sender_name": "John Smith", "sender_profile_url": "https://www.linkedin.com/in/john-smith-99/", "sender_urn": "urn:li:fsd_profile:ACoAA...", "timestamp": 1777146285823, "entity_urn": "urn:li:msg_message:(urn:li:fsd_profile:ACoAA...,2-MTc3NzE0NjI4...)" } }, { "text": "", "timestamp": 1777146492678, "sender": "John Smith", "sender_info": { "first_name": "John", "last_name": "Smith", "profile_url": "https://www.linkedin.com/in/john-smith-99/", "is_me": true }, "message_type": "MEDIA", "entity_urn": "urn:li:msg_message:(urn:li:fsd_profile:ACoAA...,2-MTc3NzE0...)", "has_attachments": true, "attachments": [ { "type": "file", "url": "https://www.linkedin.com/dms/prv/document/...", "name": "proposal.pdf", "mime_type": "application/pdf", "byte_size": 184320, "asset_urn": "urn:li:digitalmediaAsset:D4E06AQ...", "download_url": "https://api.linkupapi.com/v2/messages/attachment?account_id=...&conversation_id=...&asset_urn=..." } ], "reactions": [], "reply_to": null, "mentions": [] } ], "next_cursor": "1777146285823" }, "metadata": { "action": "get_conversation", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json Success (Sales Nav) theme={null} { "success": true, "data": { "conversation_id": "2-OTQwMTJlODEtOTUxMy00NGNlLWIyNmQtMDJjYTU4MmQyMTcxXzEwMA==", "total_message_count": 8, "unread_count": 0, "archived": false, "type": "inmail", "participants": [ { "name": "Jessica Jensen", "first_name": "Jessica", "last_name": "Jensen", "profile_url": "https://www.linkedin.com/in/ACwAAA...", "sales_nav_url": "https://www.linkedin.com/sales/lead/ACwAAA...", "recipient_urn": "urn:li:fs_salesProfile:(ACwAAA...,NAME_SEARCH,JUf-)", "profile_picture": "https://media.licdn.com/...", "connection_level": "2", "is_me": false } ], "messages": [ { "text": "Thanks for reaching out. I'd like to learn more.", "timestamp": 1785236943298, "sender": "Jessica Jensen", "sender_info": { "first_name": "Jessica", "last_name": "Jensen", "profile_url": "https://www.linkedin.com/in/ACwAAA...", "recipient_urn": "urn:li:fs_salesProfile:(ACwAAA...,NAME_SEARCH,JUf-)", "is_me": false }, "message_type": "INMAIL_ACCEPT", "entity_urn": "2-MTc4NTIzNjk0MzI5OGI1ODI2Ni0xMDAm..." }, { "text": "Hi Jessica — quick question about your team's stack.", "timestamp": 1785231247240, "sender": "Your Name", "sender_info": { "first_name": "Your", "last_name": "Name", "profile_url": "https://www.linkedin.com/in/ACwAADx...", "recipient_urn": "urn:li:fs_salesProfile:(ACwAADx...,NAME_SEARCH,X3dd)", "is_me": true }, "message_type": "INMAIL", "entity_urn": "2-MTc4NTIzMTI0NzI0MGI5MDM1My0xMDAm...", "subject": "Quick question" } ] }, "metadata": { "action": "get_conversation", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-28T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Either conversation_id or profile_url must be provided" }, "metadata": { "action": "get_conversation", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` ## Recruiter conversations Set `recruiter: true`, pass the thread's `conversation_id` — from [List Inbox](/api-reference/v2/messages/list-inbox#recruiter-inbox) with `recruiter: true`, or returned when the InMail was sent. * paging with `count` + `offset` (no cursor) * `mark_as_read` works as above * each message: `text`, `time`, `message_type`, `state` and `sender` (`name`, `profile_url`, `recipient_urn`, `is_me`); `subject`, `reply_status` and `attachments` when LinkedIn has them (each attachment has `url: null` and a `download_url` for [Download Attachment](/api-reference/v2/messages/download-attachment)) * the thread: `conversation_id`, `conversation_urn`, `type`, `participants`, `total_message_count` # List Inbox Source: https://docs.linkupapi.com/api-reference/v2/messages/list-inbox POST /v2/messages Retrieve a list of conversations from the inbox. ## Overview Returns a paginated list of conversations from the inbox. Filter by category and paginate with the `next_cursor` value. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. The platform returns up to **25 conversations per internal request**, so larger `total_results` values trigger multiple upstream calls automatically. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"list_inbox"`. **params** `object` **params properties** **count** `integer` (default: 10) Maximum number of conversations to return. Defaults to `10`. **category** `string` (default: INBOX) Filter conversations by category. One of: `"INBOX"`, `"UNREAD"`, `"MY_CONNECTIONS"`, `"INMAIL"`, `"STARRED"`. Defaults to `"INBOX"`. **cursor** `string` Cursor returned by a previous response as `data.next_cursor`. Omit for the first page. **since** `integer` **(LinkedIn)** Epoch timestamp in **milliseconds**. Only returns the conversations that moved since then, 100 per page, with `since` and `truncated` in `data`. When `truncated` is `true`, call again with the same `since` and the returned `next_cursor` as `cursor` (classic and Sales Nav) or `next_offset` as `offset` (Recruiter), until `truncated` is `false`. Works on the classic, Sales Nav and Recruiter inboxes — use your last refresh time to update a cached inbox. **sales_nav** `boolean` (default: false) Read the **Sales Nav** inbox instead of the classic one. See [Sales Nav inbox](#sales-nav-inbox) below. **recruiter** `boolean` (default: false) Read the **Recruiter** mailbox. See [Recruiter inbox](#recruiter-inbox) below. **unread_only** `boolean` (default: false) **(Email)** Only return unread emails. > [!NOTE] > > Works for **email** mailboxes too — the response keeps the same shape (`conversations` / `total_results`), each email mapped to a conversation. See [Email inbox](#email-inbox) below. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **conversations** `array` List of conversation objects. **conversation properties** **conversation_id** `string` Unique identifier of the conversation. Treat it as an opaque string and pass it back exactly as returned. **participant** `object` The other side of the conversation. Can be a member, a company page, or — for notes-to-self — your own profile. In a group conversation, one of its members: read `participants` for all of them. **participant properties** **name** `string` Display name (member full name or company name). **headline** `string` Headline (or company tagline if `is_organization`). **profile_url** `string` Public profile URL (or company page URL if `is_organization`). **profile_picture** `string` Profile picture URL (or company logo if `is_organization`). **is_organization** `boolean` Present and `true` when the participant is a company page (e.g. sponsored premium direct messages, brand outreach). Absent for human members. **last_message** `object` The most recent message in the conversation. **last_message properties** **text** `string` Plain-text content of the message. Empty when the message is only an attachment. **has_attachments** `boolean` Present and `true` when the last message is only an attachment (image, file, voice note). Read it with [Get conversation](/api-reference/v2/messages/get-conversation). **time** `integer` Unix epoch timestamp in **milliseconds** when the message was sent. **sender** `object` Author of the last message. **sender properties** **name** `string` Display name of the sender. **headline** `string` Headline of the sender. **profile_url** `string` Public profile URL of the sender. **profile_picture** `string` URL of the sender's profile picture. **is_me** `boolean` `true` when the sender is the authenticated account. **unread** `integer` Number of unread messages in the conversation. `0` when fully read. **type** `string` Conversation type. Common values: `"normal"`, `"inmail"`, `"Sponsored"`. **is_group_chat** `boolean` Present and `true` on a group conversation, together with `title` and `participants`. Absent on a one-to-one conversation. **title** `string` Name of the group, `null` when it has none. Group conversations only. **participants** `array` Every member of the group except the authenticated account, each with the same properties as `participant`. Group conversations only. **total_results** `integer` Number of conversations returned in this response. **next_cursor** `string` Cursor to send as `next_cursor` in the next request to resume pagination. `null` when the end is reached. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"list_inbox"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ## WhatsApp inbox Each conversation also has `is_group`, `archived`, `pinned` and `muted_until` (Unix ms, `-1` = always, `null` = not muted). Pass `archived: false` to leave archived chats out, `archived: true` to list only them. ## Sales Nav inbox InMail threads live in a separate store and never appear in the classic inbox. Set `sales_nav: true` to read them. Same envelope and paging, with: * `category`: `INBOX` (default), `UNREAD`, `ARCHIVED`, or `SENT` (threads where the seat sent the last message, e.g. InMails awaiting a reply) * `conversation_id` = the Sales Nav **thread id**, also returned as `threadId` by [Send Message](/api-reference/v2/messages/send). Only usable with `sales_nav: true` — the two id spaces are not interchangeable. * `participant` / `last_message.sender` add `recipient_urn`, `sales_nav_url`, `connection_level`, `first_name`, `last_name`; no `headline` * extra: `total_message_count`, `archived`, `last_message.subject` ```json 200 theme={null} { "success": true, "data": { "conversations": [ { "conversation_id": "urn:li:msg_conversation:(urn:li:fsd_profile:ACoAA...,2-MDZiY2ExOTgtM2NjNy00OTU4LTgyNjUtZWFlMmIwZjM1NTlmXzEwMA==)", "participant": { "name": "Jane Doe", "headline": "Founder at Acme Corp", "profile_url": "https://www.linkedin.com/in/jane-doe-42", "profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg" }, "last_message": { "text": "Sounds good, talk soon!", "time": 1777147641366, "sender": { "name": "Jane Doe", "headline": "Founder at Acme Corp", "profile_url": "https://www.linkedin.com/in/jane-doe-42", "profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg", "is_me": false } }, "unread": 0, "type": "normal" } ], "total_results": 1, "next_cursor": "REVTQ0VORElORyYxNzc0OTU4MDE2NjQzJjItWlRFMk1qazBaV1F0Wm1JMFlpMDBNR1k1TFRrMlptTXRaRGcwWVRjM05qUTJZakExWHpFd01BPT0=" }, "metadata": { "action": "list_inbox", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json Success (Sales Nav) theme={null} { "success": true, "data": { "conversations": [ { "conversation_id": "2-OTQwMTJlODEtOTUxMy00NGNlLWIyNmQtMDJjYTU4MmQyMTcxXzEwMA==", "participant": { "name": "Jessica Jensen", "first_name": "Jessica", "last_name": "Jensen", "profile_url": "https://www.linkedin.com/in/ACwAAA...", "sales_nav_url": "https://www.linkedin.com/sales/lead/ACwAAA...", "recipient_urn": "urn:li:fs_salesProfile:(ACwAAA...,NAME_SEARCH,JUf-)", "profile_picture": "https://media.licdn.com/...", "connection_level": "2", "is_me": false }, "last_message": { "text": "Thanks for reaching out. I'd like to learn more.", "time": 1785236943298, "subject": "Quick question", "sender": { "name": "Jessica Jensen", "recipient_urn": "urn:li:fs_salesProfile:(ACwAAA...,NAME_SEARCH,JUf-)", "is_me": false } }, "unread": 0, "type": "inmail", "total_message_count": 8, "archived": false } ], "total_results": 1, "next_cursor": "1785228162040" }, "metadata": { "action": "list_inbox", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-28T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "account_id or account_ids is required" }, "metadata": { "action": "list_inbox", "account_id": null, "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` ## Recruiter inbox Recruiter InMails live in a third, separate store. Set `recruiter: true`. Same envelope, with: * `folder`: `INBOX` (default), `UNREAD`, `AWAITING_REPLY`, `ACCEPTED`, `ACCEPTED_BUT_NOT_RESPONDED`, `DECLINED`, `ARCHIVED`, `CANCELED`, `SCHEDULED`. Sent InMails are in `AWAITING_REPLY` (no answer yet), `ACCEPTED` or `DECLINED`; there is no `SENT` folder. * paging with `count` + `offset` (no cursor) * `conversation_id` = the Recruiter thread id, for [Get Conversation](/api-reference/v2/messages/get-conversation#recruiter-conversations) and replies * extra: `subject`, `request_state`, `can_reply`, `archived`, `total_message_count` * `last_message` is the thread's **opening** message (the only one LinkedIn lists) — read the rest with Get Conversation ### Inbox summary `action: "inbox_summary"` returns the mailbox counters without listing it: `unread`, `awaiting_reply_unseen` and `recent_messages`. **0.1 credit**. ```json theme={null} { "account_id": "your-account-id", "action": "inbox_summary", "params": {} } ``` ## Email inbox For an [email mailbox](/api-reference/v2/accounts/login#email-mailbox), `list_inbox` returns the **same structure** (`conversations` / `total_results` / `next_cursor`) — each email is mapped to a conversation. Differences: * `conversation_id` is the thread id (Gmail) — pass it to [Get Conversation](/api-reference/v2/messages/get-conversation) to fetch the full thread. * `id` is the provider message id — use it with `mark_as_read` / `mark_as_unread` / `archive` / `trash` and attachment download. * `participant` and `last_message.sender` carry `{ name, email }` (no `profile_url` / `headline`). * `last_message` adds `subject`; `text` is the body snippet. * Extra per-item fields: `message_id`, `in_reply_to`, `is_bounce`, `has_attachments`. Also accepts `unread_only`, `label_ids` (read a folder other than INBOX — see [`list_labels`](/api-reference/v2/messages/manage-emails)), and **cursor pagination** (`cursor` in, `next_cursor` out) — same model as LinkedIn (Gmail has no offset). ```json 200 (email) theme={null} { "success": true, "data": { "conversations": [ { "conversation_id": "1a09b5fe5c04c6d6", "id": "1a09b5fe5c04c6d6", "participant": { "name": "John Doe", "email": "john@example.com" }, "last_message": { "text": "Sure, let's chat Thursday.", "subject": "Re: Quick question", "time": 1789398178000, "sender": { "name": "John Doe", "email": "john@example.com", "is_me": false } }, "unread": 1, "type": "email", "message_id": "", "in_reply_to": "<178928915191...@gmail.com>", "is_bounce": false, "has_attachments": false } ], "total_results": 1, "next_cursor": "MDA2MjQxMDE2Mzc1MTEyNDY3MzE=" }, "metadata": { "action": "list_inbox", "account_id": "your-email-account-id", "credits_consumed": 1, "timestamp": "2026-09-14T12:00:00Z" } } ``` ## Search (email) `action: "search"` searches the whole mailbox and returns the **same shape** (`conversations` / `total_results` / `next_cursor`). Pass `query` (Gmail accepts its native syntax, e.g. `from:john subject:invoice`). Works on Gmail, Outlook and IMAP. Cursor pagination applies. ```json Request theme={null} { "account_id": "your-email-account-id", "action": "search", "params": { "query": "invoice from:john", "count": 20 } } ``` # Manage Email Messaging Source: https://docs.linkupapi.com/api-reference/v2/messages/manage-emails Mark read/unread, archive, trash, labels, drafts and attachment download for email mailboxes ## Overview These actions manage a connected **email** mailbox. They run on the same [`POST /v2/messages`](/api-reference/v2/messages/send) endpoint (except attachment download, a GET). Each action costs **1 credit**. Availability: all actions work on **Gmail**, **Outlook** and **IMAP/SMTP** mailboxes. Outlook's write actions (`mark_as_read`/`mark_as_unread`, `archive`, `trash`, `create_draft`) require a mailbox connected with the `Mail.ReadWrite` scope — reconnect mailboxes added earlier. On IMAP, `archive`/`trash` move the message to the mailbox's Archive/Trash folder (best-effort per server). The `id` used below is the **provider message id** returned by [List Inbox](/api-reference/v2/messages/list-inbox#email-inbox) (`conversations[].id`) and [Get Conversation](/api-reference/v2/messages/get-conversation) (`messages[].id`). ## Read state, archive, trash | `action` | Effect | | - | - | | `mark_as_read` | Marks the message read. | | `mark_as_unread` | Marks it unread. | | `archive` | Removes it from the inbox (keeps it in All Mail / Archive). | | `trash` | Moves it to Trash. | **account_id** `string` *required* The email account. **action** `string` *required* One of `mark_as_read`, `mark_as_unread`, `archive`, `trash`. **params** `object` *required* **params properties** **id** `string` *required* The provider message id (from list_inbox / get_conversation). ```json Request theme={null} { "account_id": "your-email-account-id", "action": "mark_as_read", "params": { "id": "1a09b5fe5c04c6d6" } } ``` ```json 200 theme={null} { "success": true, "data": { "status": "success", "message_id": "1a09b5fe5c04c6d6", "unread": false }, "metadata": { "action": "mark_as_read", "account_id": "your-email-account-id", "credits_consumed": 1, "timestamp": "2026-09-14T12:00:00Z" } } ``` ## List labels `action: "list_labels"` returns the mailbox's folders/labels (id, name, type) — use a label id in `list_inbox`'s `label_ids` to read another folder. ```json 200 theme={null} { "success": true, "data": { "labels": [ { "id": "INBOX", "name": "INBOX", "type": "system" }, { "id": "Label_12", "name": "Clients", "type": "user" } ] }, "metadata": { "action": "list_labels", "account_id": "your-email-account-id", "credits_consumed": 1, "timestamp": "2026-09-14T12:00:00Z" } } ``` ## Create a draft `action: "create_draft"` saves a draft (not sent). Same body params as [Send](/api-reference/v2/messages/send#email) (`to`, `subject`, `message_text` / `html`, plus attachments via `media_*`), plus two optional ones: **params.thread_id** `string` File the draft inside an existing conversation instead of as a standalone draft: the `conversation_id` returned by `list_inbox` / `get_conversation`. When set, `to` defaults to the sender of the thread's last message and `subject` to `Re: `; pass them to override. Gmail and Outlook thread the draft natively; on IMAP the conversation id is the thread's Message-ID and is used as the `In-Reply-To` header. **params.from_email** `string` Write the draft from a send-as alias of the mailbox instead of its primary address (optional `from_name` for the display name). The alias must be configured on the mailbox: Gmail replaces an unverified alias with the primary address at send time, Outlook needs Send-As rights on it. ```json Request theme={null} { "account_id": "your-email-account-id", "action": "create_draft", "params": { "to": "prospect@example.com", "subject": "Draft", "message_text": "..." } } ``` ```json Request (reply draft in a thread, from an alias) theme={null} { "account_id": "your-email-account-id", "action": "create_draft", "params": { "thread_id": "19a2f3c4d5e6f708", "from_email": "sales@yourdomain.com", "message_text": "Following up on our call..." } } ``` ```json 200 theme={null} { "success": true, "data": { "status": "success", "draft_id": "r-5596439384536493289", "message_id": "<...@gmail.com>", "provider_message_id": "19a2f3c4d5e6f9ab", "thread_id": "19a2f3c4d5e6f708", "from_email": "sales@yourdomain.com" }, "metadata": { "action": "create_draft", "account_id": "your-email-account-id", "credits_consumed": 1, "timestamp": "2026-09-14T12:00:00Z" } } ``` `provider_message_id` is the draft message's own id (usable with `trash` to discard it) and `thread_id` its conversation: Gmail always returns both, Outlook returns them when `thread_id` was passed, IMAP returns `draft_folder` instead. `from_email` echoes the alias when one was used. ## Download attachment `GET /v2/messages/attachment` streams an attachment's bytes. For email, pass the `message_id` and `attachment_id` from a message's `attachments[]` (via [Get Conversation](/api-reference/v2/messages/get-conversation)), plus an optional `filename`. **Gmail** and **Outlook**. Costs 1 credit. **account_id** `string` *required* The email account. **message_id** `string` *required* The provider message id carrying the attachment (`attachments[].message_id`). **attachment_id** `string` *required* The attachment id (`attachments[].attachment_id`). **filename** `string` Optional filename for the download. Returns the raw file with its `Content-Type`, or the standard JSON error envelope. # Manage WhatsApp Messaging Source: https://docs.linkupapi.com/api-reference/v2/messages/manage-whatsapp Chats, groups, history and calls for WhatsApp accounts All actions run on [`POST /v2/messages`](/api-reference/v2/messages/send) with a WhatsApp `account_id`, 1 credit each. `conversation_id` is the one from [List Inbox](/api-reference/v2/messages/list-inbox) (`…@s.whatsapp.net` for a contact, `…@g.us` for a group). `list_inbox` and `get_conversation` are served from LinkupAPI's copy of the account: call them as often as you need, without worrying about WhatsApp rate limits. Reactions, edit, delete and forward: see [Send](/api-reference/v2/messages/send#react-edit-or-delete-a-message). ## Conversations Synced to the phone. | `action` | `params` | | - | - | | `archive_conversation` | `conversation_id`, `archived?` (`false` unarchives) | | `pin_conversation` | `conversation_id`, `pinned?` (`false` unpins) | | `mute_conversation` | `conversation_id`, `duration_hours?` (omitted: always), `muted?` (`false` unmutes) | | `delete_conversation` | `conversation_id` (removes it from the account's chat list only) | | `sync_history` | `conversation_id`, `count?` (max 50): fetches older messages from the phone; they show up in Get Conversation a few seconds later | ```json 200 theme={null} { "success": true, "data": { "conversation_id": "33612345678@s.whatsapp.net", "archived": false, "pinned": false, "muted_until": -1 }, "metadata": { "action": "mute_conversation", "account_id": "your-whatsapp-account-id", "credits_consumed": 1, "timestamp": "2026-11-04T10:21:03Z" } } ``` ## Groups | `action` | `params` | | - | - | | `create_group` | `name`, `participants` (phone numbers) | | `get_group` | `conversation_id` → name, description, `participants` (`phone_number`, `is_admin`, `is_me`) | | `update_group` | `conversation_id`, `name?`, `description?` | | `update_group_participants` | `conversation_id`, `participants`, `operation`: `add`, `remove`, `promote` or `demote` | | `get_group_invite_link` | `conversation_id`, `revoke?` (`true` resets the link) | | `leave_group` | `conversation_id` | `update_group_participants` returns one result per number (`success`, `reason`). Someone whose privacy settings block being added gets `reason: "privacy_settings"`: send them the invite link. Send to a group with `send` + `conversation_id`. ## Calls Calls cannot be placed or answered. Subscribe to the `call` [webhook event](/api-reference/v2/webhooks/introduction#event-types) to see incoming calls, and decline one with `reject_call` + `call_id`. # Send Message or Email Source: https://docs.linkupapi.com/api-reference/v2/messages/send POST /v2/messages Send a LinkedIn message or InMail, or an email — from a connected account. ## Overview Sends a message from a connected account. For a **LinkedIn** account it's a direct message — or a [Sales Nav InMail](#inmail) with `inmail: true` / a `recipient_urn`. For an **email** account (see [Connect a mailbox](/api-reference/v2/accounts/login#email-mailbox)) it sends an email. For a **WhatsApp** account it sends a WhatsApp message to `phone_number`. For an **iMessage** line it sends an iMessage to `phone_number` (SMS when the contact has no iMessage). The `params` depend on the account's platform — each field below is tagged **(LinkedIn)**, **(Email)**, **(WhatsApp)**, **(iMessage)**, or several. > [!NOTE] > > This endpoint consumes **1 credit** for a text message or email (**2 credits** with LinkedIn media). An InMail consumes **1 InMail credit** from the account's premium seat (separate from your API credits — see [Balance](/api-reference/v2/messages/balance)). Ignore this if you're on per-seat pricing: usage is unlimited. > [!NOTE] > > `media_link`, `media_file` and `media_path` attach **one** file (priority: `media_link` > `media_file` > `media_path`). To send **several attachments in the same message**, use `media_links` and/or `media_files` (up to 10 files per message, combinable with the single-file params). > [!NOTE] > > An audio file (`.m4a`, `.mp3`, `.wav`, `.aac`) is delivered as a **native voice note**, not a file to download. LinkedIn caps them at 1 minute. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"send"`. **params** `object` *required* **params properties** **message_text** `string` *required* **(LinkedIn + Email + WhatsApp + iMessage)** The text content. Required for LinkedIn and iMessage; for email, provide `message_text` and/or `html`; for WhatsApp, `message_text` and/or an attachment. iMessage sending rules: see [iMessage limits](/api-reference/v2/best-practices#imessage-limits). To tag someone in a LinkedIn message, use `mention_user(public_id, display_text)` (`public_id` = the slug of `linkedin.com/in/`, or the profile URL) — e.g. `"Hi, meet mention_user(williamhgates, Bill Gates)!"` is sent as `Hi, meet @Bill Gates!` with Bill Gates tagged. An unknown profile returns an error and nothing is sent. **subject** `string` **(InMail + Email + iMessage)** Subject line. On LinkedIn it applies to InMails only (ignored for standard messages, and alone it does **not** trigger an InMail); on email it's the email subject; on iMessage, a bold title above the text. **profile_url** `string` **(LinkedIn)** URL of the recipient's profile. Used for a standard message and an InMail (with `inmail: true`). Required unless you pass `recipient_urn` or `conversation_id`. **conversation_id** `string` **(LinkedIn)** Reply into an existing thread, 1:1 or group, instead of addressing a person: pass the `conversation_id` from [List Inbox](/api-reference/v2/messages/list-inbox) or a webhook event, without `profile_url`. With `sales_nav: true` it is the Sales Navigator thread id (reply inside an InMail thread, no subject needed); with `recruiter: true`, the Recruiter thread id. **inmail** `boolean` (default: false) **(LinkedIn)** Set to `true` to send an **InMail** (to a non-connection, via the premium seat) instead of a standard message. Consumes 1 InMail credit. Not needed when `recipient_urn` is a Sales Nav URN. **premium_inmail** `boolean` (default: false) **(LinkedIn)** Send an InMail with the account's **Premium** credits, without a Sales Nav seat. See [Premium InMail](#premium-inmail). **recipient_urn** `string` **(LinkedIn InMail)** The lead's `urn:li:fs_salesProfile:(...)` from the [lead search](/api-reference/v2/profiles/search-people-nav). Passing it sends an InMail. Use this **or** `profile_url` + `inmail: true`. **recruiter** `boolean` (default: false) **(LinkedIn Recruiter)** Send from the account's **Recruiter seat**. See [Recruiter InMail](#recruiter-inmail) below. **phone_number** `string` **(WhatsApp + iMessage)** Recipient number in international format, e.g. `+33612345678`. Required for a WhatsApp account. On iMessage, pass `phone_number`, an Apple ID `email`, or a group `conversation_id`. **effect** `string` **(iMessage)** Message effect: `slam`, `loud`, `gentle`, `invisibleInk`, `echo`, `spotlight`, `balloons`, `confetti`, `love`, `lasers`, `fireworks`, `shootingStar` or `celebration`. **to** `string` **(Email)** Recipient email address. Required for an email account. **html** `string` **(Email)** HTML body. Provide `html` and/or `message_text`. **reply_to** `string` **(Email)** Optional `Reply-To` address. **thread_ref** `string` **(Email)** Message-ID to reply into an existing thread. **cc** `string | string[]` **(Email)** CC recipients (a comma-separated string or an array). **bcc** `string | string[]` **(Email)** BCC recipients — hidden from the other recipients (e.g. to log a copy into a CRM). **custom_headers** `object` **(Email)** Extra `X-…` headers as a `{ name: value }` map — e.g. `{ "X-Campaign-Id": "camp-42" }` — to correlate replies/bounces back to your system. **account_ids** `string[]` **(Email)** Optional pool of your own mailbox ids to route the send across (home-court + daily limits). `sent_from` in the response tells you which was used. **media_link** `string` **(LinkedIn + Email + WhatsApp)** A publicly accessible URL to a file to attach. **media_file** `object` **(LinkedIn + Email + WhatsApp)** A base64-encoded file to attach. **media_file properties** **data** `string` *required* The base64-encoded file content. **filename** `string` *required* The filename including extension (e.g. `"document.pdf"`). **media_path** `string` **(LinkedIn + Email)** A server-side file path to a file to attach. **media_links** `string[]` **(LinkedIn + Email + WhatsApp + iMessage)** Publicly accessible URLs of files to attach — all delivered in the same message. iMessage takes `https://` URLs only, up to 10. **media_files** `object[]` **(LinkedIn + Email + WhatsApp)** Base64-encoded files to attach — same shape as `media_file` (`data`, `filename`). **voice_message** `boolean` (default: false) **(LinkedIn + WhatsApp + iMessage)** Force the attached media to be sent as a **voice note**. Only needed when the filename carries no usable extension. On iMessage, a voice note is one audio link (mp3, wav, m4a, caf, aac) with no `message_text`. **quoted_message_id** `string` Reply to a specific message (quoted above yours, like the Reply action of the app). **LinkedIn:** the message's `entity_urn` from [Get Conversation](/api-reference/v2/messages/get-conversation) or `metadata.entity_urn` of a webhook event; the thread is resolved from `conversation_id` or `profile_url`, and the quoted message must be among the last 100 of the thread. **WhatsApp:** its `id` from Get Conversation. **iMessage:** its `message_id`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` Details of the sent message. The shape differs between a LinkedIn standard message, an InMail, and an email. **standard message** **status** `string` `"success"` when the message was sent. **data** `object` **properties** **entityUrn** `string` The unique URN of the sent message entity. **conversation_id** `string` The URN of the conversation the message was sent in. **deliveredAt** `integer` Unix epoch timestamp in **milliseconds**. **InMail** **status** `string` `"success"` when the InMail was sent. **message** `string` Human-readable result, e.g. `"InMail sent"`. **recipient_urn** `string` The Sales Nav URN the InMail was sent to. **data** `object` Raw send result: `{ "value": { "threadId": "...", "messageId": "..." } }`. **email** **status** `string` `"success"` when the email was sent. **data** `object` **properties** **message_id** `string` The sent email's Message-ID. **sent_from** `string` The mailbox address the email was sent from. **esp** `string` Sending mailbox provider bucket (`google` / `outlook` / `other`). **recipient_esp** `string` Recipient's detected provider bucket. **home_court** `boolean` `true` when sender and recipient are on the same provider. **over_cap** `boolean` `true` when the mailbox is over its daily limit (the send still went out). **mailbox_health** `object` `sends_today`, `daily_limit`, `bounce_rate` for the sending mailbox. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"send"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 for text, 2 with media). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 (message) theme={null} { "success": true, "data": { "status": "success", "data": { "entityUrn": "urn:li:msg_message:(urn:li:fsd_profile:ACoAA...,2-MTc4NTI3...)", "conversation_id": "urn:li:msg_conversation:(urn:li:fsd_profile:ACoAA...,2-M2RkYWQ4...)", "deliveredAt": 1785272227840 } }, "metadata": { "action": "send", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 200 (InMail) theme={null} { "success": true, "data": { "status": "success", "message": "InMail sent", "recipient_urn": "urn:li:fs_salesProfile:(ACwAAA...,name, )", "data": { "value": { "threadId": "2-OTQwMTJlODEt...", "messageId": "2-MTc4NTIyODc1..." } } }, "metadata": { "action": "send", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 200 (email) theme={null} { "success": true, "data": { "status": "success", "data": { "message_id": "<...@gmail.com>", "sent_from": "you@company.com", "esp": "google", "recipient_esp": "other", "home_court": false, "over_cap": false, "mailbox_health": { "sends_today": 1, "daily_limit": 40, "bounce_rate": 0.0 } } }, "metadata": { "action": "send", "account_id": "your-email-account-id", "credits_consumed": 1, "timestamp": "2026-09-14T12:00:00Z" } } ``` ```json 200 (WhatsApp) theme={null} { "success": true, "data": { "status": "success", "data": { "entityUrn": "3EB05338283099EC87F1F8", "conversation_id": "33612345678@s.whatsapp.net", "deliveredAt": 1790436783000, "phone_number": "33612345678" } }, "metadata": { "action": "send", "account_id": "your-whatsapp-account-id", "credits_consumed": 1, "timestamp": "2026-09-26T15:33:03Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "message_text is required" }, "metadata": { "action": "send", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` ## React, edit or delete a message Same endpoint, classic LinkedIn messages only, 1 credit each. `message_id` is the message URN: `entity_urn` from [Get Conversation](/api-reference/v2/messages/get-conversation) or from a webhook event (a bare `2-…` id works with `conversation_id`). Only the account's own messages can be edited or deleted, within 60 minutes of sending them. | `action` | `params` | | - | - | | `react_message` | `message_id`, `emoji`, `remove?` (`true` removes the reaction) | | `edit_message` | `message_id`, `message_text` | | `delete_message` | `message_id` (unsends it for everyone) | **WhatsApp:** all three work, with the `message_id` from [Get Conversation](/api-reference/v2/messages/get-conversation) or a webhook. Edit: text messages, within 15 minutes. Delete: within about 2.5 days. `forward_message` with `message_id` + `phone_number` (or `conversation_id`) forwards a message. `typing` works too (`recording: true` shows "recording audio"). More actions in [Manage WhatsApp Messaging](/api-reference/v2/messages/manage-whatsapp). **iMessage:** `react_message` works too, with the `message_id` of the message: `emoji` is a tapback (`love`, `like`, `dislike`, `laugh`, `emphasize`, `question`) or any emoji. Not in group chats. `action: "typing"` with `conversation_id` (and `seconds`, 60 max) shows the typing indicator, in a conversation active in the last 5 minutes. ```json theme={null} { "account_id": "your-account-id", "action": "react_message", "params": { "message_id": "urn:li:msg_message:(urn:li:fsd_profile:ACoAAD...,2-MTc5...)", "emoji": "👍" } } ``` ## InMail Reaches someone you are not connected to, through the account's premium seat. Triggered by `inmail: true` or a `recipient_urn` — a `subject` alone never turns a message into an InMail. Prefer `recipient_urn` from the [lead search](/api-reference/v2/profiles/search-people-nav) when you have it. ```json theme={null} { "account_id": "your-account-id", "action": "send", "params": { "recipient_urn": "urn:li:fs_salesProfile:(...)", "subject": "Quick question", "message_text": "Hi ..." } } ``` A profile that cannot be InMailed is rejected before any credit is spent. Credits come from the seat — see [Balance](/api-reference/v2/messages/balance). ## Premium InMail `premium_inmail: true` with `profile_url`, `subject` and `message_text`: an InMail from the classic account, using its Premium credits (free to an Open Profile, even without Premium). Always opens a new conversation. Without credits, HTTP 422 with `sub_code: "NOT_ENOUGH_INMAIL_CREDIT"`; nothing is sent. ## Recruiter InMail Set `recruiter: true`. **New InMail** — `recipient_urn` (the candidate's `profile_urn` from [Search People Recruiter](/api-reference/v2/profiles/search-people-recruiter)), `subject` and `message_text`. Optional: * `project_urn` — the thread is also filed in that [project](/api-reference/v2/recruiter/projects) * `signature` — replaces the seat's own signature, appended by default **Reply** — `conversation_id` (from [List Inbox](/api-reference/v2/messages/list-inbox#recruiter-inbox)) and `message_text`. No subject. The candidate is read off the thread; pass `recipient_urn` to save that lookup. ```json theme={null} { "account_id": "your-account-id", "action": "send", "params": { "recruiter": true, "recipient_urn": "urn:li:ts_profile:AEMAA…", "subject": "Growth role in Paris", "message_text": "Hi Jane, ..." } } ``` Returns the `conversation_id` of the thread. Consumes **1 credit** plus **1 Recruiter InMail credit** when the candidate is not free to InMail (see [Check InMail](/api-reference/v2/profiles/check-inmail#recruiter)). ## Email Sending from an [email mailbox](/api-reference/v2/accounts/login#email-mailbox) uses the same `params` above — `to` + `subject` + `message_text` (and/or `html`): ```json theme={null} { "account_id": "your-email-account-id", "action": "send", "params": { "to": "prospect@example.com", "subject": "Quick question", "message_text": "Hi there, ..." } } ``` ## WhatsApp Sending from a [WhatsApp account](/api-reference/v2/accounts/login#whatsapp) uses `phone_number` + `message_text`: ```json theme={null} { "account_id": "your-whatsapp-account-id", "action": "send", "params": { "phone_number": "+33612345678", "message_text": "Hi there, ..." } } ``` A number without WhatsApp returns `CHANNEL_ERROR` (422). Check numbers first with [Check Numbers](/api-reference/v2/messages/check-numbers). # Migration from V1 to V2 Source: https://docs.linkupapi.com/api-reference/v2/migration Complete guide to migrate your LinkupAPI integration from V1.x to V2 This guide walks you through every change needed to migrate your existing V1 integration to V2. The V2 API is fully backward-compatible in terms of data — the same data is returned, just in a standardized wrapper. > [!NOTE] > > **V1 will be deprecated.** We recommend migrating to V2 as soon as possible. V1 endpoints will continue to work during the transition period, but all new features are V2-only. > [!TIP] > > A **Claude Code skill** is available in the [webapp](https://app.linkupapi.com/agent-skills) to automatically migrate your codebase from V1 to V2. Install it and run the migration directly from your terminal. ## What Changed (TL;DR) > [card] No more login_token > > V1 required a `login_token` and `country` in every request. V2 replaces this with a single `account_id`. > [card] One endpoint per category > > V1 had a different URL for each action (e.g. `/v1/profile/me`, `/v1/profile/info`). V2 uses one URL per category with an `action` field in the body. > [card] Standardized responses > > V1 responses varied between endpoints. V2 always returns `success`, `data`/`error`, and `metadata` — no more guessing the format. > [card] Proper HTTP status codes > > V1 returned 200 for most errors. V2 uses correct HTTP status codes (400, 402, 403, 404, 429, 500). ### New in V2 Only These features have **no V1 equivalent** — they are only available in V2: | Feature | Endpoint | Description | | - | - | - | | **Webhooks for invitations** | `POST /v2/webhooks` → `accepted_invitation` | Get notified in real-time when someone accepts your invitation | | **Account logs** | `GET /v2/accounts/{id}` | Monitor account status, activity, and connection health | | **Simplified account management** | `GET /v2/accounts` | List, inspect, and manage all connected accounts from a single endpoint | | **Hosted Webhooks** | `POST /v2/webhooks` (no `url`) | Built-in SSE stream + polling — no server required | | **Webhook Event Filter** | `POST /v2/webhooks` → `events` | Subscribe to specific event types only | *** ## Step-by-Step Migration ### Step 1 — Connect Your Account In V1, you obtained a `login_token` from `/v1/auth/login` and passed it in every request along with `country`. In V2, you connect your account **once** and receive a persistent `account_id`. > [tab] Option A: Fresh login > > ```json theme={null} > POST /v2/login > { > "platform": "linkedin", > "email": "you@example.com", > "password": "your_password", > "country": "FR" > } > // → { "data": { "account_id": "69c127...", "status": "connected" } } > ``` > [tab] Option B: Import existing V1 token > > ```json theme={null} > POST /v2/login > { > "platform": "linkedin", > "login_token": "your_existing_v1_token", > "country": "FR" > } > // → { "data": { "account_id": "69c127...", "status": "connected" } } > ``` Save the `account_id` — you'll use it in **all** V2 requests. You no longer need to store or manage `login_token` or `country`. > [!WARNING] > > If the response returns `"status": "checkpoint_required"`, call `POST /v2/checkpoint` with the verification code sent to your email. This replaces `POST /v1/auth/verify`. > [!NOTE] > > Re-calling `/v2/login` with an already migrated token returns the same `account_id` — the call is idempotent and free. #### Batch Migration (SaaS with many accounts) If you have hundreds of `login_token` values stored in your database, migrate them **before** changing code: 1. Add `account_id` and `migration_status` columns to your accounts table 2. Iterate all rows, call `POST /v2/login` with `{ "login_token": "...", "country": "..." }` for each 3. Handle outcomes per row: * `connected` → save `account_id`, mark migrated * error (expired token) → mark failed, user must re-auth 4. Add 0.5–2s random delay between calls 5. Switch code to use `account_id` only after batch is complete 6. Drop `login_token` / `country` columns once V2 is fully deployed *** ### Step 2 — Update Request Format Every V2 action endpoint uses the same structure: ```json theme={null} POST /v2/{category} { "account_id": "69c127c37cae0494dd827286", "action": "action_name", "params": { "key": "value" } } ``` **What to change in your code:** 1. **Remove** `login_token` and `country` from every request body 2. **Add** `account_id` at the root level 3. **Add** `action` to specify what to do 4. **Move** all other parameters inside a `params` object 5. **Rename** `linkedin_url` → `profile_url`, `message` → `message_text` (send message) 6. **Convert search filters from strings to arrays** (see below) > [tab] V1 (before) > > ```json theme={null} > POST /v1/profile/info > { > "login_token": "AQED...", > "country": "FR", > "linkedin_url": "https://www.linkedin.com/in/example" > } > ``` > [tab] V2 (after) > > ```json theme={null} > POST /v2/profiles > { > "account_id": "69c127c37cae0494dd827286", > "action": "get", > "params": { > "profile_url": "https://www.linkedin.com/in/example" > } > } > ``` #### Search Filters: Strings → Arrays In V1, multi-value search filters used semicolons or commas as separators. In V2, pass **proper arrays**. This applies to `search_people` and `search_companies` — affected parameters: `location`, `company_url`, `school_url`, `industry`, `network`, `past_company`, `sector`, `company_size`. > [tab] V1 (before) > > ```json theme={null} > { > "keyword": "CTO", > "location": "Paris;London;New York", > "network": "F,S" > } > ``` > [tab] V2 (after) > > ```json theme={null} > { > "keyword": "CTO", > "location": ["Paris", "London", "New York"], > "network": ["F", "S"] > } > ``` > [!TIP] > > Single values still work as plain strings — you only need arrays when passing multiple values. *** ### Step 3 — Update Response Parsing V1 responses had inconsistent formats across endpoints. V2 unifies everything: * Success: `{ "success": true, "data": { ... }, "metadata": { "action", "account_id", "credits_consumed", "timestamp" } }` * Error: `{ "success": false, "error": { "code": "...", "message": "..." }, "metadata": { ... } }` **What to change:** * `data["status"] == "success"` → `data["success"] == True` * Errors: use `data["error"]["code"]` and `data["error"]["message"]` * `metadata.credits_consumed` is always present — use it for credit tracking * Remove any per-endpoint parsing workarounds *** ### Step 4 — Update Error Handling V2 uses real HTTP status codes — V1 returned 200 for almost everything. | Code | HTTP Status | What To Do | | - | - | - | | `INVALID_API_KEY` | 403 | Check your API key | | `INVALID_ACCOUNT` | 404 | Call `GET /v2/accounts` to list valid IDs | | `ACCOUNT_INACTIVE` | 403 | Re-login via `POST /v2/login` (WhatsApp `NOT_CONNECTED`: retry later instead) | | `INVALID_ACTION` | 400 | Check docs for valid actions | | `INVALID_PARAMS` | 400 | Read `error.message` for details | | `RATE_LIMITED` | 429 | Implement exponential backoff | | `INSUFFICIENT_CREDITS` | 402 | Top up at [app.linkupapi.com](https://app.linkupapi.com) | | `CHANNEL_ERROR` | 422 | The platform refused the request: read `error.message`. Retrying with the same input will not help | | `INTERNAL_ERROR` | 500 | Retry after a few seconds | > [!NOTE] > > Errors caught before the request reaches the platform are free in V2; a refusal from the platform itself consumes 1 credit (see `credits_consumed`). *** ### Step 5 — Migrate Webhooks In V1, webhooks were standalone "webhook accounts" with their own `login_token`. In V2, webhooks are **configurations attached to existing accounts**. > [tab] V1 (before) > > ```json theme={null} > POST /v1/webhooks/accounts > { > "platform": "linkedin", > "login_token": "AQED...", > "webhook_url": "https://your-server.com/webhook", > "country": "FR" > } > ``` > [tab] V2 (after) > > ```json theme={null} > POST /v2/webhooks > { > "account_id": "69c127c37cae0494dd827286", > "url": "https://your-server.com/webhook", > "events": ["message_received", "accepted_invitation"] > } > ``` **Key changes:** * No more separate "webhook accounts" — reuse your existing `account_id` * `webhook_url` → `url` * Filter events with the `events` array: `["message_received", "accepted_invitation", "disconnection"]`. Read and delivery receipts (`message_read`, `message_delivered`, `message_failed`) are opt-in: name them explicitly, `all` does not include them * Start/stop: `/v1/webhooks/accounts/{id}/start` → `/v2/webhooks/{id}/start` * Status: replace `GET .../status` with the `is_active` field on `GET /v2/webhooks` * New **hosted mode**: omit `url` to get a built-in SSE stream + polling endpoint (no server needed) *** ## Complete Endpoint Mapping ### Authentication | V1 Endpoint | V2 Endpoint | | - | - | | `POST /v1/auth/login` | `POST /v2/login` | | `POST /v1/auth/verify` | `POST /v2/checkpoint` | | — | `GET /v2/accounts` (new) | | — | `GET /v2/accounts/{id}` (new) | ### Profiles | V1 Endpoint | V2 Action | | - | - | | `POST /v1/profile/me` | `POST /v2/profiles` → `get_me` | | `POST /v1/profile/info` | `POST /v2/profiles` → `get` | | `POST /v1/profile/contact` | `POST /v2/profiles` → `get_contact` | | `POST /v1/profile/visit` | `POST /v2/profiles` → `visit` | | `POST /v1/profile/search` | `POST /v2/profiles` → `search_people` | | `POST /v1/companies/search` | `POST /v2/profiles` → `search_companies` | | `POST /v1/companies/info` | `POST /v2/profiles` → `get_company` | ### Messages | V1 Endpoint | V2 Action | | - | - | | `POST /v1/messages/send-message` | `POST /v2/messages` → `send` | | `POST /v1/messages/inbox` | `POST /v2/messages` → `list_inbox` | | `POST /v1/messages/conversation` | `POST /v2/messages` → `get_conversation` | ### Network | V1 Endpoint | V2 Action | | - | - | | `POST /v1/network/connect` | `POST /v2/network` → `invite` | | `POST /v1/network/accept-invitation` | `POST /v2/network` → `accept` | | `POST /v1/network/connections` | `POST /v2/network` → `list_connections` | | `POST /v1/network/invitations` | `POST /v2/network` → `list_invitations` | | `POST /v1/network/sent-invitations` | `POST /v2/network` → `list_sent` | | `POST /v1/network/withdraw` | `POST /v2/network` → `withdraw` | | `POST /v1/network/invitation-status` | `POST /v2/network` → `check_invitation` | | `POST /v1/network/get-network-recommendations` | `POST /v2/network` → `recommendations` | ### Content & Posts | V1 Endpoint | V2 Action | | - | - | | `POST /v1/posts/create` | `POST /v2/content` → `create` | | `POST /v1/posts/create-company` | `POST /v2/content` → `create_company` | | `POST /v1/posts/search` | `POST /v2/content` → `search` | | `POST /v1/posts/feed` | `POST /v2/content` → `get_feed` | | `POST /v1/posts/like` | `POST /v2/content` → `like` | | `POST /v1/posts/react` | `POST /v2/content` → `react` | | `POST /v1/posts/comment` | `POST /v2/content` → `comment` | | `POST /v1/posts/answer-comment` | `POST /v2/content` → `answer_comment` | | `POST /v1/posts/repost` | `POST /v2/content` → `repost` | | `POST /v1/posts/extract-comments` | `POST /v2/content` → `get_comments` | | `POST /v1/posts/reactions` | `POST /v2/content` → `get_reactions` | | `POST /v1/posts/time-spent` | `POST /v2/content` → `time_spent` | ### Recruiter | V1 Endpoint | V2 Action | | - | - | | `POST /v1/recruiter/posts` | `POST /v2/recruiter` → `get_posts` | | `POST /v1/recruiter/get-candidate` | `POST /v2/recruiter` → `get_candidates` | | `POST /v1/recruiter/cv` | `POST /v2/recruiter` → `get_cv` | | `POST /v1/recruiter/publish` | `POST /v2/recruiter` → `publish_job` | | `POST /v1/recruiter/close` | `POST /v2/recruiter` → `close_job` | ### Email / Enrichment | V1 Endpoint | V2 Action | | - | - | | `POST /v1/data/mail/finder` | `POST /v2/enrich` → `find_email` | | `POST /v1/data/mail/reverse` | `POST /v2/enrich` → `reverse_email` | | `POST /v1/data/mail/validate` | `POST /v2/enrich` → `validate_email` | ### Webhooks | V1 Endpoint | V2 Endpoint | | - | - | | `POST /v1/webhooks/accounts` | `POST /v2/webhooks` | | `GET /v1/webhooks/accounts` | `GET /v2/webhooks` | | `PUT /v1/webhooks/accounts/{id}` | `PUT /v2/webhooks/{id}` | | `DELETE /v1/webhooks/accounts/{id}` | `DELETE /v2/webhooks/{id}` | | `POST /v1/webhooks/.../start` | `POST /v2/webhooks/{id}/start` | | `POST /v1/webhooks/.../stop` | `POST /v2/webhooks/{id}/stop` | | `GET /v1/webhooks/.../status` | Check `is_active` on `GET /v2/webhooks` | | — | `GET /v2/webhooks/{id}/stream` (new: SSE) | | — | `GET /v2/webhooks/{id}/events` (new: polling) | *** ## Quick Migration Checklist **1. Connect your account** Call `POST /v2/login` with your credentials or existing V1 token to get an `account_id`. **2. Replace login_token with account_id** Remove `login_token` and `country` from all requests. Add `account_id` instead. **3. Update endpoint URLs** Replace individual V1 URLs with the V2 category endpoint + `action` field. **4. Wrap params** Move all action parameters inside the `params` object. **5. Rename parameters** `linkedin_url` → `profile_url`, `message` → `message_text`. Convert search filter strings to arrays. **6. Update response parsing** Check `success` (boolean) instead of `status` (string). Access data via `data` field. **7. Update error handling** Use HTTP status codes and `error.code` for programmatic error handling. **8. Migrate webhooks** Create webhook configs via `POST /v2/webhooks` with your existing `account_id`. ## Need Help? * Full V2 reference: [Introduction](/api-reference/v2/introduction) * Error codes: [Error Codes](/api-reference/v2/error-codes) * Best practices: [Platform Best Practices](/api-reference/v2/best-practices) * Email: [support@linkupapi.com](mailto:support@linkupapi.com) # Accept Invitation Source: https://docs.linkupapi.com/api-reference/v2/network/accept POST /v2/network Accept or decline a pending connection invitation. ## Overview Accepts a pending connection invitation using the invitation's `shared_secret` and `entity_urn`. These values can be obtained from the [List Invitations](/api-reference/v2/network/list-invitations) endpoint. To **decline** an invitation, use [Decline Invitation](/api-reference/v2/network/decline) (`action: "decline"`, same params). Sending this request with `decline: true` is still supported and equivalent. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"accept"`. **params** `object` *required* **params properties** **shared_secret** `string` *required* The shared secret associated with the invitation. Obtained from the invitation data. **entity_urn** `string` *required* The entity URN of the invitation to accept. **decline** `boolean` (default: false) `true` ignores (declines) the invitation instead of accepting it. The sender is not notified, as on LinkedIn. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` Confirmation of the accepted invitation. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"accept"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": {}, "metadata": { "action": "accept", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "shared_secret and entity_urn are required." }, "metadata": { "action": "accept", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Check Invitation Status Source: https://docs.linkupapi.com/api-reference/v2/network/check-invitation POST /v2/network Check the connection status with a specific user. ## Overview Returns the current connection / invitation status with a specific user. Useful to know whether you're already connected, have a pending sent or received invitation, or have no relationship yet. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"check_invitation"`. **params** `object` *required* **params properties** **profile_url** `string` *required* URL of the profile on the connected platform of the person to check. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **invitation_state** `string` One of: * `"ACCEPTED"` — you are already connected with this person * `"PENDING"` — an invitation is pending (sent or received) * `"NO_INVITATION"` — no invitation has been exchanged **invitation_type** `string` Direction of the invitation when applicable. One of: * `"CONNECTED"` (when `invitation_state` is `ACCEPTED`) * `"SENT"` (you sent the invitation) * `"RECEIVED"` (the other person sent it) * `null` when `invitation_state` is `NO_INVITATION` **invitation_id** `integer` Numeric ID of the invitation when one exists (use it with the `withdraw` action). `null` otherwise. **invitation_id_str** `string` Same ID as a string. Use this one in JavaScript: a 19-digit number loses precision there. **member_distance** `integer` Network distance to the target profile (`1`, `2`, `3`, …). **message** `string` Human-readable description of the state. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"check_invitation"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 — Already connected theme={null} { "success": true, "data": { "invitation_state": "ACCEPTED", "invitation_type": "CONNECTED", "invitation_id": null, "member_distance": 1, "message": "You are connected with this person" }, "metadata": { "action": "check_invitation", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 200 — Pending sent invitation theme={null} { "success": true, "data": { "invitation_state": "PENDING", "invitation_type": "SENT", "invitation_id": 7453486530700017665, "invitation_id_str": "7453486530700017665", "member_distance": 2, "message": "Invitation pending" }, "metadata": { "action": "check_invitation", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 200 — No invitation theme={null} { "success": true, "data": { "invitation_state": "NO_INVITATION", "invitation_type": null, "invitation_id": null, "member_distance": 3, "message": "No invitation found" }, "metadata": { "action": "check_invitation", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Invalid LinkedIn URL format" }, "metadata": { "action": "check_invitation", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Decline Invitation Source: https://docs.linkupapi.com/api-reference/v2/network/decline POST /v2/network Decline a pending connection invitation. ## Overview Declines (ignores) a pending connection invitation using the invitation's `shared_secret` and `entity_urn`. These values can be obtained from the [List Invitations](/api-reference/v2/network/list-invitations) endpoint. The sender is not notified, as on LinkedIn. Same request and response as [Accept Invitation](/api-reference/v2/network/accept) — only `action` changes. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"decline"`. **params** `object` *required* **params properties** **shared_secret** `string` *required* The shared secret associated with the invitation. Obtained from the invitation data. **entity_urn** `string` *required* The entity URN of the invitation to decline. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` Confirmation of the declined invitation. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"decline"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "status": "ok", "message": "success" }, "metadata": { "action": "decline", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-09-17T18:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Invalid parameter" }, "metadata": { "action": "decline", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-09-17T18:00:00Z" } } ``` # Events Source: https://docs.linkupapi.com/api-reference/v2/network/events POST /v2/network Read a LinkedIn event and invite members to it. ## Overview Two actions on LinkedIn events, both on `POST /v2/network`: * `get_event`: when the event starts and ends, its state, organizer, venue, speakers, and the account's own status towards it. * `invite_to_event`: invite 1st-degree connections to it. To list the attendees, use [Search People](/api-reference/v2/profiles/search-people) with the attendee-list URL as `search_url`. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. ## Get event `action: "get_event"` Returns the details of a LinkedIn event from its URL, URN or id: when it starts and ends (as UTC instants and as wall-clock times in the event's own time zone), whether it is upcoming, ongoing or past, who organizes it, where it happens or streams, and the account's own status towards it (invited, attending, host). ### Request **action** `string` *required* Must be `"get_event"`. **params** `object` *required* **params properties** **event_url** `string` *required* The event: URL (`https://www.linkedin.com/events/launch7315105458780465155/`), `urn:li:fsd_professionalEvent:…` or the numeric event id. `event_id` is accepted as an alias. ### Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **event_id** `string` Numeric id of the event. **event_urn** `string` `urn:li:fsd_professionalEvent:…`. **name** `string` Event title. **description** `string | null` Event description. **url** `string` Public URL of the event page. **vanity_name** `string | null` The slug in the event URL. **start_at** `string | null` Start, ISO 8601 UTC (e.g. `2026-10-12T11:00:00Z`). **end_at** `string | null` End, ISO 8601 UTC. `null` when the organizer set no end time. **start_local** `string | null` Start as a wall-clock time in `time_zone` (`2026-10-12T13:00:00`, no offset). **end_local** `string | null` End as a wall-clock time in `time_zone`. **time_zone** `string | null` IANA time zone of the event (`Europe/Paris`). **display_time** `string | null` The time range as LinkedIn displays it (`Oct 12, 2026, 1:00 PM - 2:00 PM CEST`). **lifecycle_state** `string` `FUTURE`, `ONGOING` or `PAST`. **cancelled** `boolean` Whether the organizer cancelled the event. **private_event** `boolean` Private events are visible to invitees only. **organizer_invite_only** `boolean` When `true`, only the organizer and co-hosts can invite. **external_url** `string | null` Registration or streaming link outside LinkedIn, when set. **streaming_url** `string | null` LinkedIn Live stream URL, when set. **broadcast_tool** `string | null` The streaming tool for a LinkedIn Live event. **venue** `string | null` Venue details for an in-person event. **address** `object | null` Postal address for an in-person event (`line1`, `line2`, `city`, `postalCode`, `country`…), only the fields LinkedIn filled. **organizer** `object` **organizer properties** **profile_id** `string | null` Member id of the organizing person (`ACoAA…`). **profile_urn** `string | null` `urn:li:fsd_profile:…` of the organizing person. **public_identifier** `string | null` Public slug of the organizing person. **name** `string | null` Name of the organizing person. **company_id** `string | null` Numeric id of the organizing company page, when a page organizes. **company_urn** `string | null` `urn:li:fsd_company:…` of the organizing page. **company_universal_name** `string | null` Slug of the organizing page. **company_name** `string | null` Name of the organizing page. **co_hosts** `object[]` Co-hosts: `profile_id`, `profile_urn`, `public_identifier`, `name`, `headline`, `role`, `state`. **speakers** `object[]` Announced speakers, same shape (`role` is `SPEAKER`, `state` is `APPROVED` once the speaker accepted). **attendee_count** `integer | null` Number of attendees when LinkedIn shows it. **attendee_visibility** `boolean` Whether the attendee list is visible. **viewer_status** `string | null` The account's status towards the event: `INVITED`, `INTERESTED` (attending), `NOT_INTERESTED`, or `null`. **viewer_is_host** `boolean` `true` when the account organizes or co-hosts the event. **can_invite** `boolean` LinkedIn's own flag for the account on this event. Indicative only: on a public event LinkedIn still accepts invitations to 1st-degree connections when it is `false` (see [Invite to event](#invite-to-event)). **post_urn** `string | null` URN of the event's feed post, usable with [Get Post](/api-reference/v2/content/get). **background_image_url** `string | null` Cover image URL. **created_at** `string | null` When the event was created, ISO 8601 UTC. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_event"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "event_id": "7515337029308538883", "event_urn": "urn:li:fsd_professionalEvent:7515337029308538883", "name": "Product launch", "description": "Join us for the live walkthrough.", "url": "https://www.linkedin.com/events/productlaunch7515337029308538883/", "vanity_name": "productlaunch7515337029308538883", "start_at": "2026-10-12T11:00:00Z", "end_at": "2026-10-12T12:00:00Z", "start_local": "2026-10-12T13:00:00", "end_local": "2026-10-12T14:00:00", "time_zone": "Europe/Paris", "display_time": "Oct 12, 2026, 1:00 PM - 2:00 PM CEST", "lifecycle_state": "FUTURE", "cancelled": false, "private_event": false, "organizer_invite_only": false, "external_url": null, "streaming_url": null, "broadcast_tool": null, "venue": null, "address": { "country": "FR", "city": "Paris", "line1": "10 rue de la Paix" }, "organizer": { "profile_id": "ACoAAGOTIYIBlqheYWb-Mm6ygh4ErjKMId2CNMo", "profile_urn": "urn:li:fsd_profile:ACoAAGOTIYIBlqheYWb-Mm6ygh4ErjKMId2CNMo", "public_identifier": "douglas-collombat-8aa5863a7", "name": "Douglas Collombat", "company_id": null, "company_urn": null, "company_universal_name": null, "company_name": null }, "co_hosts": [], "speakers": [ { "profile_id": "ACoAAAgL-5IBkwG9UY53vuhg5dPPBKae0IcvZTQ", "profile_urn": "urn:li:fsd_profile:ACoAAAgL-5IBkwG9UY53vuhg5dPPBKae0IcvZTQ", "public_identifier": "caffeinatedtejal", "name": "Tejal Rives", "headline": "Recruiting Leader | Founder of Get Selected", "role": "SPEAKER", "state": "APPROVED" } ], "attendee_count": 12, "attendee_visibility": true, "viewer_status": "INVITED", "viewer_is_host": false, "can_invite": false, "post_urn": "urn:li:ugcPost:7515337032559292416", "background_image_url": null, "created_at": "2026-10-12T09:06:16Z" }, "metadata": { "action": "get_event", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-12T14:02:11Z" } } ``` ```json 400 — Unknown or deleted event theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Event not found" }, "metadata": { "action": "get_event", "credits_consumed": 1, "timestamp": "2026-10-12T14:02:11Z" } } ``` ```json 400 — Missing event theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "event_url or event_id is required" }, "metadata": { "action": "get_event", "credits_consumed": 0, "timestamp": "2026-10-12T14:02:11Z" } } ``` ## Invite to event `action: "invite_to_event"` Invites one or more members to a LinkedIn event, the same way the **Invite** button on the event page does. LinkedIn only lets you invite your **1st-degree connections**. On a public event any member can invite their connections; on a private or organizer-only event, the organizer and co-hosts. The event is read first: a deleted or cancelled event is refused before any invitation is sent. Up to 50 profiles per call. Each profile is resolved first; a profile LinkedIn cannot find is reported in `results` and does not block the others. ### Request **action** `string` *required* Must be `"invite_to_event"`. **params** `object` *required* **params properties** **event_url** `string` *required* The event: URL (`https://www.linkedin.com/events/7315105458780465155/`), `urn:li:fsd_professionalEvent:…` or the numeric event id. `event_id` is accepted as an alias. **profiles** `string[]` *required* The people to invite (max 50): profile URLs, public slugs, member ids (`ACoAA…`) or `urn:li:fsd_profile:…`. A single `profile_url` string is accepted for one person. ### Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **event_id** `string` Numeric id of the event. **event_urn** `string` `urn:li:fsd_professionalEvent:…` of the event. **event_name** `string | null` Title of the event. **invited_count** `integer` How many of the profiles were invited. **results** `object[]` One entry per profile given, in order. **result properties** **profile** `string` The profile as you passed it. **profile_id** `string` Resolved member id (`ACoAA…`), when found. **profile_urn** `string` Resolved `urn:li:fsd_profile:…`, when found. **status** `string` `invited`, or `error`. **invitation_id** `string` Id of the created invitation, as a string (19 digits). Inviting someone already invited returns the existing invitation. **invitation_urn** `string` `urn:li:fsd_invitation:…` of the invitation. **message** `string` Why this person was not invited (only on `error`). **linkedin_code** `string` LinkedIn's own refusal code for this person, when it gives one (e.g. already invited, already attending). **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"invite_to_event"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "event_id": "7315105458780465155", "event_urn": "urn:li:fsd_professionalEvent:7315105458780465155", "event_name": "Product launch", "invited_count": 1, "results": [ { "profile": "https://www.linkedin.com/in/john-doe/", "profile_id": "ACoAAGOTIYIBlqheYWb-Mm6ygh4ErjKMId2CNMo", "profile_urn": "urn:li:fsd_profile:ACoAAGOTIYIBlqheYWb-Mm6ygh4ErjKMId2CNMo", "status": "invited", "invitation_id": "7515337837941141504", "invitation_urn": "urn:li:fsd_invitation:7515337837941141504" }, { "profile": "no-such-person-xyz", "status": "error", "message": "Profile not found" } ] }, "metadata": { "action": "invite_to_event", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-12T14:02:11Z" } } ``` ```json 400 — Deleted event theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Event not found" }, "metadata": { "action": "invite_to_event", "credits_consumed": 1, "timestamp": "2026-10-12T14:02:11Z" } } ``` ```json 400 — Account cannot invite to this event theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "LinkedIn refused the invitation: this account cannot invite people to this event." }, "metadata": { "action": "invite_to_event", "credits_consumed": 1, "timestamp": "2026-10-12T14:02:11Z" } } ``` ```json 400 — Missing params theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "profiles is required: a list of profile URLs, slugs or member ids (or profile_url for one)" }, "metadata": { "action": "invite_to_event", "credits_consumed": 0, "timestamp": "2026-10-12T14:02:11Z" } } ``` # Follow / Unfollow Source: https://docs.linkupapi.com/api-reference/v2/network/follow POST /v2/network Follow or unfollow a member profile or a company page. ## Overview Follows a person (their posts appear in the account's feed, without a connection request) or a company page, or stops following them. Pass `profile_url` for a person, `company_url` for a page. Unfollowing a connection keeps the connection; only their posts leave the feed. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* `"follow"` or `"unfollow"`. Same params for both. **params** `object` *required* **params properties** **profile_url** `string` The person to follow: profile URL (`https://www.linkedin.com/in/john-doe/`), public slug (`john-doe`), member id (`ACoAA…`) or `urn:li:fsd_profile:…`. **Required to follow a person.** **company_url** `string` The company page to follow: URL (`https://www.linkedin.com/company/google/`) or slug (`google`). **Required to follow a page, unless `company_id` is given.** **company_id** `string` Numeric LinkedIn company id, as an alternative to `company_url`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **following** `boolean` `true` after `follow`, `false` after `unfollow`. **profile_id** `string` Member id of the followed person (`ACoAA…`). Person only. **profile_urn** `string` `urn:li:fsd_profile:…` of the followed person. Person only. **follower_count** `integer` Follower count of the person or page as LinkedIn reports it after the action. **company_id** `string` Numeric id of the followed company. Page only. **company_urn** `string` `urn:li:fsd_company:…` of the followed company. Page only. **name** `string` Company name. Page only, when the page was given as `company_url`. **universal_name** `string` Company slug. Page only, when the page was given as `company_url`. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"follow"` or `"unfollow"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 — Person theme={null} { "success": true, "data": { "following": true, "profile_id": "ACoAAGOTIYIBlqheYWb-Mm6ygh4ErjKMId2CNMo", "profile_urn": "urn:li:fsd_profile:ACoAAGOTIYIBlqheYWb-Mm6ygh4ErjKMId2CNMo", "follower_count": 44 }, "metadata": { "action": "follow", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-12T14:02:11Z" } } ``` ```json 200 — Company page, unfollow theme={null} { "success": true, "data": { "following": false, "company_id": "1441", "company_urn": "urn:li:fsd_company:1441", "name": "Google", "universal_name": "google", "follower_count": 42498394 }, "metadata": { "action": "unfollow", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-12T14:02:11Z" } } ``` ```json 400 — Nothing to follow theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "profile_url, company_url or company_id is required" }, "metadata": { "action": "follow", "credits_consumed": 0, "timestamp": "2026-10-12T14:02:11Z" } } ``` ```json 400 — Unknown profile theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Profile not found" }, "metadata": { "action": "follow", "credits_consumed": 1, "timestamp": "2026-10-12T14:02:11Z" } } ``` # Get Group Members Source: https://docs.linkupapi.com/api-reference/v2/network/group-members POST /v2/network List the members of a LinkedIn group from its URL. ## Overview Returns the members of a LinkedIn group, paginated with `count` and `offset`. **The account must be a member of the group**: LinkedIn only shows a group's member list to its members. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_group_members"`. **params** `object` *required* **params properties** **group_url** `string` *required* The group URL (`https://www.linkedin.com/groups/8561802/`) or its numeric id. `group_id` is accepted as an alias. **count** `integer` (default: 10) Number of members to return. Capped at `1000` per call; paginate with `offset`. **offset** `integer` (default: 0) Number of members to skip. **first_degree_only** `boolean` (default: false) Only return members who are 1st-degree connections of the account. ## Response **data** `object` **data properties** **profiles** `array` The members: `name`, `first_name`, `last_name`, `job_title`, `connection_level`, `profile_url`, `public_identifier`, `profile_urn`, `profile_id`, `profile_picture`, `group_role` (`MEMBER`, `MANAGER`, `OWNER`) and `joined_at`. **total_results** `integer` Number of members returned. **total_available_results** `integer` Total number of members in the group. If the account is not a member of the group (or the group does not exist), the call returns `CHANNEL_ERROR` with `sub_code: "NOT_GROUP_MEMBER"`. ## Group details and posts Same endpoint, same `group_url` param: * `"search_groups"`: find groups by `keyword` (`count` up to `100`, `offset`; LinkedIn returns the first 1,000 results). Joined or not: `group_id`, `name`, `description`, `members_text`, `membership_status`, `logo_url`. 1 credit per 10 results. * `"get_group"`: the group's `name`, `description`, `rules`, `industries`, `member_count`, `created_at`, `is_public`, the account's `membership_status` (`MEMBER`, `MANAGER`, `OWNER`, `NON_MEMBER`), `owners`, `managers` and LinkedIn's `activity_insights` (e.g. `"+354 members in the last week"`). Works on groups the account hasn't joined. 1 credit. * `"get_group_posts"`: the group feed in LinkedIn's order, members only. Same post fields as [`get_posts`](/api-reference/v2/profiles/get-posts), plus `group_post_urn` and `actor_profile_urn`. `count` up to `100`; pass the returned `cursor` for the next page. 1 credit per 10 results. ```json Request theme={null} { "account_id": "your-account-id", "action": "get_group_members", "params": { "group_url": "https://www.linkedin.com/groups/8561802/", "count": 50 } } ``` ```json 200 theme={null} { "success": true, "data": { "group_id": "8561802", "group_urn": "urn:li:fsd_group:8561802", "profiles": [ { "name": "Jane Doe", "first_name": "Jane", "last_name": "Doe", "job_title": "Head of Growth at Acme", "connection_level": "2nd degree", "profile_url": "https://www.linkedin.com/in/jane-doe", "public_identifier": "jane-doe", "profile_urn": "urn:li:fsd_profile:ACoAAB1x2y3z", "profile_id": "ACoAAB1x2y3z", "profile_picture": "https://media.licdn.com/dms/image/v2/.../400_400.jpg", "group_role": "MEMBER", "joined_at": "2026-06-04T10:56:37Z" } ], "total_results": 1, "total_available_results": 3243 }, "metadata": { "action": "get_group_members", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-21T10:25:34.023862" } } ``` ```json 422 theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "This account is not a member of this LinkedIn group (or the group does not exist). Only members can list a group's members: join it with this account, then retry.", "sub_code": "NOT_GROUP_MEMBER" }, "metadata": { "action": "get_group_members", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-21T10:25:37.448417" } } ``` # Send Connection Request Source: https://docs.linkupapi.com/api-reference/v2/network/invite POST /v2/network Send a connection request to a user. ## Overview Sends a connection request (invitation) to a user. You can identify the target by their profile URL or a unique identifier. Optionally include a personalized message with the invitation. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"invite"`. **params** `object` *required* **params properties** **profile_url** `string` URL of the profile on the connected platform of the person to invite. **Required if `identifier` is not provided.** **identifier** `string` A unique identifier for the person to invite. **Required if `profile_url` is not provided.** **message** `string` An optional personalized message to include with the connection request. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` Details of the sent invitation. **data properties** **invitation_urn** `string` The unique URN of the invitation. **profile_urn** `string` The URN of the invited profile. **first_name** `string` First name of the invited person. **last_name** `string` Last name of the invited person. **headline** `string` Headline of the invited person. **public_identifier** `string` Public identifier (vanity name) of the invited person. **profile_picture_url** `string` URL of the invited person's profile picture. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"invite"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. > [!NOTE] > > A `422 CHANNEL_ERROR` ending in `CANT_RESEND_YET` means LinkedIn refused the invitation: you are already connected to this member, an invitation is already pending, or one was withdrawn less than about 3 weeks ago. Call `check_invitation` to tell which. ```json 200 theme={null} { "success": true, "data": { "invitation_urn": "urn:li:invitation:123456789", "profile_urn": "urn:li:fsd_profile:ACoAABxxxxxxx", "first_name": "John", "last_name": "Doe", "headline": "Senior Software Engineer at Acme Corp", "public_identifier": "johndoe", "profile_picture_url": "https://media.licdn.com/dms/image/example.jpg" }, "metadata": { "action": "invite", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 422 theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "LinkedIn won't accept this invitation yet: after withdrawing an invitation, the same member can only be invited again about 3 weeks later (CANT_RESEND_YET)", "sub_code": "CANT_RESEND_YET" }, "metadata": { "action": "invite", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Either profile_url or identifier is required." }, "metadata": { "action": "invite", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # List Connections Source: https://docs.linkupapi.com/api-reference/v2/network/list-connections POST /v2/network Retrieve a paginated list of connections. ## Overview Returns a paginated list of the account's connections. Pagination is **offset-based** (the platform provides a stable, addressable list — no opaque cursor needed). Set `count` for the page size and `offset` to skip ahead. > [!NOTE] > > This endpoint consumes **1 credit per 50 results** returned. The platform returns up to **100 connections per internal request**, so requesting `count: 250` triggers \~3 upstream calls automatically. Ignore this if you're on per-seat pricing: usage is unlimited. ### Is one profile a connection? Same stored copy, one profile: send `action: "check_connection"` with `params.profile_url` (full URL or public identifier). Returns `connected: true/false`, `name`, `cache_synced` and `cache_synced_at`. **0 credit, no LinkedIn traffic.** ```json theme={null} { "account_id": "your-account-id", "action": "check_connection", "params": { "profile_url": "https://www.linkedin.com/in/jane-doe-42/" } } ``` ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"list_connections"`. **params** `object` **params properties** **count** `integer` (default: 10) Number of connections to return. Defaults to `10`. **Capped at `1000`** per call — to retrieve more, paginate with `offset`. **offset** `integer` (default: 0) Zero-indexed offset into the connections list. Defaults to `0`. Use `pagination.next_offset` from a previous response to fetch the next page. **use_cache** `boolean` (default: false) Serve the list from our stored copy of the account's connections instead of LinkedIn: **0 credit, no LinkedIn traffic**, newest connection first. The copy exists for accounts subscribed to the [`accepted_invitation`](/api-reference/v2/webhooks/introduction#event-types) webhook event (full sync at subscription, then every detected acceptance is added). Without it the response is empty with `cache_synced: false`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **connections** `array` List of connection objects. **connection properties** **name** `string` Display name of the connection. **job_title** `string` Headline / current job title. **profile_url** `string` Public profile URL. **profile_picture** `string` URL of the connection's profile picture. **member_urn** `string` Member URN (`urn:li:fsd_profile:ACoA…`), the id `invite` accepts. Not returned with `use_cache`. **total_results** `integer` Number of connections returned in this response. **total_available_results** `integer` Total number of connections available in the account. **source** `string` `"cache"` when served with `use_cache`. Absent otherwise. **cache_synced** `boolean` With `use_cache` only: `false` when the account has no stored copy yet. **cache_synced_at** `string` With `use_cache` only: ISO 8601 date of the most recent stored connection. **pagination** `object` **pagination properties** **offset** `integer` Offset of the first connection in this response. **count** `integer` Number of connections returned (mirrors `total_results`). **next_offset** `integer` Offset to send as `offset` in the next request to fetch the next page. `null` when there are no more results. **has_more** `boolean` `true` if more connections are available beyond this batch. **results_per_page** `integer` Maximum batch size used per upstream request. **pages_fetched** `integer` Number of internal upstream batches consumed to assemble this response. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"list_connections"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 50 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "connections": [ { "name": "Jane Doe", "job_title": "Founder @ Acme Corp — AI recruiting platform", "profile_url": "https://www.linkedin.com/in/jane-doe-42/", "profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg", "member_urn": "urn:li:fsd_profile:ACoAABxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1" } ], "total_results": 1, "total_available_results": 1201, "pagination": { "offset": 0, "count": 1, "next_offset": 1, "has_more": true, "results_per_page": 10, "pages_fetched": 1 } }, "metadata": { "action": "list_connections", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 200 — use_cache theme={null} { "success": true, "data": { "connections": [ { "name": "Jane Doe", "job_title": "Founder @ Acme Corp — AI recruiting platform", "profile_url": "https://www.linkedin.com/in/jane-doe-42/", "profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg" } ], "total_results": 1, "total_available_results": 1201, "pagination": { "offset": 0, "count": 1, "next_offset": 1, "has_more": true, "results_per_page": 1, "pages_fetched": 0 }, "source": "cache", "cache_synced": true, "cache_synced_at": "2026-04-25T13:42:16.859000" }, "metadata": { "action": "list_connections", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "account_id or account_ids is required" }, "metadata": { "action": "list_connections", "account_id": null, "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # List Followers Source: https://docs.linkupapi.com/api-reference/v2/network/list-followers POST /v2/network People following the account, or followed by it. ## Overview Returns the account's followers (`list_followers`) or the people it follows (`list_following`), in LinkedIn's order. Followed company pages are not included. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* `"list_followers"` or `"list_following"`. **params** `object` **params properties** **count** `integer` (default: 20) Number of people to return. **Capped at `100`** per call — to retrieve more, paginate with `offset`. **offset** `integer` (default: 0) Zero-indexed offset into the list. Use `pagination.next_offset` from a previous response to fetch the next page. ## Response **data** `object` **data properties** **followers** `array` `list_followers` only. `list_following` returns the same objects under `following`. **person properties** **name** `string` Display name. **job_title** `string` Headline. **profile_url** `string` Public profile URL. **profile_urn** `string` Member URN (`urn:li:fsd_profile:ACoA…`). **total_available_results** `integer` Total number of followers (or followed people). Returned when `offset` is `0`, `null` otherwise. **pagination** `object` Same object as [`list_connections`](/api-reference/v2/network/list-connections): `offset`, `count`, `next_offset`, `has_more`. ```json 200 theme={null} { "success": true, "data": { "followers": [ { "name": "Jane Doe", "job_title": "Founder @ Acme Corp", "profile_url": "https://www.linkedin.com/in/jane-doe-42", "public_identifier": "jane-doe-42", "profile_urn": "urn:li:fsd_profile:ACoAABxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1", "profile_id": "ACoAABxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1", "profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg" } ], "total_results": 1, "total_available_results": 1738, "pagination": { "offset": 0, "count": 1, "next_offset": 1, "has_more": true, "results_per_page": 1, "pages_fetched": 1 } }, "metadata": { "action": "list_followers", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-30T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "count is too large: 150 (max 100 per call, page with offset)" }, "metadata": { "action": "list_followers", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-10-30T10:35:00Z" } } ``` # List Invitations Source: https://docs.linkupapi.com/api-reference/v2/network/list-invitations POST /v2/network Retrieve a paginated list of pending invitations received. ## Overview Returns a paginated list of pending connection invitations received by the account. Pagination is **offset-based** — set `count` for the page size and `offset` to skip ahead. > [!NOTE] > > This endpoint consumes **1 credit per 50 results** returned. The platform returns up to **100 invitations per internal request**, so larger `count` values trigger multiple upstream calls automatically. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"list_invitations"`. **params** `object` **params properties** **count** `integer` (default: 10) Number of invitations to return. Defaults to `10`. **Capped at `1000`** per call — to retrieve more, paginate with `offset`. **offset** `integer` (default: 0) Zero-indexed offset into the invitations list. Defaults to `0`. Use `pagination.next_offset` from a previous response to fetch the next page. **invitation_type** `string` Filter by invitation type (e.g. `"CONNECTION"`). Omit for all types. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **invitations** `array` List of invitation objects with `entity_urn`, `shared_secret`, sender info, type, and timing. **total_results** `integer` Number of invitations returned in this response. **total_available_results** `integer` Total number of pending invitations available on the account. **pagination** `object` **pagination properties** **offset** `integer` Offset of the first invitation in this response. **count** `integer` Number of invitations returned (mirrors `total_results`). **next_offset** `integer` Offset to send as `offset` in the next request. `null` when there are no more results. **has_more** `boolean` `true` if more invitations are available beyond this batch. **results_per_page** `integer` Maximum batch size used per upstream request. **pages_fetched** `integer` Number of internal upstream batches consumed to assemble this response. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"list_invitations"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 50 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "invitations": [ { "entity_urn": "urn:li:invitation:123456789", "shared_secret": "abcdef12-3456-7890-abcd-ef1234567890", "sender": { "first_name": "Alice", "last_name": "Johnson", "headline": "Data Scientist", "linkedin_url": "https://www.linkedin.com/in/alicejohnson", "profile_picture_url": "https://media.licdn.com/dms/image/..." }, "invitation_type": "CONNECTION", "sent_time": "1d", "sent_time_days": 1 } ], "total_results": 1, "total_available_results": 26, "pagination": { "offset": 0, "count": 1, "next_offset": 1, "has_more": true, "results_per_page": 10, "pages_fetched": 1 } }, "metadata": { "action": "list_invitations", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "account_id or account_ids is required" }, "metadata": { "action": "list_invitations", "account_id": null, "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # List Sent Invitations Source: https://docs.linkupapi.com/api-reference/v2/network/list-sent POST /v2/network Retrieve a paginated list of sent invitations. ## Overview Returns a paginated list of connection invitations sent from the account. Pagination is **offset-based** — set `count` for the page size and `offset` to skip ahead. > [!NOTE] > > This endpoint consumes **1 credit per 50 results** returned. The platform returns up to **100 invitations per internal request**, so larger `count` values trigger multiple upstream calls automatically. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"list_sent"`. **params** `object` **params properties** **count** `integer` (default: 10) Number of sent invitations to return. Defaults to `10`. **Capped at `1000`** per call — to retrieve more, paginate with `offset`. **offset** `integer` (default: 0) Zero-indexed offset into the sent invitations list. Defaults to `0`. Use `pagination.next_offset` from a previous response to fetch the next page. **invitation_type** `string` (default: CONNECTION) Filter by invitation type. One of: `"CONNECTION"`, `"ORGANIZATION"`, `"EVENT"`. Defaults to `"CONNECTION"`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **invitations** `array` List of sent invitation objects with recipient info, invitation type, and timing. **total_results** `integer` Number of sent invitations returned in this response. **total_available_results** `integer` Total number of sent invitations available on the account. **invitation_type** `string` The invitation type filter that was applied. **pagination** `object` **pagination properties** **offset** `integer` Offset of the first invitation in this response. **count** `integer` Number of sent invitations returned (mirrors `total_results`). **next_offset** `integer` Offset to send as `offset` in the next request. `null` when there are no more results. **has_more** `boolean` `true` if more sent invitations are available beyond this batch. **results_per_page** `integer` Maximum batch size used per upstream request. **pages_fetched** `integer` Number of internal upstream batches consumed to assemble this response. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"list_sent"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 50 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "invitations": [ { "entity_urn": "urn:li:invitation:987654321", "recipient": { "first_name": "Bob", "last_name": "Williams", "headline": "CTO at StartupXYZ", "linkedin_url": "https://www.linkedin.com/in/bobwilliams", "profile_picture": "https://media.licdn.com/dms/image/..." }, "invitation_type": "CONNECTION", "sent_time": "5d", "sent_time_days": 5 } ], "total_results": 1, "total_available_results": 145, "invitation_type": "CONNECTION", "pagination": { "offset": 0, "count": 1, "next_offset": 1, "has_more": true, "results_per_page": 10, "pages_fetched": 1 } }, "metadata": { "action": "list_sent", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "account_id or account_ids is required" }, "metadata": { "action": "list_sent", "account_id": null, "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Get Network Recommendations Source: https://docs.linkupapi.com/api-reference/v2/network/recommendations POST /v2/network Retrieve network recommendations (people you may know). ## Overview Returns a one-shot snapshot of recommended connections ("People You May Know") sourced from the platform's discovery sections. > [!NOTE] > > One-shot snapshot — not paginable. Use `count` to limit results. Consumes **1 credit per 10 results**. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"recommendations"`. **params** `object` **params properties** **count** `integer` (default: 10) Number of recommendations to return. Defaults to `10`. The total available depends on the account's network — typically 10 to 50 unique profiles per snapshot. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **recommendations** `array` List of recommended profiles. **recommendation properties** **name** `string` Display name. **subtitle** `string` Headline / current role. **profile_url** `string` Public profile URL. **profile_picture** `string` Profile picture URL. **insight** `string` Mutual connection / shared context (e.g. `"John and 35 other mutual connections"`). **entity_urn** `string` Unique identifier of the discovery view. Treat it as an opaque string and pass it back exactly as returned. **total_results** `integer` Number of recommendations returned in this response. **pagination** `object` **pagination properties** **results_per_page** `integer` Page size used internally per upstream request (10). **pages_fetched** `integer` Number of internal upstream batches consumed to assemble the response. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"recommendations"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "recommendations": [ { "name": "Jane Doe", "subtitle": "Co-founder @ Acme Corp", "profile_url": "https://www.linkedin.com/in/jane-doe-42", "insight": "John and 35 other mutual connections", "entity_urn": "urn:li:fsd_discoveryEntityViewModel:(urn:li:fsd_profile:ACoAA...,PYMK)", "profile_picture": "https://media.licdn.com/dms/image/v2/.../profile.jpg" } ], "total_results": 1, "pagination": { "results_per_page": 10, "pages_fetched": 1 } }, "metadata": { "action": "recommendations", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "account_id or account_ids is required" }, "metadata": { "action": "recommendations", "account_id": null, "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Withdraw Invitation Source: https://docs.linkupapi.com/api-reference/v2/network/withdraw POST /v2/network Withdraw a pending sent connection invitation. ## Overview Withdraws a previously sent connection invitation that is still pending. The invitation is identified by its `invitation_id`, which can be obtained from the [List Sent Invitations](/api-reference/v2/network/list-sent) endpoint or from [Check Invitation Status](/api-reference/v2/network/check-invitation). > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"withdraw"`. **params** `object` *required* **params properties** **invitation_id** `string` *required* The numeric ID of the invitation to withdraw (e.g. `"7453486530700017665"`). Accepts string or integer. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **withdrawn** `boolean` `true` when the invitation was successfully withdrawn. **invitation_id** `string` The ID of the withdrawn invitation (echo of the input). **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"withdraw"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "withdrawn": true, "invitation_id": "7453486530700017665" }, "metadata": { "action": "withdraw", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 — Missing invitation_id theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Invalid parameter" }, "metadata": { "action": "withdraw", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 — Invalid invitation_id theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Failed to withdraw invitation: HTTP 500" }, "metadata": { "action": "withdraw", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Check InMail Source: https://docs.linkupapi.com/api-reference/v2/profiles/check-inmail POST /v2/profiles Find out who can be InMailed for free (Open Profile), from a Sales Nav seat or a classic Premium account. ## Overview An **Open Profile** member can be InMailed without spending an InMail credit, whatever the connection degree. This action checks a batch of profiles in one call and returns, for each one, whether the InMail is free, plus the `recipient_urn` needed to [send it](/api-reference/v2/messages/send). Uses the account's Sales Nav seat — see [Connect Account](/api-reference/v2/accounts/login) to activate it (it also auto-connects on first use). No Sales Nav? Use [`classic: true`](#classic-premium-account). > [!NOTE] > > This endpoint consumes **1 credit per 10 profiles** checked. Requires a Sales Nav seat on the account. Ignore this if you're on per-seat pricing: usage is unlimited. > [!WARNING] > > LinkedIn hides the Open Profile badge from some seats (typically a seat on its monthly InMail limit): every member then looks "not open" from that seat. The API detects this by checking known Open Profiles on the same seat. When the seat is blind, `open_profile_badge_visible` is `false` and a `warning` is included: `open_profile` and `inmail_free` keep LinkedIn's raw value (`false`) but must not be trusted for that call. Check these profiles again from another seat, or use [Check InMail Seat](/api-reference/v2/profiles/check-inmail-seat) to know the seat's state before batching. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. Must have a Sales Nav seat. **action** `string` *required* Must be `"check_inmail"`. **params** `object` *required* **params properties** **profiles** `string[]` *required* Up to 100 profile references, in any mix of shapes: profile URL, vanity slug, member id (`ACoAA…`), `urn:li:fsd_profile:…`, Sales Nav lead URL, Sales Nav id (`ACwAA…`) or `urn:li:fs_salesProfile:(…)`. Each result echoes the reference you sent so you can match them back. **classic** `boolean` (default: false) Check from the account's **classic Premium** InMail instead, no Sales Nav seat needed. See [Classic Premium account](#classic-premium-account) below. **recruiter** `boolean` (default: false) Check from the account's **Recruiter seat** instead (same `account_id`). See [Recruiter](#recruiter) below. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **total_results** `integer` Number of profiles in `results`. **inmail_free_count** `integer` How many of them can be InMailed for free. **open_profile_badge_visible** `boolean | null` Whether the seat that answered can see the Open Profile badge. `false` means the `open_profile` / `inmail_free` values below are not reliable (see the warning above). `null` when it could not be determined; results are then LinkedIn's raw values. **warning** `string` Present only when `open_profile_badge_visible` is `false`. **mode** `string` `sales_nav`, or `classic` with [`classic: true`](#classic-premium-account). **results** `array` One entry per requested profile, in the same order. **result properties** **profile** `string` The reference you sent. **status** `string` `success`, or `error` with a `message` (profile not found, could not be resolved). **inmail_free** `boolean` `true` when an InMail to this member costs no credit (Open Profile with no restriction). **open_profile** `boolean` Whether the member is an Open Profile. **inmail_restriction** `string` `NO_RESTRICTION`, or the restriction LinkedIn reports. **premium** `boolean` Whether the member has a Premium account. **degree** `integer` Connection degree from the account. **full_name** `string` Full name. **profile_url** `string` Standard profile URL. **recipient_urn** `string` `urn:li:fs_salesProfile:(...)` — pass it to [Send Message](/api-reference/v2/messages/send) to InMail this member. **member_urn** `string` `urn:li:member:…`. ```json 200 theme={null} { "success": true, "data": { "total_results": 2, "inmail_free_count": 1, "open_profile_badge_visible": true, "results": [ { "profile": "https://www.linkedin.com/in/jane-doe", "status": "success", "inmail_free": true, "open_profile": true, "inmail_restriction": "NO_RESTRICTION", "premium": true, "degree": 2, "full_name": "Jane Doe", "profile_url": "https://www.linkedin.com/in/jane-doe", "recipient_urn": "urn:li:fs_salesProfile:(ACwAAA...,name, )", "member_urn": "urn:li:member:123456" }, { "profile": "john-smith", "status": "success", "inmail_free": false, "open_profile": false, "inmail_restriction": "NO_RESTRICTION", "premium": false, "degree": 3, "full_name": "John Smith", "profile_url": "https://www.linkedin.com/in/john-smith", "recipient_urn": "urn:li:fs_salesProfile:(ACwAAB...,name, )", "member_urn": "urn:li:member:654321" } ] }, "metadata": { "action": "check_inmail", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-09-23T09:33:51Z" } } ``` ```json 200 (seat cannot see the badge) theme={null} { "success": true, "data": { "total_results": 1, "inmail_free_count": 0, "open_profile_badge_visible": false, "warning": "This Sales Navigator seat currently cannot see the Open Profile badge: LinkedIn reports every member as not open from it, so open_profile and inmail_free are not reliable in this response. Check these profiles from another seat, or probe the seat with profiles/check_inmail_seat.", "results": [ { "profile": "https://www.linkedin.com/in/jane-doe", "status": "success", "inmail_free": false, "open_profile": false, "inmail_restriction": "NO_RESTRICTION", "premium": true, "degree": 2, "full_name": "Jane Doe", "profile_url": "https://www.linkedin.com/in/jane-doe", "recipient_urn": "urn:li:fs_salesProfile:(ACwAAA...,name, )", "member_urn": "urn:li:member:123456" } ] }, "metadata": { "action": "check_inmail", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-09-23T09:33:51Z" } } ``` ```json 422 (no Sales Nav seat) theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "No Sales Nav license found for this account", "sub_code": "NO_SALES_NAV_SEAT" }, "metadata": { "action": "check_inmail", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-09-23T09:33:51Z" } } ``` ## Example ```json theme={null} { "account_id": "your-account-id", "action": "check_inmail", "params": { "profiles": [ "https://www.linkedin.com/in/jane-doe", "john-smith", "urn:li:fs_salesProfile:(ACwAAB...,name, )" ] } } ``` ## Classic Premium account With `classic: true`, the check runs from the account's own Premium InMail (Career, Business…), without a Sales Nav seat. It checks **one profile per call**, as LinkedIn does: pass a single profile URL, vanity slug or member id (`ACoAA…`) in `profiles`. For batches, use a Sales Nav seat. The result carries: * `inmail_free` / `open_profile` — the member is an Open Profile, the InMail costs no credit * `can_send_inmail` — `false` when the InMail is not free and the account has no InMail credit left * `profile_urn` — send with [Send Message](/api-reference/v2/messages/send) and `premium_inmail: true` Same response shape as above, with `mode: "classic"`: fields only a Sales Nav seat can see (`degree`, `full_name`, `recipient_urn`…) and `open_profile_badge_visible` are `null`. Requires a Premium account: LinkedIn only lets Premium members message Open Profiles. ```json theme={null} { "account_id": "your-account-id", "action": "check_inmail", "params": { "classic": true, "profiles": ["https://www.linkedin.com/in/jane-doe"] } } ``` ```json Response theme={null} { "success": true, "data": { "total_results": 1, "inmail_free_count": 1, "open_profile_badge_visible": null, "mode": "classic", "results": [ { "profile": "https://www.linkedin.com/in/jane-doe", "status": "success", "inmail_free": true, "open_profile": true, "inmail_restriction": null, "premium": null, "full_name": null, "degree": null, "profile_url": null, "recipient_urn": null, "member_urn": null, "can_send_inmail": true, "profile_urn": "ACoAAA..." } ] } } ``` ## Recruiter With `recruiter: true`, `profiles` are the candidates' `profile_urn` (`urn:li:ts_profile:…`) from [Search People Recruiter](/api-reference/v2/profiles/search-people-recruiter). The answer is `data.profiles`, one item per candidate: * `profile_urn`, `name` * `can_receive_inmail` — whether the seat can InMail them * `inmail_cost` — InMail credits it costs, `inmail_free` when 0 * `contacted_in_last_24h` # Check InMail Seat Source: https://docs.linkupapi.com/api-reference/v2/profiles/check-inmail-seat POST /v2/profiles Know whether a Sales Nav seat can send InMails right now, without sending one. ## Overview LinkedIn puts a **monthly fuse** on every Sales Nav seat, independent of its remaining InMail credits: once tripped, every InMail is refused with `INMAIL_MONTHLY_FUSE_LIMIT`, and it lifts on LinkedIn's own schedule. This action tells you the seat's state before you queue sends, so you can route leads to a seat that can actually deliver. It also reports whether the seat currently sees the **Open Profile badge** (see [Check InMail](/api-reference/v2/profiles/check-inmail)) and its InMail credit balance. > [!NOTE] > > This endpoint consumes **1 credit**. Nothing is sent: the fuse is probed with an empty message LinkedIn refuses before it could ever deliver. Requires a Sales Nav seat on the account. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. Must have a Sales Nav seat. **action** `string` *required* Must be `"check_inmail_seat"`. **params** `object` **params properties** **profile** `string` Optional. A lead in the seat's network (profile URL, slug, member id or Sales Nav reference) to probe against. When omitted, the API picks one itself. **recruiter** `boolean` (default: false) Report the account's **Recruiter seat** instead (same `account_id`). See [Recruiter](#recruiter) below. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **seat_status** `string` `ok` (InMails go through), `monthly_limit` (LinkedIn's monthly fuse is tripped), `under_review` (LinkedIn has frozen the Sales Nav account; the member must clear it on linkedin.com) or `rate_limited` (a passing throttle, retry in a few minutes). **can_send_inmail** `boolean` `true` only when `seat_status` is `ok`. **open_profile_badge_visible** `boolean | null` Whether the seat currently sees the Open Profile badge. When `false`, [Check InMail](/api-reference/v2/profiles/check-inmail) and Sales Nav search results from this seat report every member as not open and must not be trusted. **inmail_credits** `integer | null` InMail credits left on the seat. Not what decides `seat_status`: a fused seat keeps its credits. **linkedin_code** `string | null` LinkedIn's own code when the seat is refused, e.g. `INMAIL_MONTHLY_FUSE_LIMIT`, `ACCOUNT_UNDER_REVIEW`. **message** `string` Human-readable explanation of the state. **checked_at** `string` ISO 8601 timestamp of the probe. ```json 200 (seat can send) theme={null} { "success": true, "data": { "seat_status": "ok", "can_send_inmail": true, "open_profile_badge_visible": true, "inmail_credits": 149, "linkedin_code": null, "message": "The seat can send InMails.", "checked_at": "2026-09-23T09:33:48Z" }, "metadata": { "action": "check_inmail_seat", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-09-23T09:33:48Z" } } ``` ```json 200 (monthly fuse tripped) theme={null} { "success": true, "data": { "seat_status": "monthly_limit", "can_send_inmail": false, "open_profile_badge_visible": false, "inmail_credits": 57, "linkedin_code": "INMAIL_MONTHLY_FUSE_LIMIT", "message": "LinkedIn has reached the monthly InMail limit on this Sales Navigator seat (INMAIL_MONTHLY_FUSE_LIMIT). It resets with the seat's monthly cycle; remaining InMail credits are not the cause.", "checked_at": "2026-09-23T09:34:17Z" }, "metadata": { "action": "check_inmail_seat", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-09-23T09:34:17Z" } } ``` ```json 422 (no Sales Nav seat) theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "No Sales Nav license found for this account", "sub_code": "NO_SALES_NAV_SEAT" }, "metadata": { "action": "check_inmail_seat", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-09-23T09:34:17Z" } } ``` ## Example ```json theme={null} { "account_id": "your-account-id", "action": "check_inmail_seat", "params": {} } ``` ## Recruiter With `recruiter: true`, it reports the Recruiter seat, with no LinkedIn write: * `seat_status` (`ok` when usable), `seat_urn`, `can_search` * `contract` (name, type), `seat_holder`, `roles` * `inmail_credits` and `inmail_credits_refresh_at` (epoch ms) * `signature` — appended to Recruiter InMails unless you pass your own ```json theme={null} { "account_id": "your-account-id", "action": "check_inmail_seat", "params": { "recruiter": true } } ``` # Get Profile Comments Source: https://docs.linkupapi.com/api-reference/v2/profiles/get-comments POST /v2/profiles Retrieve the comments made by a user on posts and articles. ## Overview Fetches the list of comments made by a specified user on posts and articles. Pagination is **cursor-based** — pass the `next_cursor` returned by a previous call to fetch the next page. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. The platform returns up to **50 comments per internal request**, so requesting `count: 100` triggers only 2 upstream calls. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_comments"`. **params** `object` **params properties** **profile_url** `string` *required* URL of the target user's profile on the connected platform. **count** `integer` (default: 10) Number of comments to return. Defaults to `10`. **cursor** `string` Pagination cursor returned by a previous request as `pagination.next_cursor`. Omit for the first page. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **comments** `array` List of comments made by the user. **comment item properties** **comment_id** `string` Internal identifier of the comment update. **comment_content** `string` The text content of the comment. **comment_time** `string` Relative time of the comment (e.g. `"6h"`, `"3d"`). **comment_time_days** `integer` Age of the comment expressed in days. **comment_urn** `string` The comment itself (`urn:li:comment:(activity:,)`). **created_time** `integer` Exact creation time, Unix epoch in milliseconds. **num_likes** `integer` Reactions on the comment. **num_replies** `integer` Replies to the comment. **parent_comment_urn** `string` Only when the comment is a reply: the comment it replies to (`urn:li:comment:(activity:,)`). **commenter** `object` The author of the comment (name, profile_url, profile_picture, entity_urn, headline). **post** `object` The post the comment was made on (urn, url, content, author). **reply_to** `object` Only when the comment is a reply: `comment_id` (parent comment), `author_name`, `author_urn` (parent comment's author). **total_results** `integer` Number of comments returned in this response. **profile_url** `string` The profile URL that was queried. **entity_urn** `string` Unique identifier of the queried profile. **profile_urn** `string` The full URN of the queried profile. Treat it as an opaque string and pass it back exactly as returned. **pagination** `object` **pagination properties** **results_per_page** `integer` Maximum batch size used per upstream request (50). **pages_fetched** `integer` Number of internal upstream batches consumed to assemble this response. **has_more** `boolean` `true` if more results are available — pass `next_cursor` in the next request. **next_cursor** `string` Cursor to send as `cursor` in the next request to resume pagination. `null` when the end is reached. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_comments"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "comments": [ { "comment_id": "urn:li:fsd_update:(urn:li:activity:7421592107020185600,PROFILE_COMMENTS,DEBUG_REASON,DEFAULT,false)", "comment_content": "Great insights! Completely agree.", "comment_time": "89d", "comment_time_days": 89, "comment_urn": "urn:li:comment:(ugcPost:7421567698184323073,7421592106588172288)", "created_time": 1769507730000, "num_likes": 3, "num_replies": 1, "parent_comment_urn": "urn:li:comment:(ugcPost:7421567698184323073,7421580011223344556)", "commenter": { "name": "Jane Doe", "profile_url": "https://www.linkedin.com/in/jane-doe-42", "profile_picture": "https://media.licdn.com/dms/image/...", "entity_urn": "ACoAA...", "headline": "Product Manager at Acme Corp" }, "post": { "urn": "urn:li:ugcPost:7421567698184323073", "url": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7421567698184323073", "content": "After 6 years as a consultant, I'm thrilled to share...", "author": { "name": "John Smith", "profile_url": "https://www.linkedin.com/in/john-smith-99", "entity_urn": "urn:li:fsd_profile:ACoAA..." } }, "reply_to": { "comment_id": "urn:li:fsd_comment:(7421580011223344556,urn:li:ugcPost:7421567698184323073)", "author_name": "John Smith", "author_urn": "urn:li:fsd_profile:ACoAA..." } } ], "total_results": 1, "profile_url": "https://www.linkedin.com/in/jane-doe-42/", "entity_urn": "ACoAA...", "profile_urn": "urn:li:fsd_profile:ACoAA...", "pagination": { "results_per_page": 50, "pages_fetched": 1, "has_more": true, "next_cursor": "dXJuOmxpOmFjdGl2aXR5OjcyODE5ODI4NTAwOTMwMDI3NTItMTczNjE1OTk5MDE2OA==" } }, "metadata": { "action": "get_comments", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T08:35:34Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Invalid LinkedIn profile URL" }, "metadata": { "action": "get_comments", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-04-26T08:35:34Z" } } ``` # Get Company Info Source: https://docs.linkupapi.com/api-reference/v2/profiles/get-company POST /v2/profiles Retrieve detailed information about a company page. ## Overview Fetches detailed information about a company page (description, industry, employee count, follower count, logo, cover image, etc.). > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_company"`. **params** `object` **params properties** **company_url** `string` *required* URL of the company page on the connected platform (e.g., `https://www.linkedin.com/company/anthropicresearch/`). A numeric id URL also works (`https://www.linkedin.com/company/111891988`, e.g. from `company_urn` in [Get Profile](/api-reference/v2/profiles/get-profile)); `organizationType` and `defaultLocale` are then `null`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **name** `string` Company name. **universalName** `string` Vanity slug (last segment of the company URL). **description** `string` Company description / about section. **tagline** `string` Short tagline for the company. **websiteUrl** `string` Company website URL. **industry** `string` Industry sector. **employeeCount** `integer` Total employee count reported by the platform. **employeeCountRange** `object` Range of declared headcount (e.g. `{ "start": 501, "end": 1000 }`). **headquarter** `object` Headquarters object (or `null` when not provided). **logoUrl** `string` URL of the company logo. **coverImageUrl** `string` URL of the cover image. **callToAction** `object` Primary call-to-action button. Contains `displayText`, `visible`, `type`, `url`. **locations** `array` List of office locations. **organizationType** `string` Type of organization (e.g. `"Privately Held"`, `"Public Company"`, `"Nonprofit"`). **defaultLocale** `string` Default page locale (e.g. `"en"`). **followersCount** `integer` Number of followers. **pageMailbox** `boolean` Whether the page accepts inbound messages. **verified** `boolean` Whether the page is verified. **socialProofText** `string` Connection-based social proof string (e.g. `"Tridia & 162 other connections follow this page"`). **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_company"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "name": "Anthropic", "universalName": "anthropicresearch", "description": "We're an AI research company that builds reliable, interpretable, and steerable AI systems...", "tagline": "Anthropic is an AI safety and research company...", "websiteUrl": "https://www.anthropic.com/", "industry": "Research Services", "employeeCount": 4670, "employeeCountRange": { "start": 501, "end": 1000 }, "headquarter": null, "logoUrl": "https://media.licdn.com/dms/image/v2/...", "coverImageUrl": "https://media.licdn.com/dms/image/v2/...", "callToAction": { "displayText": "Visit website", "visible": true, "type": "VIEW_WEBSITE", "url": "https://www.anthropic.com/" }, "locations": [], "organizationType": "Privately Held", "defaultLocale": "en", "followersCount": 3054760, "pageMailbox": false, "verified": true, "socialProofText": "Tridia & 162 other connections follow this page" }, "metadata": { "action": "get_company", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "company_url is required." }, "metadata": { "action": "get_company", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Get Contact Info Source: https://docs.linkupapi.com/api-reference/v2/profiles/get-contact POST /v2/profiles Retrieve the contact information of a user. ## Overview Fetches the contact details for a specified profile, including email, phone number, Twitter handle, and websites. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_contact"`. **params** `object` **params properties** **profile_url** `string` *required* URL of the target user's profile on the connected platform. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` The contact information of the target user. **data properties** **email** `string` Email address of the user (if available). **phone** `string` Phone number of the user (if available). **twitter** `string` Twitter handle (if available). **websites** `array` List of websites associated with the profile. **address** `string` Physical address (if available). **birthday** `string` Birthday (if available). **connected_at** `string` Date when the connection was established (if connected). **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_contact"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "email": "john.doe@example.com", "phone": "+1234567890", "twitter": "johndoe", "websites": [ "https://johndoe.dev", "https://blog.johndoe.dev" ], "address": "San Francisco, CA", "birthday": null, "connected_at": "2023-06-15" }, "metadata": { "action": "get_contact", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "profile_url is required" }, "metadata": { "action": "get_contact", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Get My Profile Source: https://docs.linkupapi.com/api-reference/v2/profiles/get-me POST /v2/profiles Retrieve the profile information of the authenticated account. ## Overview Returns the full profile data for the account associated with the provided `account_id`. For a **WhatsApp** account, returns the linked number's profile instead: see the `200 (WhatsApp)` example. For an **iMessage** line, returns the line and its sending limits. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_me"`. **params.include_subscription** `boolean` (default: false) LinkedIn only. Adds `subscription` to the response: the member's exact LinkedIn plan, which `is_premium` alone can't tell apart (it is `true` for every paid plan). Adds about 2 seconds. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` The profile data of the authenticated account. **data properties** **public_id** `string` Public identifier (vanity name). **first_name** `string` First name. **last_name** `string` Last name. **headline** `string` Profile headline. **location** `string` Location text. **summary** `string` About / bio section. **industry** `string` Industry associated with the profile. **experience** `array` Work experience entries. Each item: `id` (to edit it with [Update Profile](/api-reference/v2/profiles/update-profile)), `company`, `title`, `description`, `start_date` and `end_date` formatted as `M/YYYY` (e.g. `"1/2025"`; `end_date` is `""` for current roles), `company_url`, `company_logo_url`. **education** `array` Education entries. Each item: `id`, `school`, `degree`, `field_of_study`, `start_date`, `end_date`, `school_url`, `school_logo_url`. **skills** `array` List of skills (array of strings). **profile_picture_url** `string` URL of the profile picture. **email** `string` Email address (when available). **phone** `string` Phone number (when available). **website** `string` Website URL (when available). **connection_count** `integer` Number of connections. **is_premium** `boolean` `true` if the account has any paid LinkedIn plan (Premium, Sales Navigator, Recruiter Lite…). **subscription** `object | null` Only with `include_subscription: true`. `plan` is LinkedIn's own plan name (e.g. `"Sales Navigator Core"`, `"Recruiter Lite"`), `null` without a paid plan; `renewal` is LinkedIn's renewal line (e.g. `"Renews on November 23, 2026"`). `subscription` is `null` when LinkedIn's subscription page could not be read. **profile_views** `integer` Profile views in the last 90 days (Premium analytics; `0` when not exposed). **post_impressions** `integer` Post impressions in the last 7 days (Premium analytics; `0` when not exposed). **data properties (WhatsApp)** **phone_number** `string` Linked number, digits only. **name** `string` WhatsApp display name. **profile_picture_url** `string | null` `null` when hidden by the owner's privacy settings. **about** `string | null` "About" text. `null` when hidden. **is_business** `boolean` `true` for a WhatsApp Business number; `business` then holds `category`, `description`, `email`, `website`, `address`. **data properties (iMessage)** **phone_number** `string` The line's number, international format. **imessage_link** `string` Link that opens a conversation with the line. **contact_card** `object | null` Name and photo shown when a contact saves the number. **sending_limits** `object` Where the line stands today: `new_conversations_per_24h`, `new_conversations_last_24h`, `new_conversations_left`, `contacts_last_24h` / `contacts_per_24h`, `contacts_last_30_days` / `contacts_per_30_days`, `reply_rate`, `warmed_up`. See [iMessage limits](/api-reference/v2/best-practices#imessage-limits). **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_me"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "public_id": "jane-doe-12345", "first_name": "Jane", "last_name": "Doe", "headline": "Senior Software Engineer at Acme Corp", "location": "San Francisco Bay Area", "summary": "Engineer focused on distributed systems.", "industry": "Computer Software", "experience": [ { "id": "2543928369", "company": "Acme Corp", "title": "Senior Software Engineer", "description": "Leading the platform team.", "start_date": "1/2023", "end_date": "", "company_url": "https://linkedin.com/company/acme-corp", "company_logo_url": "https://media.licdn.com/dms/image/v2/.../company-logo.jpg" } ], "education": [ { "id": "1271230878", "school": "Stanford University", "degree": "B.S.", "field_of_study": "Computer Science", "start_date": "9/2014", "end_date": "6/2018" } ], "skills": ["Python", "Distributed Systems", "Kubernetes"], "profile_picture_url": "https://media.licdn.com/dms/image/v2/.../profile.jpg", "email": "jane.doe@example.com", "phone": "", "website": "", "connection_count": 842, "is_premium": true, "profile_views": 0, "post_impressions": 0, "subscription": { "plan": "Sales Navigator Core", "renewal": "Renews on November 23, 2026" } }, "metadata": { "action": "get_me", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 200 (WhatsApp) theme={null} { "success": true, "data": { "platform": "whatsapp", "phone_number": "33612345678", "jid": "33612345678@s.whatsapp.net", "name": "Jane Doe", "profile_url": "https://wa.me/33612345678", "profile_picture_url": "https://pps.whatsapp.net/v/t61/.../profile.jpg", "about": "Available", "about_set_at": "2025-11-14T12:18:49.000Z", "is_business": false, "business": null, "country": "FR", "connected_at": "2026-09-26T14:25:03Z" }, "metadata": { "action": "get_me", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-09-27T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "account_id or account_ids is required" }, "metadata": { "action": "get_me", "account_id": null, "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Get Profile Posts Source: https://docs.linkupapi.com/api-reference/v2/profiles/get-posts POST /v2/profiles Retrieve the posts published by a user, newest first. ## Overview Fetches the posts authored by a specified user (their **Activity › Posts** tab). Results are returned in reverse-chronological order and only include the user's own posts — reactions, comments and reshares are excluded unless `include_reshares` is set. Pagination is **cursor-based** — pass the `next_cursor` returned by a previous call to fetch the next page. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Ignore this if you're on per-seat pricing: usage is unlimited. > [!TIP] > > To search posts by keyword or across several authors, use [`POST /v2/content` → `search`](/api-reference/v2/content/search) instead. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_posts"`. **params** `object` **params properties** **profile_url** `string` *required* URL of the target user's profile on the connected platform. **count** `integer` (default: 10) Number of posts to return (max `500`). **cursor** `string` Pagination cursor returned by a previous request as `pagination.next_cursor`. Omit for the first page. **include_reshares** `boolean` (default: false) Also return the user's activity items (reshares, liked or commented posts). Those items carry an `activity_header` such as `"Jane Doe likes this"`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **posts** `array` List of posts, newest first. **post item properties** **backend_urn** `string` Activity URN of the post (`urn:li:activity:...`). Use it with the content actions (`like`, `comment`, `get_comments`…). **activity_id** `string` Numeric part of the activity URN, as a string. **shareUrl** `string` Public URL of the post. **text** `string` Text content of the post. **published_at** `integer` Publication time as a Unix timestamp (seconds). **numLikes** `integer` Total number of reactions. **numComments** `integer` Number of comments. **numShares** `integer` Number of reposts. **reactions** `object` Reaction counts by type (`LIKE`, `EMPATHY`, `PRAISE`, `INTEREST`, `APPRECIATION`, `ENTERTAINMENT`). **content** `object` Attached media. `type` is one of `text`, `image`, `article`, `video`, `document`, `poll`, `celebration`; the other fields depend on the type (`images`, `title`, `url`, `thumbnail`…). **actor_name** `string` Name of the author. **actor_description** `string` Headline of the author. **actor_profile_url** `string` Profile URL of the author. **is_reshare** `boolean` `true` when the post is a repost. The original post is then available in `original_post`. **total_results** `integer` Number of posts returned in this response. **profile_url** `string` The profile URL that was queried. **profile_urn** `string` The full URN of the queried profile. **pagination** `object` **pagination properties** **has_more** `boolean` `true` if more results are available — pass `next_cursor` in the next request. **next_cursor** `string` Cursor to send as `cursor` in the next request. `null` when the end is reached. **pages_fetched** `integer` Number of internal upstream batches consumed to assemble this response. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_posts"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "profile_url": "https://www.linkedin.com/in/williamhgates", "profile_urn": "urn:li:fsd_profile:ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc", "posts": [ { "shareAudience": "PUBLIC", "backend_urn": "urn:li:activity:7497818529442742272", "activity_id": "7497818529442742272", "shareUrl": "https://www.linkedin.com/posts/williamhgates_a-city-mobilizes-against-a-stubborn-health-activity-7497818529442742272-yNR5", "text": "After a major surge in dengue fever, the Brazilian city of Belém went all in to fight the virus...", "numLikes": 545, "numComments": 88, "numShares": 37, "reactions": { "LIKE": 484, "EMPATHY": 21, "APPRECIATION": 20, "PRAISE": 10, "INTEREST": 8, "ENTERTAINMENT": 1 }, "actor_name": "Bill Gates", "actor_description": "Chair, Gates Foundation and Founder, Breakthrough Energy", "actor_image": "https://media.licdn.com/dms/image/...", "actor_profile_url": "https://www.linkedin.com/in/williamhgates", "created_time": 1787619240, "published_at": 1787619240, "content": { "type": "article", "title": "A city mobilizes against a stubborn health threat", "subtitle": "gatesnotes.com", "url": "https://www.gatesnotes.com/...", "thumbnail": "https://media.licdn.com/dms/image/..." }, "post_images": [], "is_reshare": false } ], "total_results": 1, "pagination": { "count": 1, "has_more": true, "next_cursor": "1|dXJuOmxpOmFjdGl2aXR5Ojc0OTc4MTg1Mjk0NDI3NDIyNzItMTc4NzYxOTI0MDE1MQ==", "pages_fetched": 1 } }, "metadata": { "action": "get_posts", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-08-25T10:48:18Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "profile_url is required" }, "metadata": { "action": "get_posts", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-08-25T10:48:18Z" } } ``` # Get Profile Info Source: https://docs.linkupapi.com/api-reference/v2/profiles/get-profile POST /v2/profiles Retrieve the profile information of any user. ## Overview Fetches detailed profile data for a specified user. You can identify the target profile using a profile URL, a public identifier, or a profile URN. **WhatsApp:** pass `params.phone_number` to get a contact's profile, with the same fields as [Get My Profile](/api-reference/v2/profiles/get-me) (WhatsApp). > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get"`. **params** `object` **params properties** **profile_url** `string` *required* Profile URL. Accepts a classic URL (`/in/...`) or a Sales Nav lead URL (`/sales/lead/...`). Required if `identifier` and `profile_urn` are not provided. **identifier** `string` Public identifier (vanity name). Alternative to `profile_url`. **profile_urn** `string` Profile URN. Alternative to `profile_url`. **sales_nav** `boolean` (default: false) Also return `open_link` (Open Profile) and `inmail_eligible`. Requires a Sales Navigator seat. Auto-enabled for a Sales Nav lead URL. **recruiter** `boolean` (default: false) Read the candidate from the account's **Recruiter seat** (pass the candidate's `profile_urn`). See [Recruiter](#recruiter) below. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` The profile data of the target user. **data properties** **public_id** `string` Public identifier (vanity name). **profile_urn** `string` Unique identifier of the profile. Treat it as an opaque string and pass it back exactly as returned. **profile_url** `string` Canonical profile URL. **first_name** `string` First name. **last_name** `string` Last name. **headline** `string` Profile headline. **location** `string` Location text. **summary** `string` About / bio section. **industry** `string` Industry associated with the profile. **experience** `array` Work experience entries. Each item: `company`, `title`, `description`, `start_date` and `end_date` formatted as `M/YYYY` (e.g. `"10/2025"`; `end_date` is `""` for current roles), `company_url`, `company_logo_url`, `company_urn` (`urn:li:fsd_company:`, `null` when the company has no LinkedIn page). **education** `array` Education entries. Each item: `school`, `degree`, `field_of_study`, `start_date`, `end_date` (years, e.g. `"2018"`), `school_logo_url`, `grade` (`null` if none), `school_urn` (`urn:li:fsd_school:`, `null` when the school has no LinkedIn page). **skills** `array` List of skills (array of strings). **profile_picture_url** `string` URL of the profile picture. **isOpenToWork** `boolean` Profile displays the "Open to work" badge. **isHiring** `boolean` Profile displays the "Hiring" badge. **isPremium** `boolean` The person has a LinkedIn Premium subscription. **isInfluencer** `boolean` LinkedIn Influencer badge. **isCreator** `boolean` Creator mode is on. **object_urn** `string` Numeric member identifier (`urn:li:member:`). **primary_locale** `object` Profile language: `country` and `language` (e.g. `{"country": "FR", "language": "fr"}`). **relationship** `string` Network distance between the connected account and this profile: `"1st degree"`, `"2nd degree"`, `"3rd+ degree"` or `"Out of network"`. Same vocabulary as `connection_level` in [Search People](/api-reference/v2/profiles/search-people). **connectionDate** `string` Date the two profiles connected (`YYYY-MM-DD HH:MM:SS`). Empty unless `relationship` is `"1st degree"`. **email** `string` Email from the contact info section. Only visible for 1st degree connections that share it, otherwise `""`. **phone** `string` Phone from the contact info section, same visibility as `email`. **website** `string` Website from the contact info section, same visibility as `email`. **open_link** `boolean` Reachable via Open Profile (free InMail). Only with `sales_nav: true`. **inmail_eligible** `boolean` InMail can be sent (no restriction). Only with `sales_nav: true`. **inmail_restriction** `string` Reason an InMail cannot be sent, `"NO_RESTRICTION"` otherwise. Only with `sales_nav: true`. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "public_id": "john-smith-42", "profile_urn": "ACoAABCgruIBcpBVBLKMJQD2Do7tIBxKFIQNvss", "profile_url": "https://www.linkedin.com/in/john-smith-42", "first_name": "John", "last_name": "Smith", "headline": "CEO @Acme | Love discussing automation, agentic tech, and data engineering", "location": "Greater Paris, France", "summary": "I have co-founded:\n- Acme (Email Finder & Verifier, www.acme.example)\n- Beta Labs (Model mapping, www.betalabs.example)\n\nIn total, over 50 jobs created.", "industry": "Internet", "experience": [ { "company": "Acme", "title": "CEO", "description": "Acme is a SaaS to find and verify email addresses.", "start_date": "10/2022", "end_date": "", "company_url": "https://linkedin.com/company/acme", "company_logo_url": "https://media.licdn.com/dms/image/v2/.../company-logo_400_400/...", "company_urn": "urn:li:fsd_company:12345678" }, { "company": "Beta Labs", "title": "Head of R&D", "description": "", "start_date": "5/2019", "end_date": "8/2022", "company_url": "https://linkedin.com/company/beta-labs", "company_logo_url": "https://media.licdn.com/dms/image/v2/.../company-logo_400_400/...", "company_urn": "urn:li:fsd_company:87654321" } ], "education": [ { "school": "Sample University", "degree": "MSc", "field_of_study": "Management", "start_date": "2008", "end_date": "2011", "school_logo_url": "https://media.licdn.com/dms/image/v2/.../company-logo_400_400/...", "grade": "Master of Science - Management", "school_urn": "urn:li:fsd_school:12345" }, { "school": "Example Institute", "degree": "", "field_of_study": "", "start_date": "", "end_date": "", "school_logo_url": "", "grade": null, "school_urn": null } ], "skills": ["Business Development", "Entrepreneurship", "Start-ups", "Team Management", "CRM"], "profile_picture_url": "https://media.licdn.com/dms/image/v2/.../profile-displayphoto-shrink_400_400/...", "isOpenToWork": false, "isHiring": true, "isPremium": true, "isInfluencer": false, "isCreator": false, "object_urn": "urn:li:member:123456789", "primary_locale": {"country": "FR", "language": "fr"}, "email": "john.smith@example.com", "phone": "0600000000", "website": "https://www.acme.example", "relationship": "1st degree", "connectionDate": "2026-05-12 12:55:48" }, "metadata": { "action": "get", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Profile not found" }, "metadata": { "action": "get", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` ## Recruiter With `recruiter: true`, pass the `profile_urn` (`urn:li:ts_profile:…`) of a [Search People Recruiter](/api-reference/v2/profiles/search-people-recruiter) result. You get the same shape as a search result, plus contact info when LinkedIn exposes it, summary, follower count and the seat's own counters on that person. `include_activity: true` adds their recent activity. ```json theme={null} { "account_id": "your-account-id", "action": "get", "params": { "recruiter": true, "profile_urn": "urn:li:ts_profile:AEMAA…" } } ``` The Recruiter lookup only knows `profile_urn`s (the bare `AEMAA…` id works too). A public identifier, a profile URL or a classic `ACoAA…` URN is refused with `INVALID_PARAMS` (400), no credit, nothing sent to LinkedIn. To read a profile by its public identifier, call this action with the LinkedIn account (the seat's `parent_account_id`) instead. ```json theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "In Recruiter mode (a Recruiter seat, or recruiter:true), profiles/get takes a candidate's profile_urn (urn:li:ts_profile:…) from profiles/search_people_recruiter, not a public identifier or profile URL. To read a profile by its public identifier or URL, call profiles/get with the LinkedIn account (account_id 69c127c37cae0494dd827286)." }, "metadata": { "action": "get", "credits_consumed": 0, "timestamp": "2026-10-07T12:00:00Z" } } ``` # Get Profile Reactions Source: https://docs.linkupapi.com/api-reference/v2/profiles/get-reactions POST /v2/profiles Retrieve the reactions (likes, celebrates, etc.) made by a user. ## Overview Fetches the list of reactions made by a specified user on posts and comments. Pagination is **cursor-based** — pass the `next_cursor` returned by a previous call to fetch the next page. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. The platform returns up to **50 reactions per internal request**, so requesting `count: 100` triggers only 2 upstream calls. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_reactions"`. **params** `object` **params properties** **profile_url** `string` *required* URL of the target user's profile on the connected platform. **count** `integer` (default: 10) Number of reactions to return. Defaults to `10`. **cursor** `string` Pagination cursor returned by a previous request as `pagination.next_cursor`. Omit for the first page. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **reactions** `array` List of reactions made by the user. **reaction item properties** **reaction_id** `string` Internal identifier of the reaction update. **reaction_type** `string` Type of reaction: `LIKE`, `LOVE`, `CELEBRATE`, `SUPPORT`, `INSIGHTFUL`, or `FUNNY`. **reaction_target** `string` Target of the reaction: `POST` or `COMMENT`. **reaction_time** `string` Relative time of the reaction (e.g. `"6h"`, `"3d"`). **reaction_time_days** `integer` Age of the reaction expressed in days. **reactor** `object` The author of the reaction (name, profile_url, profile_picture, entity_urn, headline). **post** `object` The post that was reacted to (urn, url, content, author). **comment** `object` When `reaction_target == "COMMENT"`, the comment that was reacted to (content, author). **total_results** `integer` Number of reactions returned in this response. **profile_url** `string` The profile URL that was queried. **entity_urn** `string` Unique identifier of the queried profile. **profile_urn** `string` The full URN of the queried profile. Treat it as an opaque string and pass it back exactly as returned. **pagination** `object` **pagination properties** **results_per_page** `integer` Maximum batch size used per upstream request (50). **pages_fetched** `integer` Number of internal upstream batches consumed to assemble this response. **has_more** `boolean` `true` if more results are available — pass `next_cursor` in the next request. **next_cursor** `string` Cursor to send as `cursor` in the next request to resume pagination. `null` when the end is reached. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_reactions"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "reactions": [ { "reaction_id": "urn:li:fsd_update:(urn:li:activity:7453841996378718208,PROFILE_REACTIONS,DEBUG_REASON,DEFAULT,false)", "reaction_type": "LIKE", "reaction_target": "POST", "reaction_time": "2d", "reaction_time_days": 2, "reactor": { "name": "Jane Doe", "profile_url": "https://www.linkedin.com/in/jane-doe-42", "profile_picture": "https://media.licdn.com/dms/image/...", "entity_urn": "ACoAA...", "headline": "Product Manager at Acme Corp" }, "post": { "urn": "urn:li:ugcPost:7000000000000000001", "url": "https://www.linkedin.com/feed/update/urn:li:ugcPost:7000000000000000001", "content": "Excited to announce our new product launch...", "author": { "name": "John Smith", "profile_url": "https://www.linkedin.com/in/john-smith-99", "entity_urn": "urn:li:fsd_profile:ACoAA..." } } } ], "total_results": 1, "profile_url": "https://www.linkedin.com/in/jane-doe-42/", "entity_urn": "ACoAA...", "profile_urn": "urn:li:fsd_profile:ACoAA...", "pagination": { "results_per_page": 50, "pages_fetched": 1, "has_more": true, "next_cursor": "dXJuOmxpOmFjdGl2aXR5Ojc0NDg0ODQ5NDgyODc3Mzc4NTYtMTc3NTg1NzE5Nzc2Nw==" } }, "metadata": { "action": "get_reactions", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T08:40:31Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Invalid LinkedIn profile URL" }, "metadata": { "action": "get_reactions", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-04-26T08:40:31Z" } } ``` # Get Profile Viewers Source: https://docs.linkupapi.com/api-reference/v2/profiles/get-viewers POST /v2/profiles Retrieve the list of people who recently viewed your profile. ## Overview Returns the list of users who recently viewed the authenticated account's profile (Premium "Who Viewed My Profile" data). Pagination is **offset-based** — set `count` for the page size and `offset` to skip ahead. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Some viewers can be **blurred** (the platform anonymizes non-Premium-tier visitors when out of quota); they appear with `is_blurred: true` and lack `profile_url`. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_viewers"`. **params** `object` **params properties** **count** `integer` (default: 10) Number of viewers to return. Defaults to `10`. **offset** `integer` (default: 0) Zero-indexed offset into the viewers list. Defaults to `0`. Use `pagination.next_offset` from a previous response to fetch the next page. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **viewers** `array` List of viewer objects. **viewer item properties** **title** `string` Display label (e.g. `"Public Speaker in the Staffing and Recruiting industry from London"` for blurred viewers, or the person's full name when revealed). **image_url** `string` URL of the profile picture (or generic blurred avatar). **is_blurred** `boolean` `true` when the platform has anonymized the viewer (Premium quota exceeded or visitor used Private mode). **cta_action** `string` Action label the platform proposes (e.g. `"View"`, `"Connect"`). **profile_url** `string` Public profile URL — `null` when `is_blurred` is `true`. **entity_urn** `string` Unique identifier of the viewer — `null` when `is_blurred` is `true`. Treat it as an opaque string and pass it back exactly as returned. **total_results** `integer` Number of viewers returned in this response. **pagination** `object` **pagination properties** **offset** `integer` Offset of the first viewer in this response. **count** `integer` Number of viewers returned (mirrors `total_results`). **total** `integer` Total number of viewers reported by the platform (may be `0` when not exposed). **has_more** `boolean` `true` if more viewers are available beyond this batch. **next_offset** `integer` Offset to send as `offset` in the next request. `null` when exhausted. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_viewers"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ## Account analytics `"action": "get_analytics"` (no params) returns the account's own analytics over the past 7 days: `content` (`impressions`, `members_reached`, `daily_impressions`, `top_posts`) and `audience` (`total_followers`, `daily_new_followers`, `follower_demographics`). 1 credit. ```json 200 theme={null} { "success": true, "data": { "viewers": [ { "title": "Someone at The Hive Company", "image_url": "https://media.licdn.com/media/AAYQBAT4...", "is_blurred": true, "cta_action": "View", "profile_url": null, "entity_urn": null }, { "title": "Jane Doe", "image_url": "https://media.licdn.com/dms/image/v2/...", "is_blurred": false, "cta_action": "Connect", "profile_url": "https://www.linkedin.com/in/janedoe", "entity_urn": "urn:li:fsd_profile:ACoAA..." } ], "total_results": 2, "pagination": { "offset": 0, "count": 2, "total": 87, "has_more": true, "next_offset": 10 } }, "metadata": { "action": "get_viewers", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "account_id or account_ids is required" }, "metadata": { "action": "get_viewers", "account_id": null, "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Search Companies Source: https://docs.linkupapi.com/api-reference/v2/profiles/search-companies POST /v2/profiles Search for company pages using various filters. ## Overview Search for company pages using keyword, location, sector, and size filters. Supports pagination for retrieving large result sets. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"search_companies"`. **params** `object` **params properties** **keyword** `string` General keyword to search for across company profiles. **location** `string | string[]` Filter by company location. Accepts a single string or an array (e.g., `["New York", "Germany"]`). **sector** `string | string[]` Filter by industry sector. Accepts a single string or an array. **company_size** `string | string[]` Filter by company size range. Accepts a single string or an array (e.g., `["11-50", "201-500"]`). **offset** `integer` (default: 0) Index of the first result to return (0-based). Combine with `count` to paginate. Any value works — it does not have to align to a page boundary. **count** `integer` (default: 10) Number of results to return, starting at `offset`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **companies** `array` Matching companies. **company properties** **company_name** `string` Company name. **company_url** `string` LinkedIn company page URL. **industry** `string` Industry, e.g. `"IT Services and IT Consulting"`. **location** `string` Headquarters location. **logo_url** `string` Company logo URL. **subscribers** `string` Follower count as displayed, e.g. `"114K followers"`. **subscribers_count** `integer` Same count as a number. **job_offers** `string` Open jobs as displayed, `null` when LinkedIn shows none. **job_offers_count** `integer` Same count as a number, `null` when unavailable. **total_results** `integer` Number of companies returned. **total_available_results** `integer` Total number of matching companies available. ```json 200 theme={null} { "success": true, "data": { "companies": [ { "company_name": "Testbytes", "company_url": "https://www.linkedin.com/company/softwaretestingcompany/", "industry": "IT Services and IT Consulting", "location": "New York, NY", "logo_url": "https://media.licdn.com/dms/image/...", "subscribers": "114K followers", "subscribers_count": 114000, "job_offers": null, "job_offers_count": null } ], "total_results": 1, "total_available_results": 872258 }, "metadata": { "action": "search_companies", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-28T12:00:00Z" } } ``` # Search Companies Nav Source: https://docs.linkupapi.com/api-reference/v2/profiles/search-companies-nav POST /v2/profiles Search accounts (companies) with Sales Nav. ## Overview Run a **Sales Nav account search**. It uses the account's Sales Nav seat, which is activated automatically on first use. You can define the search with the filters below, or copy a Sales Nav company search URL (or an account list URL) and pass it as `sales_nav_url`. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Requires a Sales Nav seat on the account. Ignore this if you're on per-seat pricing: usage is unlimited. > [!NOTE] > > Within a filter, values are combined with **OR**. Different filters are combined with **AND**. An invalid value, or a name Sales Nav doesn't know, returns `INVALID_PARAMS` (0 credits) instead of being ignored. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. Must have a Sales Nav seat. **action** `string` *required* Must be `"search_companies_nav"`. **params** `object` **params properties** **sales_nav_url** `string` A copied Sales Nav URL: a company search (`.../sales/search/company?query=...` or `#query=...`) or an account list (`.../sales/lists/company/`). Every filter is replicated verbatim. Takes precedence over the filters below. **keyword** `string` Free-text keyword. **industry** `string[]` Industry names (e.g. `["Software Development"]`) or ids from [Typeahead](/api-reference/v2/profiles/typeahead) (`category: sales_nav`, `type: industry`). Sub-industries are included (e.g. `Software Development` also returns `Computer Games`). **location** `string[]` Headquarters location. Place names, super-regions (`EMEA`, `APAC`, `DACH`, `Benelux`, `Oceania`, `North America`) or ids from Typeahead (`type: location`). **company_headcount** `string[]` Accepted: `1-10`, `11-50`, `51-200`, `201-500`, `501-1000`, `1001-5000`, `5001-10000`, `10001+`. Matched on the number of LinkedIn members (`employee_display_count`), not on the size the company declares (`employee_count_range`). **headcount_growth** `object` Company headcount growth in %, as `{ "min": 10, "max": 50 }`. Either bound can be omitted. **department_headcount** `object` Headcount of one department, as `{ "department": "Sales", "min": 5, "max": 50 }`. `department` takes the same names as `function` in [Search People Nav](/api-reference/v2/profiles/search-people-nav). **department_headcount_growth** `object` Headcount growth of one department in %, same shape as `department_headcount`. **annual_revenue** `object` Annual revenue in millions, as `{ "min": 1, "max": 100, "currency": "EUR" }`. Bounds must be one of `0`, `0.5`, `1`, `2.5`, `5`, `10`, `20`, `50`, `100`, `500`, `1000`, `1001` (= more than 1000). `currency` defaults to `USD`. **fortune** `string[]` Accepted: `50`, `51-100`, `101-250`, `251-500`. **followers** `string[]` Number of followers. Accepted: `1-50`, `51-100`, `101-1000`, `1001-5000`, `5000+`. **hiring_on_linkedin** `boolean` Only companies with open jobs on LinkedIn. **recent_funding** `boolean` Only companies with a funding event in the last 12 months. **leadership_changes** `boolean` Only companies with senior leadership changes in the last 3 months. **first_degree_connections** `boolean` Only companies where the seat has 1st-degree connections. `saved_accounts: true`: only the accounts the seat saved. **postal_code** `string[]` Headquarters postal codes, or ids from Typeahead (`type: postal_code`). **account_list** `string[]` Your saved account lists, by name or id from Typeahead (`type: account_list`). **exclude** `object` Companies to **exclude**, as `{ "industry": [...], "location": [...] }`. Sales Nav only supports exclusion on these two filters. **offset** `integer` (default: 0) Index of the first company to return (0-based). **count** `integer` (default: 10) Number of companies to return, starting at `offset`. > [!WARNING] > > Sales Nav only lets a single search be browsed up to **2500 results**. An `offset` of 2500 or more returns `INVALID_PARAMS` (0 credits). ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **companies** `array` List of matching companies. **company properties** **company_name** `string` Company name. **company_id** `string` LinkedIn company id. **company_url** `string` Company page URL. **sales_nav_url** `string` Sales Nav account URL. **entity_urn** `string` `urn:li:fs_salesCompany:`. **industry** `string` Industry. **employee_count_range** `string` Headcount bracket, e.g. `"51-200 employees"`. **employee_display_count** `string` Headcount as shown by Sales Nav, e.g. `"120"` or `"12K+"`. **description** `string` Company description. **logo_url** `string` Logo URL (largest size). **saved** `boolean` Whether the seat saved this account. **list_count** `integer` Number of your account lists it belongs to. **spotlights** `array` Sales Nav spotlights, each `{ "type", "text" }`, e.g. `HIRING_ON_LINKEDIN`, `RECENT_FUNDING_EVENT`, `SENIOR_LEADERSHIP_CHANGE`. **total_results** `integer` Number of companies returned. **offset** `integer` Echoes the requested `offset`. Add `total_results` to it for the next page. **total_available_results** `integer` Total number of matching companies. ```json 200 theme={null} { "success": true, "data": { "total_results": 1, "offset": 0, "total_available_results": 73, "companies": [ { "company_name": "Certi-Trust", "company_id": "7796325", "company_url": "https://www.linkedin.com/company/7796325", "sales_nav_url": "https://www.linkedin.com/sales/company/7796325", "entity_urn": "urn:li:fs_salesCompany:7796325", "industry": "IT System Testing and Evaluation", "employee_count_range": "51-200 employees", "employee_display_count": "120", "description": "Cybersecurity audit and certification.", "logo_url": "https://media.licdn.com/dms/image/...", "saved": false, "list_count": 0, "spotlights": [ { "type": "HIRING_ON_LINKEDIN", "text": "Hiring on Linkedin" } ] } ] }, "metadata": { "action": "search_companies_nav", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-26T12:00:00Z" } } ``` ## Example ```json theme={null} { "account_id": "your-account-id", "action": "search_companies_nav", "params": { "keyword": "cyber", "location": ["France"], "company_headcount": ["51-200", "201-500"], "annual_revenue": { "min": 1, "max": 100, "currency": "EUR" }, "hiring_on_linkedin": true, "exclude": { "industry": ["Staffing and Recruiting"] }, "count": 25 } } ``` ## Company page `get_company_nav` `{ company, include?, headcount_timespan? }` returns a company as Sales Nav shows it: `revenue_range`, `headquarters`, `website`, `year_founded`, `employee_count` and `employee_growth` (%, over `6_months`, `1_year`, `2_years`). `company` takes an id, a company page URL or a Sales Nav company URL. 1 credit per call. `include` adds sections, one LinkedIn request each: * `headcount` (default): monthly headcount, total and per department, over `headcount_timespan` (`6_months`, `1_year` default, `2_years`). * `decision_makers`: the leads Sales Nav recommends at the company, with spotlight counts. * `warm_paths`: your 1st and 2nd-degree connections there, TeamLink and alumni paths. * `news`: the company's recent posts and articles. A growth LinkedIn cannot compute (a company too young for the span) is `null`. # Search People Source: https://docs.linkupapi.com/api-reference/v2/profiles/search-people POST /v2/profiles Search for profiles using various filters. ## Overview Search for profiles using a combination of keyword, company, location, school, and other filters. Supports pagination for retrieving large result sets. There are two ways to define the search — pick whichever fits: 1. **Friendly filters** — pass human-readable values (e.g. `location: "Paris"`, `title: "CEO"`) and the API resolves them to the underlying ids for you. 2. **Copied LinkedIn search URL** — build the search visually on LinkedIn, copy the page URL, and pass it as `search_url`. Every filter is replicated verbatim, including ones with no friendly mapping (service category, profile language, open to volunteering, school free text, …). > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"search_people"`. **params** `object` **params properties** **search_url** `string` A copied LinkedIn people search URL (`https://www.linkedin.com/search/results/people/?...`), pasted as-is. When provided, its filters are used as-is and **take precedence** over the friendly filters below. The best way to replicate a complex search or to use filters that have no friendly mapping. Returns `INVALID_PARAMS` if the URL is not a people search or carries no filter at all. To list an event's attendees, pass the URL behind the event page's attendee list (`https://www.linkedin.com/search/results/people/?eventAttending=%5B%22%22%5D`), not the `/events/` page itself. LinkedIn only shows that list to accounts attending the event. **keyword** `string` General keyword to search for across profiles. **first_name** `string` Filter by first name. **last_name** `string` Filter by last name. **title** `string` Filter by current job title. **company_name** `string` Filter by current company name. **company_url** `string | string[]` Filter by company page URL, or a company id from [Typeahead](/api-reference/v2/profiles/typeahead). Accepts a single string or an array of strings for multiple companies. **past_company** `string | string[]` Filter by past company name, URL or id. Accepts a single string or an array. **location** `string | string[]` Filter by location name (e.g., `"San Francisco"`, `["Paris", "London"]`) or location id from [Typeahead](/api-reference/v2/profiles/typeahead). Accepts a single string or an array. **school_url** `string | string[]` Filter by school page URL or school id. Accepts a single string or an array. **industry** `string | string[]` Filter by industry. Accepts a single string or an array. **network** `string | string[]` Filter by network relationship. Accepted values: `"F"` (1st degree), `"S"` (2nd degree), `"O"` (3rd degree and beyond). Accepts a single string or an array (e.g., `["F", "S"]`). **connection_of** `string` Filter to show connections of a specific profile (profile URL, identifier, or the id returned by Typeahead `people`). **follower_of** `string` Filter to show followers of a specific company or profile. **offset** `integer` (default: 0) Index of the first result to return (0-based). Combine with `count` to paginate. Any value works — it does not have to align to a page boundary. **count** `integer` (default: 10) Number of results to return, starting at `offset`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **profiles** `array` Matching profiles. **profile properties** **name** `string` Full name. **job_title** `string` Current headline / job title. **connection_level** `string` Degree, e.g. `"1st degree"`, `"2nd degree"`. **location** `string` Geographic location. **profile_url** `string` Profile URL. **profile_picture** `string` Profile picture URL. **total_results** `integer` Number of profiles returned. **total_available_results** `integer` Total number of matching profiles available. ```json 200 theme={null} { "success": true, "data": { "profiles": [ { "name": "Jane Doe", "job_title": "Growth Marketing Specialist", "connection_level": "2nd degree", "location": "Greater Nice Metropolitan Area", "profile_url": "https://www.linkedin.com/in/janedoe", "profile_picture": "https://media.licdn.com/dms/image/..." } ], "total_results": 1, "total_available_results": 15400 }, "metadata": { "action": "search_people", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-28T12:00:00Z" } } ``` # Search People Nav Source: https://docs.linkupapi.com/api-reference/v2/profiles/search-people-nav POST /v2/profiles Search leads with Sales Nav using its full filter set. ## Overview Run a **Sales Nav lead search** and get back richly-detailed leads. This uses the account's Sales Nav seat — see [Connect Account](/api-reference/v2/accounts/login) to activate it. There are two ways to define the search — pick whichever fits: 1. **Friendly filters** — pass human-readable values (e.g. `seniority_level: ["Director", "CXO"]`) and the API resolves them to the underlying ids for you. 2. **Copied Sales Nav URL** — build the search visually in Sales Nav, copy the page URL, and pass it as `sales_nav_url`. Every filter is replicated verbatim, including ones with no friendly mapping (buyer intent, spotlights, …). Saved-search and lead-list URLs work too. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Requires a Sales Nav seat on the account. Ignore this if you're on per-seat pricing: usage is unlimited. > [!NOTE] > > Within a single filter, multiple values are combined with **OR** (e.g. `seniority_level: ["VP", "CXO"]` = VP **or** CXO). Different filters are combined with **AND**. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. Must have a Sales Nav seat. **action** `string` *required* Must be `"search_people_nav"`. **params** `object` **params properties** **sales_nav_url** `string` A copied Sales Nav people URL, pasted as-is. Three kinds work: a search (`.../sales/search/people?query=...` or `#query=...`), a saved search (`.../sales/search/people?savedSearchId=...`) and a lead list (`.../sales/lists/people/`). When provided, it **takes precedence** over the friendly filters below. The best way to replicate a complex search or use filters that have no friendly mapping. **saved_search_id** `string` Id of a Sales Nav saved search, run as it was saved. Same as passing its `savedSearchId` URL. **keyword** `string` Free-text keyword searched across profiles. **current_title** `string | string[]` Current job title: free text (`"Head of Growth"`) or Sales Nav title ids (`["592", "48"]`). Several values match any of them. **past_title** `string | string[]` Past job title, same format as `current_title`. **seniority_level** `string[]` Seniority. Names or ids. Accepted names: `In Training`, `Entry Level`, `Senior`, `Strategic`, `Entry Level Manager`, `Experienced Manager`, `Director`, `Vice President` (`VP`), `CXO`, `Owner / Partner`. **function** `string[]` Job function, e.g. `["Sales", "Marketing", "Engineering"]`. Names or ids. **years_in_current_position** `string[]` Tenure in current position. Accepted: `Less than 1 year`, `1 to 2 years`, `3 to 5 years`, `6 to 10 years`, `More than 10 years`. **years_at_current_company** `string[]` Tenure at current company. Same values as above. **years_of_experience** `string[]` Total years of experience. Same values as above. **current_company** `string[]` Current company. Company names, company page URLs or ids from [Typeahead](/api-reference/v2/profiles/typeahead) (`category: sales_nav`). **past_company** `string[]` Past company. Names or URLs. **company_size** `string | string[]` Headcount range, e.g. `"51-200"`, `"1-10"`, `"51-1000"`, or a list of ranges (`["11-50", "201-500"]`). Expanded to the matching size brackets (OR). **company_type** `string[]` Accepted: `Public Company`, `Privately Held`, `Non Profit`, `Educational Institution`, `Partnership`, `Self Employed`, `Self Owned`, `Government Agency`. **company_headquarters** `string[]` Company HQ location. Super-regions (`EMEA`, `APAC`, `DACH`, `Benelux`, `Oceania`, `North America`) or any place name (resolved via geo typeahead). **industry** `string[]` Industry names (e.g. `["Software Development", "Financial Services"]`), resolved via typeahead. **first_name** `string` Filter by first name. **last_name** `string` Filter by last name. **geography** `string[]` Person location. Place names, super-regions, or location ids from Typeahead. **region** `string[]` Region / super-region (`EMEA`, `DACH`, `Benelux`, …) or place names. **postal_code** `string[]` Postal codes (e.g. `["75001"]`) or ids from Typeahead (`type: postal_code`). `postal_radius` widens the area: `5`, `10`, `25`, `35`, `50`, `75` or `100`. **profile_language** `string[]` Profile language. ISO code (`en`, `fr`) or name (`English`, `French`). **school** `string[]` School names (e.g. `["Stanford University"]`), resolved via typeahead. **relationship** `string[]` Connection degree. Names/aliases `1st`, `2nd`, `3rd+`, `group`, or ids `F`, `S`, `O`, `A`. Alias: `connection_degree`. **connection_of** `string[]` People who are connections of a given person (name, or the id returned by Typeahead `people`). **category_interest** `string[]` Buyer category interest (product category names), resolved via typeahead. **shared_experiences** `boolean` Only leads you share an experience with (company, school, group). **changed_jobs** `boolean` Only leads who changed jobs in the last 90 days. Same form: `posted_on_linkedin` (last 30 days), `following_your_company`, `viewed_your_profile` (last 90 days), `past_colleague`, `past_customer`. **lead_interactions** `string[]` Your past interactions. Accepted: `Viewed profile` (`LIVP`), `Messaged` (`LIMP`). **persona** `string[]` One of your saved personas (name, resolved via typeahead). **group** `string[]` Group names, resolved via typeahead. **account_list** `string[]` Your saved account lists. `"ALL"` or a list name. **lead_list** `string[]` Your saved lead lists. `"ALL"` or a list name. **saved** `string[]` Your saved items. Accepted: `saved leads` (`SL`), `saved accounts` (`SA`). **exclude** `object` Leads to **exclude**, as `{ filter_name: [values] }` using the same filter names and value formats as above (names or ids). A filter can be included and excluded at once, e.g. `geography: ["France"]` with `exclude: { geography: ["Paris"] }`. Sales Nav only supports exclusion on: `current_company`, `past_company`, `current_title`, `past_title`, `geography`, `region`, `company_headquarters`, `industry`, `school`, `function`, `account_list`, `lead_list`, `lead_interactions`, `saved`. Any other key returns `INVALID_PARAMS` (0 credits). **offset** `integer` (default: 0) Index of the first lead to return (0-based). Combine with `count` to walk the result set page by page. Any value works — it does not have to align to a page boundary. **count** `integer` (default: 10) Number of leads to return, starting at `offset`. ### Paging `offset: 0, count: 25` returns leads 0–24, `offset: 25` the next 25. The response echoes `offset` back, so the next page is `offset + total_results`. > [!WARNING] > > Sales Nav only lets a single search be browsed up to **2500 results**, whatever `total_available_results` reports. An `offset` of 2500 or more returns `INVALID_PARAMS` (0 credits) — narrow the filters to reach deeper leads. > [!TIP] > > Every list filter also accepts raw ids directly, so you can mix friendly names and ids. Unknown values are ignored rather than causing an error. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **profiles** `array` List of matching leads. **lead properties** **name** `string` Full name. **first_name** `string` First name. `last_name` alongside. **member_urn** `string` `urn:li:member:`. **saved** `boolean` Saved as a lead by the seat. `list_count`: number of the seat's lists it is in. **pending_invitation** `boolean` An invitation is pending with the lead. **job_title** `string` Current job title. **company** `string` Current company. **location** `string` Geographic location. **profile_url** `string` Standard profile URL. **sales_nav_url** `string` Sales Nav lead URL. **recipient_urn** `string` Sales-Nav-specific URN (`urn:li:fs_salesProfile:(...)`) — pass it to [Send Message](/api-reference/v2/messages/send) to InMail this lead. **profile_picture** `string` Profile picture URL. **connection_level** `string` Connection degree (e.g. `"2"`). **headline** `string` Profile headline. **summary** `string` Profile summary / about. **premium** `boolean` Whether the lead has a Premium account. **open_link** `boolean` Whether the lead is an Open Profile (free InMail). Not reliable when `open_profile_badge_visible` is `false` — see below. **viewed_profile** `boolean` Whether you have viewed this lead's profile. **changed_job_recently** `boolean` Recent job change flag. **shared_connections** `integer` Number of shared connections. **teamlink_count** `integer` Number of TeamLink connection paths. **company_size** `string` Current company size, when available. **latest_activity** `string` Most recent activity (e.g. recent posts). **badges** `array` Spotlight badges (mutual connections, recent posts, …). **badge properties** **type** `string` Badge kind, e.g. `SECOND_DEGREE_CONNECTION`. **header** `string` Short label, e.g. `"Mutual connection"`. **text** `string` Summary, e.g. `"1 mutual connection"`. **details** `string` Full sentence shown by Sales Nav. **associations** `array` Related entities, each `{ "type": "profile", "id": "ACwAA..." }`. **current_positions** `array` Current positions. **position properties** **title** `string` Job title. **company** `string` Company name. **company_id** `string` LinkedIn company id, when known. **duration** `string` Time in the role, e.g. `"4 mois"`. **started** `string` Start date, `M/YYYY`. **description** `string` Role description, when the lead filled one in. **past_positions** `array` Past positions. Same fields as above, except `started` / `description` are replaced by `period` (e.g. `"3/2023 - 11/2025"`). **total_results** `integer` Number of leads returned. **offset** `integer` Absolute index of the first lead returned — echoes the requested `offset`. Add `total_results` to it for the next page's `offset`. **total_available_results** `integer` Total number of matching leads available (an estimate for large sets). **open_profile_badge_visible** `boolean | null` Whether the seat that ran the search can see the Open Profile badge. LinkedIn hides it from some seats (every lead then looks "not open"); the API checks known Open Profiles on the same seat. When `false`, `open_link` reads `false` for every lead whatever their real status, and a `warning` is included. Probe a seat beforehand with [Check InMail Seat](/api-reference/v2/profiles/check-inmail-seat). **warning** `string` Present only when `open_profile_badge_visible` is `false`. ```json 200 theme={null} { "success": true, "data": { "total_results": 2, "offset": 0, "total_available_results": 493426, "open_profile_badge_visible": true, "profiles": [ { "name": "Jessica Jensen", "job_title": "Chief Marketing Officer", "company": "TechCo", "location": "San Francisco, California, United States", "profile_url": "https://www.linkedin.com/in/ACwAAA...", "sales_nav_url": "https://www.linkedin.com/sales/lead/ACwAAA...", "recipient_urn": "urn:li:fs_salesProfile:(ACwAAA...,NAME_SEARCH,8_-X)", "connection_level": "2", "headline": "CMO @ TechCo — B2B growth & demand gen", "premium": true, "open_link": true, "viewed_profile": false, "changed_job_recently": false, "shared_connections": 4, "teamlink_count": 1, "company_size": "51-200", "latest_activity": "2 recent posts", "current_positions": [ { "title": "Chief Marketing Officer", "company": "TechCo", "duration": "2 ans" } ] } ] }, "metadata": { "action": "search_people_nav", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 422 (no Sales Nav seat) theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "No Sales Nav license found for this account", "sub_code": "NO_SALES_NAV_SEAT" }, "metadata": { "action": "search_people_nav", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ## Examples ### Friendly filters ```json theme={null} { "account_id": "your-account-id", "action": "search_people_nav", "params": { "keyword": "marketing", "seniority_level": ["Vice President", "CXO"], "function": ["Marketing", "Sales"], "company_type": ["Public Company"], "company_size": "51-1000", "industry": ["Software Development"], "company_headquarters": ["North America", "EMEA"], "years_in_current_position": ["3 to 5 years"], "count": 25 } } ``` ### Exclusions ```json theme={null} { "account_id": "your-account-id", "action": "search_people_nav", "params": { "current_title": "Head of Sales", "geography": ["France"], "exclude": { "current_company": ["Google", "Microsoft"], "current_title": ["Intern"], "geography": ["Paris"] }, "count": 25 } } ``` ### Copied Sales Nav URL ```json theme={null} { "account_id": "your-account-id", "action": "search_people_nav", "params": { "sales_nav_url": "https://www.linkedin.com/sales/search/people?query=(filters:List(...))", "offset": 0, "count": 25 } } ``` ## Lists and lead profile Same seat, same endpoint, 1 credit per call: * `list_lists_nav` `{ type?: "lead"|"account", ownership?: "all"|"owned"|"editable", offset?, count? }`: the seat's lists, each with `list_id`, `name`, `type` and `entity_count`. * `create_list_nav` `{ name, type: "lead"|"account", description? }`: creates an empty list and returns its `list_id`. * `add_to_list_nav` `{ list_id, profiles? | companies? }`: adds up to 25 profiles (URLs or ids) to a lead list, or up to 100 companies (ids or URLs) to an account list. Each input gets a `status`: `added`, `already_in_list`, or `failed` with an `error`. Costs 1 credit per 10 entities. * `remove_from_lists_nav` `{ profiles? | companies? }`: unsaves leads or companies. LinkedIn has no per-list removal, so they leave every list of the seat. Same limits, `status` (`removed` or `failed`) and pricing as `add_to_list_nav`. * `delete_list_nav` `{ list_id, unsave_entities?: false }`: deletes a list. Its leads stay saved in their other lists unless `unsave_entities` is `true`. * `get_profile_nav` `{ profile }`: a lead as Sales Nav shows it, with positions, education, the emails visible to the seat, `inmail_restriction`, `open_link`, `saved` and `list_count`. To read a list, pass it to this search as `lead_list` or as a `.../sales/lists/people/` URL. `list_saved_searches_nav` `{ type?: "people"|"company", offset?, count? }` returns the seat's saved searches with `saved_search_id`, `name`, `last_viewed_at` (epoch ms, like the lists' `created_at`) and `new_results_count`. Run a saved people search again with `saved_search_id` on this search. `save_search_nav` `{ name, type?: "people"|"company", ...filters }` saves a search built from the same filters as this search or Search Companies Nav (or their `sales_nav_url`) and returns its `saved_search_id`; a name already used on the seat is refused. `delete_saved_search_nav` `{ saved_search_id }` deletes one. # Search People Recruiter Source: https://docs.linkupapi.com/api-reference/v2/profiles/search-people-recruiter POST /v2/profiles Search candidates with a LinkedIn Recruiter (Lite) seat. ## Overview Run a **Recruiter talent search** and get back candidates in the same shape as [Get Profile](/api-reference/v2/profiles/get-profile), plus what the seat knows about them (notes, messages, projects) and LinkedIn's hiring insights. Uses the account's Recruiter seat — see [Connect Account](/api-reference/v2/accounts/login#recruiter-seat). Pass the LinkedIn account's `account_id`. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Requires a Recruiter seat. Ignore this if you're on per-seat pricing: usage is unlimited. > [!NOTE] > > Within a single filter, multiple values are combined with **OR**. Different filters are combined with **AND**. Ids come from [Typeahead](/api-reference/v2/profiles/typeahead) with `category: "recruiter"`. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The LinkedIn account's id. Its Recruiter seat must be connected. **action** `string` *required* Must be `"search_people_recruiter"`. **params** `object` **params properties** **recruiter_url** `string` A copied Recruiter or Recruiter Lite search URL (`https://www.linkedin.com/talent/search?...searchHistoryId=...`), pasted as-is. It replaces the filters below: LinkedIn re-runs the search saved behind the URL. Copy it from the Recruiter seat connected to this account. Returns `INVALID_PARAMS` (no credit) if it carries no `searchHistoryId`. **keywords** `string` Free-text keywords. **job_title** `string | string[]` Job titles. Pair with `title_scope`: `CURRENT`, `CURRENT_OR_PAST` or `PAST`. **companies** `string | string[]` Company names. Pair with `company_scope` (same values as `title_scope`). **skills** `string | string[]` Skills, e.g. `["Python", "SQL"]`. **occupations** `string[]` Job families, by id (Typeahead `occupation`). **first_name** `string` First name. **last_name** `string` Last name. **notes** `string` Text found in the seat's notes on the candidate. **locations** `string[]` Location ids (Typeahead `location`). **postal_codes** `object[]` Postal codes, passed as the **items returned by Typeahead `zip`** (`{ "id", "name" }`) — LinkedIn needs both. Pair with `distance`, the radius around them (default 25). **current_company** `string[]` Current company ids (Typeahead `company`). `past_company` works the same. **schools** `string[]` School ids (Typeahead `school`). **industries** `string[]` Industry ids (Typeahead `industry`). **groups** `string[]` Group ids (Typeahead `group`). **projects** `string[]` Candidates already in these hiring projects (Typeahead `project`). **seniority_level** `string[]` `Unpaid`, `Training`, `Entry level`, `Senior`, `Manager`, `Director`, `VP`, `CXO`, `Partner`, `Owner`. **function** `string[]` Job function, e.g. `["Engineering", "Sales"]`. Full list via Typeahead `function`. **company_size** `string[]` `Self-employed`, `1-10`, `11-50`, `51-200`, `201-500`, `501-1,000`, `1,001-5,000`, `5,001-10,000`, `10,001+`. **connection_degree** `string[]` `1st`, `2nd`, `3rd`, `group` (ids `F`, `S`, `O`, `A`). **workplace** `string[]` `On-site`, `Remote`, `Hybrid`. **profile_language** `string[]` ISO code or name, e.g. `en`, `French`. **joined_within** `string[]` Joined LinkedIn recently: `1 day ago`, `2 to 7 days ago`, `8 to 14 days ago`, `15 to 30 days ago`, `1 to 3 months ago`. **activity_types** `string[]` What the seat already did with them: `Emailed`, `Has notes`, `Tagged`, `In a project`, `Reviewed`, `Has a resume`. Set `exclude_activities: true` to exclude them instead. **years_of_experience** `object | string` `{ "min": 3, "max": 10 }`, `[3, 10]` or `"3-10"`. `graduation_year` takes the same formats. **veteran** `boolean` Veterans only. **profile_views** `boolean` People who viewed your profile (`profile_views_days` sets the window). **count** `integer` (default: 10) Number of candidates to return. **offset** `integer` (default: 0) Index of the first candidate to return. Recruiter only lets a single search be browsed up to **1000 results**, whatever `total_available_results` reports: an `offset` of 1000 or more returns `INVALID_PARAMS` (0 credits) — narrow the filters to reach deeper candidates. **search_request_id** `string` Returned by the first page — pass it back with the next `offset` to page the same search. **include_raw** `boolean` (default: false) Also attach LinkedIn's untouched result under `raw`. ## Response **data** `object` **data properties** **profiles** `array` Candidates, in the [Get Profile](/api-reference/v2/profiles/get-profile) shape (`public_id`, `profile_url`, `first_name`, `headline`, `experience`, `education`…), plus: **Recruiter fields** **profile_urn** `string` `urn:li:ts_profile:…` — what [Send Message](/api-reference/v2/messages/send#recruiter-inmail) and `get` with `recruiter: true` take. **hire_identity_urn** `string` The candidate's id in [Projects](/api-reference/v2/recruiter/projects). **notes_count** `integer` Notes the seat holds on them. `messages_count` and `projects_count` work the same. **can_send_inmail** `boolean` Whether the seat can InMail them. `inmail_cost` is the InMail credits it costs (0 = free). **open_to_opportunities** `boolean` Open to work, from the member's own job preferences (`job_preferences`). **total_results** `integer` Number of candidates returned. **total_available_results** `integer` Total matches. **offset** `integer` Echoes the requested `offset`. **search_request_id** `string` Pass it back to page this search. ```json 200 theme={null} { "success": true, "data": { "total_results": 1, "total_available_results": 4812, "offset": 0, "search_request_id": "a1b2c3…", "profiles": [ { "full_name": "Jane Doe", "headline": "Growth Marketing Lead", "location": "Paris, Île-de-France, France", "profile_url": "https://www.linkedin.com/in/janedoe", "profile_urn": "urn:li:ts_profile:AEMAA…", "hire_identity_urn": "urn:li:ts_hire_identity:1670586754", "can_send_inmail": true, "inmail_cost": 1, "notes_count": 0, "projects_count": 1, "open_to_opportunities": true } ] }, "metadata": { "action": "search_people_recruiter", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-07T12:00:00Z" } } ``` ## Example ```json theme={null} { "account_id": "your-account-id", "action": "search_people_recruiter", "params": { "job_title": "Product Manager", "title_scope": "CURRENT", "locations": ["105015875"], "seniority_level": ["Senior", "Manager"], "years_of_experience": { "min": 3, "max": 10 }, "count": 25 } } ``` # Typeahead (Filter Suggestions) Source: https://docs.linkupapi.com/api-reference/v2/profiles/typeahead POST /v2/typeahead Autocomplete a search filter value and get the ids LinkedIn expects Returns the suggestions LinkedIn shows while typing in a search filter (companies, locations, schools, industries, titles, people…), with the `id` to pass in [Search People](/api-reference/v2/profiles/search-people) or [Search People (Sales Navigator)](/api-reference/v2/profiles/search-people-nav) filters. > [!NOTE] > > This endpoint consumes **0.1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ### Header Parameters **x-api-key** `string` *required* Your API key ### Body Parameters **account_id** `string` *required* A connected LinkedIn account. **keyword** `string` The text typed so far, e.g. `"Goog"`. Required for `classic`. With `sales_nav`, leave it empty to list every value of a fixed facet (`function`, `seniority`, `company_type`, `profile_language`, `relationship`, `lead_interactions`, `account_list`, `lead_list`). **type** `string` *required* The filter to complete. * **classic**: `location`, `company`, `current_company`, `past_company`, `school`, `industry`, `service_category`, `title`, `people` * **sales_nav**: `company`, `current_company`, `past_company`, `industry`, `school`, `location`, `title`, `function`, `seniority`, `company_type`, `profile_language`, `relationship`, `lead_interactions`, `persona`, `people`, `account_list`, `lead_list` * **recruiter**: `company`, `current_company`, `past_company`, `location`, `zip`, `skill`, `school`, `industry`, `group`, `occupation`, `title`, `project`, `seniority`, `function`, `company_size`, `connection_degree`, `workplace`, `profile_language`, `joined_within`, `activity_type`, `scope` **category** `string` (default: classic) `classic` for LinkedIn search filters, `sales_nav` for Sales Navigator facets (the account must hold a Sales Navigator seat), `recruiter` for [Search People Recruiter](/api-reference/v2/profiles/search-people-recruiter) filters. **limit** `integer` (default: 10) Maximum number of suggestions. LinkedIn returns at most 10 for `classic`, 100 for `sales_nav` and 25 for `recruiter`. **occupation_id** `string` `recruiter` with `type: "title"` only: list the titles of that occupation (an `id` from type `occupation`). ### Response **data** `object` **Properties** **keyword** `string` The keyword as searched **type** `string` The filter type **category** `string` `classic`, `sales_nav` or `recruiter` **count** `integer` Number of suggestions returned **items** `array` Suggestions, most relevant first. Each item has `id` (the value to use in search filters), `name`, an optional `description` (company industry, person headline…) and `image` (logo or profile photo URL, 200 px, `null` when LinkedIn provides none — e.g. locations, industries). ```json Classic — company theme={null} { "success": true, "data": { "keyword": "Goog", "type": "company", "category": "classic", "count": 2, "items": [ { "id": "1441", "name": "Google", "description": "Software Development", "image": "https://media.licdn.com/dms/image/v2/…/company-logo_200_200/…" }, { "id": "1594050", "name": "Google DeepMind", "description": "Research Services", "image": "https://media.licdn.com/dms/image/v2/…/company-logo_200_200/…" } ] }, "metadata": { "action": "typeahead", "account_id": "69c127c37cae0494dd827286", "credits_consumed": 0.1, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Sales Navigator — seniority (empty keyword) theme={null} { "success": true, "data": { "keyword": "", "type": "seniority", "category": "sales_nav", "count": 3, "items": [ { "id": "320", "name": "Owner / Partner", "description": null, "image": null }, { "id": "310", "name": "CXO", "description": null, "image": null }, { "id": "300", "name": "Vice President", "description": null, "image": null } ] }, "metadata": { "action": "typeahead", "account_id": "69c127c37cae0494dd827286", "credits_consumed": 0.1, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Error — Type not available theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "type 'skill' is not available for classic search; one of: location, company, current_company, past_company, school, industry, service_category, title, people" }, "metadata": { "action": "typeahead", "account_id": "69c127c37cae0494dd827286", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` # Unlock Profile Source: https://docs.linkupapi.com/api-reference/v2/profiles/unlock POST /v2/profiles Unlock an out-of-network profile on a Sales Navigator seat, before an InMail. ## Overview Sales Navigator withholds the profile of a member outside the seat's network (3rd degree and beyond, no shared group): the lead shows as **LinkedIn Member**, the full profile is hidden and no InMail can be sent. This action spends one of the seat's **monthly unlock credits** to reveal the member for good, so you can then [send an InMail](/api-reference/v2/messages/send). LinkedIn grants each Sales Navigator seat 25 unlocks a month, not pooled between seats and not carried over. An unlocked member stays unlocked for every seat on the same contract. > [!NOTE] > > This endpoint consumes **1 credit** and **one of the seat's monthly unlock credits** when LinkedIn performs the unlock. Requires a Sales Nav seat on the account (connected automatically on first use). Ignore the 1 credit if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. Must have a Sales Nav seat. **action** `string` *required* Must be `"unlock"`. **params** `object` *required* **params properties** **profile** `string` *required* The member to unlock: profile URL, public slug, member id (`ACoAA…`), or a Sales Nav lead reference (`/sales/lead/ACwAA…` URL, `urn:li:fs_salesProfile:…`, bare `ACwAA…`). `profile_url` is accepted as an alias. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **unlocked** `boolean` `true` once LinkedIn has accepted the unlock. **sales_profile_id** `string` The lead's Sales Nav id (`ACwAA…`). **recipient_urn** `string` The lead's `urn:li:fs_salesProfile:…`, usable as `recipient` in [Send Message](/api-reference/v2/messages/send) with `sales_navigator: true`. **member_urn** `string` The member's `urn:li:member:…`. **full_name** `string | null` Full name as the seat sees it. **degree** `integer | null` Connection degree from the account. **profile_url** `string | null` The member's public profile URL. **inmail_restriction** `string | null` LinkedIn's InMail restriction on this member, `NO_RESTRICTION` when an InMail can be sent. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"unlock"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "unlocked": true, "sales_profile_id": "ACwAAAstu10B6ONvINVM4_BzI_rFALPEOlLx7Ig", "recipient_urn": "urn:li:fs_salesProfile:(ACwAAAstu10B6ONvINVM4_BzI_rFALPEOlLx7Ig,NAME_SEARCH,AbCd)", "member_urn": "urn:li:member:187678557", "full_name": "Jake Abrams", "degree": 3, "profile_url": "https://www.linkedin.com/in/abramsjake", "inmail_restriction": "NO_RESTRICTION" }, "metadata": { "action": "unlock", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-12T14:02:11Z" } } ``` ```json 422 — LinkedIn refused the unlock theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "LinkedIn refused this Sales Nav request. The seat may have lost access, or the action is not permitted on this profile.", "sub_code": "SALES_NAV_ACCESS_DENIED" }, "metadata": { "action": "unlock", "credits_consumed": 1, "timestamp": "2026-10-12T14:02:11Z" } } ``` ```json 400 — Missing profile theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "profile is required: a profile URL, slug, member id or Sales Nav lead reference" }, "metadata": { "action": "unlock", "credits_consumed": 0, "timestamp": "2026-10-12T14:02:11Z" } } ``` # Update Profile Source: https://docs.linkupapi.com/api-reference/v2/profiles/update-profile POST /v2/profiles Edit the connected account’s own profile in one call: intro, about, experience, education, skills, profile picture and background image. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. * Send only what you want to change. * `experience` / `education` entries: no `id` = add, `id` = edit, `id` + `delete: true` = delete. The ids come from [Get Me](/api-reference/v2/profiles/get-me). * The network is never notified unless an entry has `notify_network: true`. ## Request **x-api-key** `string` *required* Your API key. **account_id** `string` *required* The account whose profile is edited. **action** `string` *required* Must be `"update"`. **params** `object` *required* **params properties** **first_name** `string` **last_name** `string` **headline** `string` **about** `string` Send `""` to clear it. **website** `string` **experience** `array` **entry properties** **id** `string` To edit or delete an entry. **delete** `boolean` `true` to delete the entry. **title** `string` Required to add. **company** `string` **company_id** `string` From [Typeahead](/api-reference/v2/profiles/typeahead) `type: "company"`. Without it the company shows as plain text. **description** `string` **location** `string` **location_id** `string` From Typeahead `type: "location"`. **start_date** `string` `"YYYY-MM"` or `"YYYY"`. **end_date** `string` `"YYYY-MM"` or `"YYYY"`. **is_current** `boolean` **notify_network** `boolean` (default: false) **education** `array` **entry properties** **id** `string` To edit or delete an entry. **delete** `boolean` `true` to delete the entry. **school** `string` Required to add. **school_id** `string` From Typeahead `type: "school"`. **degree** `string` **field_of_study** `string` **start_date** `string` `"YYYY-MM"` or `"YYYY"`. **end_date** `string` `"YYYY-MM"` or `"YYYY"`. **grade** `string` **activities** `string` **description** `string` **notify_network** `boolean` (default: false) **skills** `object` `{"add": ["Python"], "remove": ["Java"]}`, by skill name. **profile_picture** `string | object` Image URL, or `{"filename", "data"}` with base64 data. Center-cropped to a square. **background_image** `string | object` Same format. Center-cropped to 4:1 (1584×396). ```json Request theme={null} { "account_id": "your-account-id", "action": "update", "params": { "headline": "Head of Growth @ Acme", "about": "I help B2B teams grow.", "experience": [ { "title": "Head of Growth", "company": "Acme", "start_date": "2024-03", "is_current": true }, { "id": "2543928369", "description": "Led the platform team." }, { "id": "3046062887", "delete": true } ], "education": [ { "school": "HEC Paris", "degree": "MSc", "start_date": "2018", "end_date": "2020" } ], "skills": { "add": ["Growth Marketing"], "remove": ["Java"] }, "profile_picture": "https://example.com/me.jpg" } } ``` ```json 200 theme={null} { "success": true, "data": { "updated": true, "fields": ["headline", "about", "experience", "education", "skills"], "profile_urn": "urn:li:fsd_profile:ACoAAB1234567" }, "metadata": { "action": "update", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-16T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "experience[0]: title is required to add an entry" }, "metadata": { "action": "update", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-10-16T12:00:00Z" } } ``` > [!NOTE] > > Changes are applied in order. If one is refused, the error names it and lists the changes already applied. # Visit Profile Source: https://docs.linkupapi.com/api-reference/v2/profiles/visit POST /v2/profiles Visit a profile to trigger a profile view notification. ## Overview Simulates a profile visit. This will appear in the target user's "Who viewed your profile" section. You can identify the target profile using a profile URL or a public identifier. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"visit"`. **params** `object` **params properties** **profile_url** `string` URL of the target user's profile on the connected platform. Required if `identifier` is not provided. **identifier** `string` The public identifier (vanity name) of the target profile. Can be used instead of `profile_url`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **visited** `boolean` `true` when the profile visit was successfully tracked. **profile_url** `string` The profile URL that was visited (echo of the input). **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"visit"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "visited": true, "profile_url": "https://www.linkedin.com/in/johndoe" }, "metadata": { "action": "visit", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Invalid LinkedIn URL" }, "metadata": { "action": "visit", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Close Job Posting Source: https://docs.linkupapi.com/api-reference/v2/recruiter/close-job POST /v2/recruiter Close an active job posting. ## Overview Close an active job posting. Once closed, the job will no longer accept new applications. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"close_job"`. **params** `object` *required* **params properties** **job_id** `string` *required* The ID of the job posting to close. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` Confirmation of the close action. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"close_job"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": {}, "metadata": { "action": "close_job", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "job_id is required." }, "metadata": { "action": "close_job", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Create Job Posting Source: https://docs.linkupapi.com/api-reference/v2/recruiter/create-job POST /v2/recruiter Create a job posting on LinkedIn (draft state). ## Overview Create a job posting. The job is created in `DRAFT` state — use `publish_job` to make it live. > [!NOTE] > > This endpoint consumes **2 credits** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"create_job"`. **params** `object` *required* **params properties** **company_url** `string` *required* LinkedIn company page URL to post the job under. **title** `string` *required* Job title. **place** `string` *required* Job location (e.g. `"Paris, France"`). **html_description** `string` *required* Job description, basic HTML supported (`

`, ``, `

    `/`
  • `). **employment_status** `string` (default: FULL_TIME) `FULL_TIME`, `PART_TIME`, `CONTRACT`, `TEMPORARY`, `VOLUNTEER`, or `INTERNSHIP`. **workplace** `string` (default: 1) `"1"` on-site, `"2"` remote, `"3"` hybrid. **contact_email** `string` Contact email shown on the posting. **skills** `array` Skill names required for the role. **job_functions** `array` Job function names. **industry_sectors** `array` Industry sector names. **screening_questions** `array` Screening question objects (predefined types or `CUSTOM_QUESTION`). See the [V1 Create Job reference](/api-reference/linkup/recruiter/create-job-post) for the full object shape and predefined types. **auto_rejection_template** `string` Message sent to auto-rejected candidates. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **job_posting_id** `string` LinkedIn job posting ID (use it with `publish_job`, `close_job`, `get_candidates`). **message** `string` Result message. **screening_questions_added** `boolean` Whether the screening questions were attached successfully. **warning** `string` Present only if the job was created but screening questions failed to attach. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"create_job"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (2). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "job_posting_id": "4448305877", "message": "Job posting created successfully", "screening_questions_added": false }, "metadata": { "action": "create_job", "account_id": "your-account-id", "credits_consumed": 2, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Missing required fields: company_url, place, html_description" }, "metadata": { "action": "create_job", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 422 theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "Impossible de récupérer les informations de l'entreprise: ", "sub_code": "JOB_POSTING_FAILED" }, "metadata": { "action": "create_job", "account_id": "your-account-id", "credits_consumed": 2, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Get Job Candidates Source: https://docs.linkupapi.com/api-reference/v2/recruiter/get-candidates POST /v2/recruiter Retrieve candidates who applied to a specific job posting. ## Overview Returns the candidates who applied to a specific job posting. Pagination is **offset-based** — set `count` for the page size and `offset` to skip ahead. > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. The platform returns up to **50 candidates per internal request**, so larger `count` values trigger multiple upstream calls automatically. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_candidates"`. **params** `object` *required* **params properties** **job_id** `string` *required* The numeric job ID to retrieve candidates for. **count** `integer` (default: 10) Number of candidates to return. Defaults to `10`. **Capped at `1000`** per call. **offset** `integer` (default: 0) Zero-indexed offset into the candidates list. Defaults to `0`. Use `pagination.next_offset` from a previous response to fetch the next page. **ratings** `string` (default: GOOD_FIT,MAYBE,UNRATED,NOT_A_FIT) Ratings to include, comma-separated. Defaults to all ratings. **sortType** `string` (default: RELEVANCE) `RELEVANCE` or `APPLIED_DATE`. **sortOrder** `string` (default: DESCENDING) `DESCENDING` or `ASCENDING`. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **candidates** `array` List of candidates. **candidate properties** **application_id** `string` Unique application ID — use it with `get_cv`. **rating** `string` Recruiter rating: `"UNRATED"`, `"GOOD_FIT"`, `"MAYBE"`, `"NOT_A_FIT"`. **is_rejected** `boolean` `true` when the candidate is in the Rejected stage. Keep `false` to get the candidates in review. **rejected_at** `string` Rejection date (`YYYY-MM-DD HH:MM:SS`), `null` when not rejected. **is_top_choice** `boolean` `true` when the candidate marked the job as a top choice. **top_choice_message** `string` Optional message left by the candidate. **first_name** `string` First name. **last_name** `string` Last name. **full_name** `string` Full name. **headline** `string` Headline. **public_identifier** `string` Vanity slug. **profile_url** `string` Public profile URL. **location** `string` Candidate location. **experiences** `array` Work experience entries with `title`, `company`, `company_url`, `date_range` (e.g. `"2/2025 - 7/2025"`), `description`. **total_results** `integer` Number of candidates returned in this response. **total_available_results** `integer` Total number of candidates that applied to the job. **pagination** `object` **pagination properties** **offset** `integer` Offset of the first candidate in this response. **count** `integer` Number of candidates returned (mirrors `total_results`). **next_offset** `integer` Offset to send as `offset` in the next request. `null` when exhausted. **has_more** `boolean` `true` if more candidates are available. **results_per_page** `integer` Maximum batch size used per upstream request (50). **pages_fetched** `integer` Number of internal upstream batches consumed. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_candidates"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "candidates": [ { "application_id": "26905743894", "rating": "UNRATED", "is_rejected": false, "rejected_at": null, "is_top_choice": false, "top_choice_message": "", "first_name": "Jane", "last_name": "Doe", "full_name": "Jane Doe", "headline": "Digital Marketing Strategist | SEO, SEM & Analytics", "public_identifier": "jane-doe-42", "profile_url": "https://www.linkedin.com/in/jane-doe-42", "location": "Paris, France", "experiences": [ { "title": "Digital Marketing Intern", "company": "Acme Corp", "company_url": "https://www.linkedin.com/company/acme-corp/", "date_range": "2/2025 - 7/2025", "description": "" } ] } ], "total_results": 1, "total_available_results": 81, "pagination": { "offset": 0, "count": 1, "next_offset": 1, "has_more": true, "results_per_page": 50, "pages_fetched": 1 } }, "metadata": { "action": "get_candidates", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "job_id is required." }, "metadata": { "action": "get_candidates", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Get Candidate CV Source: https://docs.linkupapi.com/api-reference/v2/recruiter/get-cv POST /v2/recruiter Retrieve the CV/resume of a specific job candidate. ## Overview Returns the CV/resume submitted by a candidate for a specific job application. The file content is returned **inline as base64-encoded bytes** alongside the candidate metadata — decode and write to disk to obtain the original file. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_cv"`. **params** `object` *required* **params properties** **application_id** `string` *required* Application ID obtained from the [Get Job Candidates](/api-reference/v2/recruiter/get-candidates) response. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **application_id** `string` Echo of the requested `application_id`. **candidate** `object` Candidate identity and contact info. **candidate properties** **name** `string` Candidate full name. **email** `string` Candidate email (when shared on the application). **phone** `string` Candidate phone (when shared). **profile_url** `string` Public profile URL. **resume_url** `string` Pre-signed URL to the original resume (short-lived). **cv** `object` The CV file payload. **cv properties** **content** `string` Base64-encoded file bytes. **encoding** `string` Always `"base64"`. **filename** `string` Original filename (e.g. `"Jane_Doe_CV.pdf"`). **content_type** `string` MIME type (`"application/pdf"`, `"application/vnd.openxmlformats-officedocument.wordprocessingml.document"`, etc.). **size_bytes** `integer` Size of the decoded file in bytes. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_cv"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "application_id": "26905743894", "candidate": { "name": "Jane Doe", "email": "jane.doe@example.com", "phone": "+33 6 12 34 56 78", "profile_url": "https://www.linkedin.com/in/jane-doe-42", "resume_url": "https://media.licdn.com/dms/document/..." }, "cv": { "content": "JVBERi0xLjQKJfbk/N8KMSAwIG9iago8PAovVHlwZSAvQ2F0YW...", "encoding": "base64", "filename": "Jane_Doe_CV.pdf", "content_type": "application/pdf", "size_bytes": 126451 } }, "metadata": { "action": "get_cv", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "application_id is required." }, "metadata": { "action": "get_cv", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` ## Saving the CV to disk The `cv.content` field is base64-encoded. Decode it and write it to a file using the `cv.filename`: ```python Python theme={null} import base64, json, requests resp = requests.post( "https://api.linkupapi.com/v2/recruiter", headers={"x-api-key": "YOUR_API_KEY", "Content-Type": "application/json"}, json={ "action": "get_cv", "account_id": "your-account-id", "params": {"application_id": "26905743894"}, }, ).json() cv = resp["data"]["cv"] with open(cv["filename"], "wb") as f: f.write(base64.b64decode(cv["content"])) ``` ```javascript Node.js theme={null} import fs from "fs"; const resp = await fetch("https://api.linkupapi.com/v2/recruiter", { method: "POST", headers: { "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ action: "get_cv", account_id: "your-account-id", params: { application_id: "26905743894" }, }), }).then(r => r.json()); const { filename, content } = resp.data.cv; fs.writeFileSync(filename, Buffer.from(content, "base64")); ``` # Get Job Posts Source: https://docs.linkupapi.com/api-reference/v2/recruiter/get-posts POST /v2/recruiter Retrieve job postings from your recruiter account. ## Overview Retrieve job postings from your recruiter account. Pass `job_id` to fetch a specific job (with full details) or omit it to list all jobs (offset-based pagination). > [!NOTE] > > This endpoint consumes **1 credit per 10 results** returned. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"get_posts"`. **params** `object` **params properties** **job_id** `string` Fetch a single specific job posting by ID. When provided, `count` and `offset` are ignored and `fetch_details` is forced to `true`. **count** `integer` (default: 10) Number of job posts to return. Defaults to `10`. **Capped at `1000`** per call. **offset** `integer` (default: 0) Zero-indexed offset into the job posts list. Defaults to `0`. Use `pagination.next_offset` from a previous response to fetch the next page. **fetch_details** `boolean` (default: true) Include full job details (description, budget, talent_questions, etc.). Set to `false` for a faster lightweight listing. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` **data properties** **posts** `array` List of job postings. **post properties** **linkedin_job_id** `string` Numeric job ID. **title** `string` Job title. **company_name** `string` Hiring company name. **location** `string` Job location. **job_state** `string` Job state: `"LISTED"`, `"CLOSED"`, `"DRAFT"`, etc. **description** `string` Plain-text job description (only when `fetch_details: true`). **editableDescription** `string` HTML-rich job description (only when `fetch_details: true`). **employment_status** `string` e.g. `"Full-time"`, `"Part-time"`, `"Contract"`, `"Internship"`. **workplace_type** `string` e.g. `"Remote"`, `"On-site"`, `"Hybrid"`. **created_at** `integer` Unix epoch (ms) when the job was created. **listed_at** `integer` Unix epoch (ms) when the job became live. **closed_at** `integer` Unix epoch (ms) when the job was closed (null if still open). **num_views** `integer` Total view count. **num_applies** `integer` Total applicant count. **job_url** `string` Public job URL. **contact_email** `string` Contact email associated with the job. **industry** `array` List of industry categories (strings). **talent_questions** `array` Screening questions configured on the post. **budget** `object` Budget data when the job is sponsored: `total_charge`, `currency`, `buffered_total_charge`, `daily_budget`. **suspend_reasons** `array` Reasons the post was suspended (empty when active). **total_results** `integer` Number of job posts returned in this response. **total_available_results** `integer` Total number of job posts on the recruiter account. **pagination** `object` **pagination properties** **offset** `integer` Offset of the first post in this response. **count** `integer` Number of posts returned (mirrors `total_results`). **next_offset** `integer` Offset to send as `offset` in the next request. `null` when exhausted. **has_more** `boolean` `true` if more posts are available beyond this batch. **results_per_page** `integer` Maximum batch size used per upstream request (25). **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"get_posts"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1 per 10 results). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": { "posts": [ { "linkedin_job_id": "4178681638", "title": "Growth Hacker", "company_name": "Acme Corp", "location": "France", "job_state": "CLOSED", "employment_status": "Full-time", "workplace_type": "", "created_at": 1741369464000, "listed_at": 1761591723000, "closed_at": 1762167565000, "num_views": 962, "num_applies": 100, "job_url": "https://www.linkedin.com/jobs/view/4178681638/", "contact_email": "hiring@example.com", "industry": ["Software Development"], "budget": { "total_charge": "277.20", "currency": "EUR", "buffered_total_charge": "417.00", "daily_budget": "88.0" } } ], "total_results": 1, "total_available_results": 1, "pagination": { "offset": 0, "count": 1, "next_offset": null, "has_more": false, "results_per_page": 25 } }, "metadata": { "action": "get_posts", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-04-26T10:35:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "account_id or account_ids is required" }, "metadata": { "action": "get_posts", "account_id": null, "credits_consumed": 0, "timestamp": "2026-04-26T10:35:00Z" } } ``` # Projects Source: https://docs.linkupapi.com/api-reference/v2/recruiter/projects POST /v2/recruiter Hiring projects of a LinkedIn Recruiter (Lite) seat: pipeline, stages and notes. ## Overview Manage the seat's **hiring projects** — the Recruiter equivalent of a lead list — and the candidates inside them. One endpoint, the `action` picks the operation. Uses the account's Recruiter seat — see [Connect Account](/api-reference/v2/accounts/login#recruiter-seat). Pass the LinkedIn account's `account_id`. Candidates come from [Search People Recruiter](/api-reference/v2/profiles/search-people-recruiter). > [!NOTE] > > Each action consumes **1 credit**, `list_project_candidates`**1 credit per 10 results**. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The LinkedIn account's id. Its Recruiter seat must be connected. **action** `string` *required* One of the actions below. **params** `object` Depends on the action — see each one below. ## Actions | Action | Params | Does | | - | - | - | | `list_projects` | `count`, `offset`, `state` (`ACTIVE` default, `CLOSED`, `DRAFT`) | The seat's projects, each with its `hiring_states` (stages) and `candidate_counts` per stage. | | `create_project` | `name`, `description`, `private` (default `true`) | Creates a project. Returns its `project_urn`. | | `add_to_project` | `project_urn`, `candidate_urn` | Files a candidate into a project. | | `list_project_candidates` | `project_urn`, `count`, `offset`, `states` | The pipeline: everyone in the project, in the search result shape, each with their `hiring_state`. `states` filters on stages. | | `get_project_candidate` | `project_urn`, `candidate_urn` | Where one candidate stands: stage, how they were sourced, when they were added. | | `move_candidate` | `project_urn`, `candidate_urn`, `state` | Moves a candidate to another stage. | | `add_note` | `candidate_urn`, `text` | Leaves a note on a candidate, visible to the whole contract. | | `get_candidate_notes` | `profile_urn` | The notes and tags held on a candidate. | | `recommended_candidates` | `project_urn`, `count`, `offset` | LinkedIn's recommended matches for the project. | * `candidate_urn` is the candidate's `hire_identity_urn` from the search; `profile_urn` is their `profile_urn`. * `project_urn` is the urn from `list_projects` / `create_project` (a `project_id` works too). * `state` takes the stage name as the project shows it (`"contacted"`, `"uncontacted"`), its status type (`CONTACTED`…) or its urn from `hiring_states`. The stage shown as "uncontacted" has the status type `SHORTLISTED`. ```json list_projects theme={null} { "success": true, "data": { "total_results": 1, "offset": 0, "projects": [ { "project_id": "2159702274", "project_urn": "urn:li:ts_hiring_project:(urn:li:ts_contract:123,2159702274)", "name": "Growth Marketer — Paris", "state": "ACTIVE", "candidate_counts": { "potential candidate": 0, "uncategorized": 0, "uncontacted": 2, "contacted": 1, "replied": 0, "archived": 0 }, "hiring_states": [ { "name": "contacted", "status_type": "CONTACTED", "urn": "urn:li:ts_hiring_state:…" } ] } ] }, "metadata": { "action": "list_projects", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-07T12:00:00Z" } } ``` ```json move_candidate theme={null} { "success": true, "data": { "status": "success", "message": "Candidate moved", "project_urn": "urn:li:ts_hiring_project:(urn:li:ts_contract:123,2159702274)", "candidate_urn": "urn:li:ts_hire_identity:1670586754", "hiring_state_urn": "urn:li:ts_hiring_state:…" }, "metadata": { "action": "move_candidate", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-10-07T12:00:00Z" } } ``` ```json create_project theme={null} { "success": true, "data": { "status": "success", "message": "Project created", "project_id": "2159702274", "project_urn": "urn:li:ts_hiring_project:(urn:li:ts_contract:123,2159702274)", "name": "Growth Marketer — Paris" } } ``` ```json add_to_project theme={null} { "success": true, "data": { "status": "success", "message": "Candidate added to the project", "project_urn": "urn:li:ts_hiring_project:(urn:li:ts_contract:123,2159702274)", "candidate_urn": "urn:li:ts_hire_identity:1670586754", "sourcing_channel_urn": "urn:li:ts_sourcing_channel:…", "sourcing_channel_candidate_urn": "…" } } ``` ```json list_project_candidates theme={null} { "success": true, "data": { "total_results": 1, "total_available_results": 3, "offset": 0, "project_urn": "urn:li:ts_hiring_project:(urn:li:ts_contract:123,2159702274)", "profiles": [ { "full_name": "Jane Doe", "headline": "Growth Marketing Lead", "profile_urn": "urn:li:ts_profile:AEMAA…", "hire_identity_urn": "urn:li:ts_hire_identity:1670586754", "hiring_state": { "name": "contacted", "status_type": "CONTACTED", "urn": "urn:li:ts_hiring_state:…", "can_be_moved_to": true } } ] } } ``` ```json get_project_candidate theme={null} { "success": true, "data": { "project_urn": "urn:li:ts_hiring_project:(urn:li:ts_contract:123,2159702274)", "candidate_urn": "urn:li:ts_hire_identity:1670586754", "is_applicant": false, "hiring_state": { "name": "uncontacted", "status_type": "SHORTLISTED", "urn": "urn:li:ts_hiring_state:…", "can_be_moved_to": true, "sort_order": 0 }, "sourcing_channel_type": "RECRUITER_SEARCH", "added_at": 1759838400000 } } ``` ```json add_note theme={null} { "success": true, "data": { "status": "success", "message": "Note added", "candidate_urn": "urn:li:ts_hire_identity:1670586754", "text": "Strong fit, call next week" } } ``` ```json get_candidate_notes theme={null} { "success": true, "data": { "profile_urn": "urn:li:ts_profile:AEMAA…", "recruiting_profile_urn": "…", "notes": [ { "text": "Strong fit, call next week", "created_at": 1759838400000, "author_urn": null, "visibility": "HIRING_CONTEXT", "urn": "…" } ], "tags": [ { "name": "Shortlist Q4", "urn": "…" } ] } } ``` ```json recommended_candidates theme={null} { "success": true, "data": { "total_results": 1, "offset": 0, "project_urn": "urn:li:ts_hiring_project:(urn:li:ts_contract:123,2159702274)", "profiles": [ { "profile_urn": "urn:li:ts_profile:AEMAA…", "hire_identity_urn": "urn:li:ts_hire_identity:1670586754" } ] } } ``` ## Typical flow 1. [Search People Recruiter](/api-reference/v2/profiles/search-people-recruiter) → keep the candidate's `hire_identity_urn`. 2. `create_project` `{ "name": "Growth Marketer — Paris" }` → keep `project_urn` (or pick one from `list_projects`). 3. `add_to_project` `{ "project_urn", "candidate_urn": }` → the candidate lands in "uncontacted". 4. After contacting them, `move_candidate` with `"state": "contacted"`. ## Example ```json theme={null} { "account_id": "your-account-id", "action": "move_candidate", "params": { "project_urn": "urn:li:ts_hiring_project:(urn:li:ts_contract:123,2159702274)", "candidate_urn": "urn:li:ts_hire_identity:1670586754", "state": "contacted" } } ``` # Publish Job Posting Source: https://docs.linkupapi.com/api-reference/v2/recruiter/publish-job POST /v2/recruiter Publish a draft job posting. ## Overview Publish a draft job posting, making it visible to candidates and open for applications. > [!NOTE] > > This endpoint consumes **1 credit** per request. Ignore this if you're on per-seat pricing: usage is unlimited. ## Request **x-api-key** `string` *required* Your API key for authentication. **account_id** `string` *required* The unique identifier of the account to use. **action** `string` *required* Must be `"publish_job"`. **params** `object` *required* **params properties** **job_id** `string` *required* The ID of the job posting to publish. ## Response **success** `boolean` Indicates whether the request was successful. **data** `object` Confirmation of the publish action. **metadata** `object` **metadata properties** **action** `string` The action that was performed (`"publish_job"`). **account_id** `string` The account ID used for the request. **credits_consumed** `integer` Number of credits consumed (1). **timestamp** `string` ISO 8601 timestamp of the response. ```json 200 theme={null} { "success": true, "data": {}, "metadata": { "action": "publish_job", "account_id": "your-account-id", "credits_consumed": 1, "timestamp": "2026-03-24T12:00:00Z" } } ``` ```json 400 theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "job_id is required." }, "metadata": { "action": "publish_job", "account_id": "your-account-id", "credits_consumed": 0, "timestamp": "2026-03-24T12:00:00Z" } } ``` # Create Webhook Source: https://docs.linkupapi.com/api-reference/v2/webhooks/create POST /v2/webhooks Register a webhook to receive real-time events for an account Create a webhook listener for one of your connected accounts. The delivery mode is determined by whether you provide a `url`: * **With `url`** — Custom mode: events are sent as `POST` requests to your URL * **Without `url`** — Hosted mode: events are available via [SSE stream](/api-reference/v2/webhooks/stream) or [polling](/api-reference/v2/webhooks/events) > [!NOTE] > > **Monitoring starts as soon as the webhook is created.** No need to call [`/start`](/api-reference/v2/webhooks/start): it only resumes a webhook stopped with [`/stop`](/api-reference/v2/webhooks/stop). > > **Cost.** Creating a webhook is free. On a per-account plan, monitoring is included. On a credit plan, a monitored account costs ≈10 credits/day. > [!WARNING] > > **Check your subscription: `all` is not every event.** It leaves out the opt-in events (`message_read`, `message_reaction`, `message_edited`, `message_deleted`, `message_delivered`, `message_failed`), and `message_type` defaults to `inbound`, so the messages the account sends are left out too. Event types added later will also be opt-in. > > To receive everything, set explicitly: > > ```json theme={null} > { > "events": ["all", "message_read", "message_reaction", "message_edited", "message_deleted", "message_delivered", "message_failed"], > "message_type": "all" > } > ``` > > `disconnection` is always delivered, whatever the filter. ### Header Parameters **x-api-key** `string` *required* Your API key ### Body Parameters **account_id** `string` The ID of the account to monitor. Must be an account you own (created via `/v2/login`). Send either `account_id` or `account_ids`. **account_ids** `array` Up to 100 account IDs: creates one webhook per account with the same settings, in one call. The response lists the created webhooks in `data.webhooks` and the accounts that could not be attached in `data.failed`; the others are still created. With `enable_signature`, all of them share the one `secret` returned. **url** `string` The URL where events will be sent as `POST` requests. Must be a publicly accessible HTTPS endpoint. **Omit this field** to create a hosted webhook (SSE/polling). **events** `array` (default: \["all"]) List of event types to listen for. Defaults to `["all"]`. Applies to **custom mode** only: hosted webhooks always receive every event type. Available event types: `message_received`, `accepted_invitation`, `invitation_received`, `message_read` (LinkedIn and WhatsApp read receipts, opt-in: not covered by `all`), `message_reaction`, `message_edited` and `message_deleted` (LinkedIn, opt-in), `message_delivered` and `message_failed` (WhatsApp delivery receipts, opt-in), `all`. For an **email** account, `message_received` covers new incoming emails and `email_bounced` (delivered via `all`) covers bounces — see [Email events](/api-reference/v2/webhooks/introduction#email-events). **message_type** `string` (default: inbound) Direction filter for message events: `inbound` (messages received by the account), `outbound` (messages the account sends, through the API or typed by hand on LinkedIn) or `all`. Outbound messages carry `event.direction: "outbound"` and `event.sender.is_self_sent: true`. **retry** `boolean` (default: true) Custom mode only. When `true`, a POST that times out or gets a `5xx`/`429` is retried with backoff (8 attempts over \~45 h) and every attempt is visible in the delivery log. Set `false` for fire-and-forget (failures are still logged). See [Delivery & retries](/api-reference/v2/webhooks/introduction#delivery-retries-custom-mode). **enable_signature** `boolean` (default: false) Custom mode only. When `true`, every outbound POST is signed with HMAC-SHA256 so you can verify it came from LinkUp. The response returns a `secret` **once** — store it; it cannot be retrieved later. See [Signature Verification](/api-reference/v2/webhooks/signature). ### Response **success** `boolean` Whether the webhook was created successfully **data** `object` **Properties** **webhook_id** `string` Unique identifier for the webhook **account_id** `string` The account this webhook is attached to **mode** `string` `"hosted"` or `"custom"` depending on whether `url` was provided **url** `string` The webhook URL (custom mode only) **stream_url** `string` SSE stream endpoint (hosted mode only) **events_url** `string` Stored-events polling endpoint (both modes) — the catch-up path **deliveries_url** `string` Delivery log endpoint (custom mode only) **retry** `boolean` Whether failed POSTs are retried (custom mode only) **events** `array` Event types this webhook listens for **is_active** `boolean` Whether the webhook is active **secret** `string` HMAC secret. Returned **only when `enable_signature: true`** and only at creation. Save it — there is no way to read it back later. Use [`/rotate-secret`](/api-reference/v2/webhooks/signature) to generate a new one. ```json Hosted Mode (no URL) theme={null} { "success": true, "data": { "webhook_id": "6789abcdef0123456789abcd", "account_id": "69c127c37cae0494dd827286", "mode": "hosted", "stream_url": "/v2/webhooks/6789abcdef0123456789abcd/stream", "events_url": "/v2/webhooks/6789abcdef0123456789abcd/events", "events": ["accepted_invitation", "message_received"], "is_active": true }, "metadata": { "action": "create_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Custom Mode (with URL) theme={null} { "success": true, "data": { "webhook_id": "6789abcdef0123456789abcd", "account_id": "69c127c37cae0494dd827286", "mode": "custom", "url": "https://your-server.com/webhook", "events": ["all"], "is_active": true }, "metadata": { "action": "create_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Several accounts (account_ids) theme={null} { "success": true, "data": { "webhooks": [ { "webhook_id": "6789abcdef0123456789abcd", "account_id": "69c127c37cae0494dd827286", "mode": "custom", "url": "https://your-server.com/webhook", "events": ["all"], "is_active": true } ], "failed": [ { "account_id": "69c127c37cae0494dd8272ff", "error": { "code": "INVALID_ACCOUNT", "message": "Account not found" } } ], "count": 1 }, "metadata": { "action": "create_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Error — Account Not Found theme={null} { "success": false, "error": { "code": "INVALID_ACCOUNT", "message": "Account not found" }, "metadata": { "action": "create_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ### Notes * The webhook is created in an **active and monitoring** state — events start flowing immediately, no extra call required. * You can create multiple webhooks for the same account with different event filters. Billing is per-account (not per-webhook), so adding a second webhook to the same account doesn't double the credit cost. * Stopping the **last** active webhook on an account (via [`/stop`](/api-reference/v2/webhooks/stop) or [`DELETE`](/api-reference/v2/webhooks/delete)) halts monitoring and stops the credit billing automatically. Other webhooks on the same account are unaffected. * For custom mode, the webhook URL must return a `200` status code to acknowledge receipt. * When `accepted_invitation` is in the events list, the API performs an initial sync of your connections to enable detection of new acceptances. Likewise, `invitation_received` stores a baseline of your pending invitations — the existing backlog is never notified, only invitations received after creation. # Delete Webhook Source: https://docs.linkupapi.com/api-reference/v2/webhooks/delete DELETE /v2/webhooks/{webhook_id} Permanently delete a webhook Delete a webhook configuration. If monitoring is active, it will be stopped automatically. ### Header Parameters **x-api-key** `string` *required* Your API key ### Path Parameters **webhook_id** `string` *required* The unique identifier of the webhook to delete ### Response **success** `boolean` Whether the deletion was successful **data** `object` **Properties** **webhook_id** `string` The deleted webhook ID **deleted** `boolean` Always `true` on success ```json Success Response theme={null} { "success": true, "data": { "webhook_id": "6789abcdef0123456789abcd", "deleted": true }, "metadata": { "action": "delete_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Error — Webhook Not Found theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Webhook not found" }, "metadata": { "action": "delete_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ### Notes * This action is **permanent** and cannot be undone * Deleting a webhook does **not** delete the associated account * The account remains connected and can be used for other webhooks or API calls # Poll Events Source: https://docs.linkupapi.com/api-reference/v2/webhooks/events GET /v2/webhooks/{webhook_id}/events Retrieve stored webhook events by polling — the catch-up path for hosted and custom webhooks Fetch the stored events of the webhook's account, oldest first, filtered exactly like the webhook itself (`events` subscription and `message_type` for custom webhooks, `message_type` only for hosted ones). Served from our store: **no LinkedIn traffic** on the account. Use it as a polling alternative to the SSE stream (hosted mode), or to **catch up after an outage on your side** (custom mode) instead of re-syncing the inbox. > [!NOTE] > > Available for **hosted and custom** webhooks. Events are stored for **30 days** then automatically deleted. To re-push missed events to your URL instead, see [Delivery & retries](/api-reference/v2/webhooks/introduction#delivery-retries-custom-mode). ### Header Parameters **x-api-key** `string` *required* Your API key ### Path Parameters **webhook_id** `string` *required* The unique identifier of the webhook ### Query Parameters **since** `string` ISO 8601 datetime to fetch events after. Only events created **after** this timestamp are returned. Example: `2025-01-15T10:30:00Z` **until** `string` ISO 8601 datetime. Only events created **at or before** this timestamp are returned. **after** `string` Cursor: the `event_id` of the last event you processed. Returns the events stored after it. Prefer this over `since` for paging — it is stable even when several events share a timestamp. **count** `integer` (default: 50) Maximum number of events to return. Between 1 and 200. ### Response **success** `boolean` Whether the request was successful **data** `object` **Properties** **items** `array` List of events, sorted by `created_at` ascending **Event Object** **event_id** `string` Unique event identifier **event** `object` The full event payload (see [Event Types](/api-reference/v2/webhooks/introduction#event-types)) **created_at** `string` ISO 8601 timestamp of when the event was stored **next_cursor** `string` `event_id` of the last item when the page is full — pass it as `after` to get the next page. `null` when there is nothing more. ```json Success Response theme={null} { "success": true, "data": { "items": [ { "event_id": "6789abcdef0123456789ab01", "event": { "account_id": "69c127c37cae0494dd827286", "account_name": "My Account", "platform": "linkedin", "event": { "type": "message", "sender_name": "John Doe", "message_text": "Hello!", "sender_profile": "https://www.linkedin.com/in/johndoe" }, "timestamp": "2025-01-15T10:31:00Z" }, "created_at": "2025-01-15T10:31:00.123Z" } ] }, "metadata": { "action": "poll_webhook_events", "credits_consumed": 0, "timestamp": "2025-01-15T10:35:00.000000" } } ``` ```json No Events theme={null} { "success": true, "data": { "items": [] }, "metadata": { "action": "poll_webhook_events", "credits_consumed": 0, "timestamp": "2025-01-15T10:35:00.000000" } } ``` ### Polling Pattern ```javascript theme={null} let lastPollTime = new Date().toISOString(); setInterval(async () => { const res = await fetch( `https://api.linkupapi.com/v2/webhooks/${webhookId}/events?since=${lastPollTime}&limit=100`, { headers: { 'x-api-key': 'YOUR_API_KEY' } } ); const { data } = await res.json(); for (const item of data.items) { console.log('Event:', item.event); lastPollTime = item.created_at; // move cursor forward } }, 10000); // poll every 10 seconds ``` ### Notes * Events are stored for **30 days** (TTL) then automatically deleted * Polling does **not** consume additional credits beyond the monitoring cost * Use the `since` parameter to avoid re-processing events * For real-time delivery, prefer the [SSE Stream](/api-reference/v2/webhooks/stream) endpoint # Webhooks Introduction Source: https://docs.linkupapi.com/api-reference/v2/webhooks/introduction Receive real-time notifications for account activity Webhooks allow you to receive real-time notifications when events happen on your connected accounts — new messages, connection acceptances, incoming connection requests, and more. ## Delivery Modes Webhooks support two delivery modes depending on your setup: > [card] Hosted Mode > > No server needed. Events are delivered via **SSE stream** or **polling**. Perfect for bots, scripts, and local apps. > > Create a webhook **without** a `url` to use hosted mode. > [card] Custom Mode > > Events are sent as `POST` requests to your server. Requires a publicly accessible HTTPS endpoint. > > Create a webhook **with** a `url` to use custom mode. | | Hosted | Custom | | - | - | - | | **Setup** | No server required | HTTPS endpoint required | | **Real-time delivery** | SSE stream (`GET /stream`) | HTTP POST to your URL | | **Delivery guarantee** | Pull at your pace | At-least-once: retries with backoff, delivery log, replay | | **Event history** | 30 days stored events (`GET /events`) | 30 days stored events (`GET /events`) + replay | | **Best for** | Bots, scripts, local dev | Production servers | > [!NOTE] > > **Custom mode** supports optional HMAC-SHA256 [signature verification](/api-reference/v2/webhooks/signature) so your server can reject spoofed payloads. Opt in with `enable_signature: true` at creation time. ## Delivery & retries (custom mode) Custom webhooks are delivered **at least once**. Every envelope carries a stable top-level `event_id` (also sent as `X-Linkup-Event-Id`, with `X-Linkup-Attempt` and `X-Linkup-Webhook-Id`) — dedupe on it. A POST is successful on any `2xx`. On timeout (10 s), connection error, `5xx`, `408`/`425`/`429` we retry with backoff: 1 min, 5 min, 30 min, 2 h, 6 h, 12 h, 24 h (8 attempts). Any other `4xx` or a `3xx` is recorded as `failed` and not retried. Turn retries off per webhook with `retry: false`. `accepted_invitation` and `invitation_received` are the exception: each is posted once, without retries. Everything we sent, or still owe, is visible for 30 days, and replayable, from the API: | Endpoint | Purpose | | - | - | | `GET /v2/webhooks/{id}/deliveries?state=failed` | Delivery log: each attempt, the status code you returned, timeouts, next retry (`cursor` paging, `since`/`until`, `event_id`) | | `GET /v2/webhooks/{id}/deliveries/{delivery_id}` | One delivery with the exact payload we POSTed | | `POST /v2/webhooks/{id}/deliveries/{delivery_id}/replay` | Re-POST it now (header `X-Linkup-Replay: true`) | | `POST /v2/webhooks/{id}/replay` | `{"event_id": "…"}` re-POSTs one event now; `{"from": "…", "to": "…", "only_failed": true}` queues a time range (max 5000) | | [`GET /v2/webhooks/{id}/events?after=`](/api-reference/v2/webhooks/events) | Pull the stored events yourself (30 days), no LinkedIn traffic | | `GET /v2/webhooks/retry-policy` | The policy above, as data | ## How It Works > [tab] Hosted Mode > > **1. Connect your account** > > Use `POST /v2/login` to connect an account and get an `account_id`. > > **2. Create a hosted webhook** > > Call `POST /v2/webhooks` **without** a `url`. You'll receive a `webhook_id`, `stream_url`, and `events_url`. Monitoring starts automatically. > > **3. Receive events** > > Connect to the SSE stream or poll the events endpoint. > [tab] Custom Mode > > **1. Connect your account** > > Use `POST /v2/login` to connect an account and get an `account_id`. > > **2. Create a webhook with URL** > > Call `POST /v2/webhooks` with your server's `url`. Monitoring starts automatically. > > **3. Receive events** > > Events are sent as `POST` requests to your URL in real time. ## Event Types | Subscription filter | Emitted `event.type` | Description | | - | - | - | | `message_received` | `"message"` | A new message (LinkedIn) or email was received — use the top-level `platform` field to tell the two channels apart | | `accepted_invitation` | `"accepted_invitation"` | One or more connection requests you sent were accepted | | `invitation_received` | `"invitation_received"` | The account received one or more new connection requests | | `email_bounced` *(email, via `all`)* | `"email_bounced"` | An email you sent bounced | | `message_read` *(LinkedIn, WhatsApp, opt-in)* | `"message_read"` | A participant has seen one of the account's messages. Not included in `all`: name it in `events` to receive it | | `message_reaction` *(LinkedIn, WhatsApp, opt-in)* | `"message_reaction"` | Someone added or removed an emoji reaction on a message of the account | | `message_edited` *(LinkedIn, WhatsApp, opt-in)* | `"message_edited"` | A message of the account's threads was edited | | `message_deleted` *(LinkedIn, WhatsApp, opt-in)* | `"message_deleted"` | A message of the account's threads was unsent | | `message_delivered` *(WhatsApp, iMessage, opt-in)* | `"message_delivered"` | A message the account sent reached the recipient's phone. Not included in `all` | | `message_failed` *(WhatsApp, iMessage, opt-in)* | `"message_failed"` | A message the account sent could not be delivered. Not included in `all` | | `call` *(WhatsApp, opt-in)* | `"call"` | An incoming call: `state` is `ringing`, `missed`, `rejected`, `accepted` or `ended`, with `call_id`, `caller`, `is_video`. Decline it with `reject_call` | | `all` | — | Subscribe to all event types (except opt-in types: `message_read`, `message_delivered`, `message_failed`, `message_reaction`, `message_edited`, `message_deleted`, `call`) | > [!NOTE] > > By default, webhooks listen to **all** event types. In **custom mode**, you can filter specific events when creating the webhook by passing an `events` array. **Hosted** webhooks (SSE stream and `GET /events`) always receive every event type — only the `message_type` direction filter applies — so filter on `event.type` on your side. > [!WARNING] > > The subscription filter `message_received` is intentionally different from the actual `event.type`, which is `"message"`. Filter against `message_received` when creating the webhook. A LinkedIn message and an inbound email both arrive as `event.type === "message"` — read the top-level **`platform`** field (`"linkedin"` vs `"email"`) to tell them apart (see [Email events](#email-events)). > [!NOTE] > > In addition to subscribed events, **every webhook also receives `disconnection` events** — this is not filterable. They fire whenever the underlying platform session expires so you can react (re-auth, alert, etc.). ## Event Payload Format All events share the same wrapper structure. Note that the outer `timestamp` is when the API emitted the event, while `event.timestamp` is when the underlying platform activity happened — they differ slightly (latency). The top-level **`platform`** field (`"linkedin"`, `"email"`, `"whatsapp"` or `"imessage"`) tells you which channel the event came from — this is how you distinguish an inbound email from a LinkedIn DM, since both use `event.type: "message"`. The top-level **`event_id`** is the stable identifier of the event: identical on every retry or replay, and the key to dedupe on (see [Delivery & retries](#delivery-retries-custom-mode)). A top-level **`catch_up: true`** marks messages that were not delivered live: those LinkupAPI catches up after an interruption of the real-time connection, and those imported by an [inbox sync](/api-reference/v2/accounts/sync-inbox) (which also carry `sync_id` and up to 25 messages under `events` instead of `event`). They can be old — skip them in automations that react to incoming messages. ```json theme={null} { "event_id": "6ab13cf890294b92776b5343", "account_id": "69ee261e41fc4cbecf9f34c9", "account_name": "your.email@example.com", "platform": "linkedin", "event": { "type": "...", "timestamp": "2026-04-28T08:07:45.525693" // event-specific fields below }, "timestamp": "2026-04-28T08:07:45.525853" } ``` ### Message Received Triggered in real-time when a new message is received via the platform's realtime stream (sub-second latency). The inner event `type` is `"message"` and `platform` is `"linkedin"`. ```json theme={null} { "account_id": "69ee261e41fc4cbecf9f34c9", "account_name": "your.email@example.com", "platform": "linkedin", "event": { "type": "message", "inbox": "classic", "timestamp": "2026-04-28T10:07:45.525693", "message_text": "Hello! I'd love to connect.", "sender": { "name": "John Doe", "profile_url": "https://www.linkedin.com/in/ACoAAEMT_nsB5U1uon01_EjK9Yf4En52jDd2hGE" }, "conversation": { "participants": [ { "name": "Your Name", "profile_url": "https://www.linkedin.com/in/ACoAADxnv0oB_dN-NfpvEBlsVPU_W1omM-Xu24o" }, { "name": "John Doe", "profile_url": "https://www.linkedin.com/in/ACoAAEMT_nsB5U1uon01_EjK9Yf4En52jDd2hGE" } ], "is_group_chat": false, "unread_count": 1 }, "metadata": { "entity_urn": "urn:li:msg_message:(urn:li:fsd_profile:ACoAADxnv0oB_dN-NfpvEBlsVPU_W1omM-Xu24o,2-MTc3NzM2MzY2NDkyMGI4MzE3Mi0xMDAmMDZiY2ExOTgtM2NjNy00OTU4LTgyNjUtZWFlMmIwZjM1NTlmXzEwMA==)", "conversation_urn": "urn:li:msg_conversation:(urn:li:fsd_profile:ACoAADxnv0oB_dN-NfpvEBlsVPU_W1omM-Xu24o,2-MDZiY2ExOTgtM2NjNy00OTU4LTgyNjUtZWFlMmIwZjM1NTlmXzEwMA==)", "delivered_at": 1777363664920, "read_status": false } }, "timestamp": "2026-04-28T08:07:45.525853" } ``` **Field reference** | Field | Type | Description | | - | - | - | | `event.inbox` | `string` | Which inbox the message came from: `classic` for LinkedIn messaging, `sales_navigator` for a Sales Navigator InMail thread, `recruiter` for a Recruiter InMail. See [Sales Navigator inbox](#sales-navigator-inbox) and [Recruiter inbox](#recruiter-inbox). | | `event.message_text` | `string` | Plain text content of the message | | `event.sender.name` | `string` | Display name of the sender | | `event.sender.profile_url` | `string` | Profile URL of the sender (ID-based, not vanity) | | `event.sender.is_self_sent` | `boolean` | `true` when the account itself sent the message | | `event.direction` | `string` | `inbound` or `outbound`. Outbound messages (sent through the API or typed by hand on LinkedIn) are only delivered to webhooks with `message_type` `outbound` or `all`. | | `event.conversation.participants` | `array` | All participants of the thread, sender included | | `event.conversation.is_group_chat` | `boolean` | `true` if 3+ participants | | `event.conversation.unread_count` | `integer` | Number of unread messages in the thread | | `event.reply_to` | `object?` | **Only present when the message is a reply.** Contains `message_text`, `sender_name`, `sender_profile_url`, `timestamp` of the original message. Omitted (not `null`) for non-reply messages. | | `event.metadata.entity_urn` | `string` | Unique identifier of the message | | `event.metadata.conversation_urn` | `string` | Unique identifier of the conversation thread | | `event.metadata.delivered_at` | `integer` | Unix milliseconds delivery time | | `event.metadata.read_status` | `boolean` | Whether the conversation is marked read | | `event.has_attachments` | `boolean` | `true` when the message carries at least one attachment | | `event.attachments` | `array` | One entry per attachment. Empty when there are none. | | `event.mentions` | `array` | Members tagged with `@` in `message_text`: `name`, `member_urn`, `profile_url`, `start`, `length` (offsets in `message_text`, counted like JavaScript strings). Empty when nobody is tagged. Example: `[{"name": "Diego Hernández", "member_urn": "urn:li:fsd_profile:ACoAA...", "profile_url": "https://www.linkedin.com/in/ACoAA...", "start": 19, "length": 16}]` | | `event.message_type` | `string` | What the message is. Classic inbox: `TEXT`, `MEDIA` (attachment without text) or `SYSTEM`. Sales Navigator inbox: `INMAIL`, `MESSAGE`, `INMAIL_DECLINE` or `INMAIL_ACCEPT`. An `INMAIL_DECLINE` is the prospect pressing "Not interested" on your InMail: it arrives with an empty `message_text` and is a refusal, not a reply. | > [!TIP] > > When the message is a reply, an additional `event.reply_to` object is included with the original message details. For non-reply messages, the field is **omitted entirely** from the payload — don't expect a `null`. **Attachments** ```json theme={null} "has_attachments": true, "attachments": [ { "type": "file", "name": "proposal.pdf", "mime_type": "application/pdf", "byte_size": 184320, "asset_urn": "urn:li:digitalmediaAsset:D4E06AQ...", "url": "https://media.licdn.com/dms/document/...", "download_url": "https://api.linkupapi.com/v2/messages/attachment?account_id=...&conversation_id=...&asset_urn=..." } ] ``` `type` is `image`, `file`, `audio`, `video`, `gif` or `unknown`. Audio and video also carry `duration_ms` and `thumbnail_url`. > [!WARNING] > > `url` is LinkedIn's own media URL: it requires the account session and its signature expires, so it is not fetchable on its own. Use `download_url` — see [Download Attachment](/api-reference/v2/messages/download-attachment). ### Email events For an [email mailbox](/api-reference/v2/accounts/login#email-mailbox), the monitor watches the **inbox** and emits two event types. Both are covered by the `message_received` filter / `all`. A new email is reported within about 10 seconds on Gmail and Outlook, and within seconds on IMAP mailboxes (IMAP IDLE; servers without IDLE are checked every minute). Emails the provider files in Spam or Junk are not reported. Email events carry the top-level **`platform: "email"`** — that, not `event.type`, is how you tell them from a LinkedIn DM. **New email received** — inner `type` is `"message"` (same as a LinkedIn message; `platform` is what distinguishes them): ```json theme={null} { "account_id": "6a75f0923a25191f7c8c5bba", "account_name": "you@company.com", "platform": "email", "event": { "type": "message", "timestamp": "2026-09-14T10:07:45.525693", "subject": "Re: Quick question", "message_id": "", "in_reply_to": "<178928915191...@gmail.com>", "sender": { "name": "John Doe", "email": "john@example.com", "is_self_sent": false }, "message_text": "Sure, let's chat Thursday.", "raw_data": { "entityUrn": "email:you@company.com:" } }, "timestamp": "2026-09-14T10:07:46.001000" } ``` **Sent email bounced** — inner `type` is `"email_bounced"`: ```json theme={null} { "account_id": "6a75f0923a25191f7c8c5bba", "account_name": "you@company.com", "platform": "email", "event": { "type": "email_bounced", "timestamp": "2026-09-14T10:10:00.000000", "subject": "Quick question", "message_id": "<...@gmail.com>", "sender": { "name": "Mail Delivery Subsystem", "email": "mailer-daemon@googlemail.com", "is_self_sent": false }, "bounce_status": "5.1.1", "bounce_kind": "hard", "bounced_recipient": "wrong@example.com", "raw_data": { "entityUrn": "email:you@company.com:<...@gmail.com>" } }, "timestamp": "2026-09-14T10:10:01.000000" } ``` **Field reference** | Field | Type | Description | | - | - | - | | `event.subject` | `string` | Email subject. | | `event.message_id` | `string` | The email's Message-ID. | | `event.in_reply_to` | `string?` | Message-ID this email replies to, when it is a reply. | | `event.sender.name` / `event.sender.email` | `string` | Sender display name and address. | | `event.sender.is_self_sent` | `boolean` | `true` when the mailbox is also the sender. | | `event.message_text` | `string` | Snippet of the body (up to 500 chars). Inbound email (`type: "message"`) only. | | `event.opt_out_detected` | `boolean?` | Present and `true` when the body/subject looks like an unsubscribe/opt-out. | | `event.bounce_status` | `string` | RFC 3463 status code (e.g. `5.1.1`). `email_bounced` only. | | `event.bounce_kind` | `string` | `hard` or `soft`. `email_bounced` only. | | `event.bounced_recipient` | `string` | The address that bounced. `email_bounced` only. | ### Sales Navigator inbox Sales Navigator has its own inbox, separate from LinkedIn messaging. A reply to an InMail lands there and **never** appears in the classic thread, so it used to be invisible to webhooks. Both inboxes now feed the same webhook. Use `event.inbox` to tell them apart. | `event.inbox` | Source | | - | - | | `classic` | LinkedIn messaging | | `sales_navigator` | Sales Navigator InMail thread | This is automatic: an account whose Sales Navigator seat is connected starts receiving both. Nothing to configure, and no extra credit is charged. An account without a connected seat is unaffected and keeps receiving `classic` events only. ```json theme={null} { "account_id": "69ee261e41fc4cbecf9f34c9", "account_name": "your.email@example.com", "platform": "linkedin", "event": { "type": "message", "inbox": "sales_navigator", "timestamp": "2026-04-28T10:07:45.525693", "message_text": "Thanks for reaching out — happy to talk next week.", "message_type": "MESSAGE", "sender": { "name": "Douglas Collombat", "profile_url": "https://www.linkedin.com/in/douglas-collombat-8aa5863a7", "member_urn": "urn:li:member:1670586754", "degree": 1, "urn_raw": "urn:li:fs_salesProfile:(ACwAAGOTIYIBDvlWDchVYxaO35AeIjn5Jr9cW5Y,NAME_SEARCH,1aMb)" }, "metadata": { "entity_urn": "urn:li:fs_salesMessage:2-MTc4ODU0NDYyMDY5M2IyNTg3Ny0xMDAmOTI0OTkzYTQt...", "conversation_urn": "urn:li:fs_salesMessagingThread:2-OTI0OTkzYTQtZjgwNy00OTJlLWJhY2YtNTMyNGRkNWFlYWIy...", "delivered_at": 1788544620693 } }, "timestamp": "2026-04-28T08:07:45.525853" } ``` > [!WARNING] > > A prospect can decline an InMail instead of answering it. That comes through as a `message` event with `"message_type": "INMAIL_DECLINE"` and an empty `message_text`. Treat it as a refusal: do not count it as a reply, and stop the sequence. **Identifying the sender** The realtime stream only gives the sender's Sales Navigator id, which is meaningless outside Sales Navigator. We resolve it for you, so the sender arrives in the same shape as on the classic inbox, plus two fields specific to this inbox. | Field | Description | | - | - | | `sender.name` | Full name | | `sender.profile_url` | Public profile URL — match it against your own records | | `sender.member_urn` | `urn:li:member:`, stable across LinkedIn | | `sender.degree` | Connection degree, `1`, `2` or `3` | | `sender.urn_raw` | The Sales Navigator id. Pass it as `recipient_urn` to reply. | > [!NOTE] > > Resolution costs one lookup per **contact**, not per message, and is cached: the first message from someone takes about half a second longer, their next ones are instant. No credit is charged. If the lookup fails, the event is still delivered with `sender.urn_raw` alone. > [!NOTE] > > `metadata.conversation_urn` is a `fs_salesMessagingThread` URN, not a classic `msg_conversation` one. Pass its thread id to [List Inbox](/api-reference/v2/messages/list-inbox) or [Get Conversation](/api-reference/v2/messages/get-conversation) with `sales_nav: true` to read the thread, and reply with [Send Message](/api-reference/v2/messages/send) using `inmail: true`. ### Recruiter inbox Recruiter InMails arrive on the LinkedIn account's webhook, with `"product": "recruiter"` and `event.inbox: "recruiter"` (see [Recruiter seat](/api-reference/v2/accounts/login#recruiter-seat)). Both directions come through: the candidate's replies (`direction: "inbound"`) and the seat's own sends (`direction: "outbound"`, `sender.is_self_sent: true`). ```json theme={null} { "account_id": "your-account-id", "account_name": "your.email@example.com", "platform": "linkedin", "product": "recruiter", "event": { "type": "message", "inbox": "recruiter", "direction": "inbound", "timestamp": "2026-10-07T14:25:46.592089", "message_text": "Thanks, happy to talk next week.", "message_type": "INMAIL", "subject": "Growth role in Paris", "conversation_id": "2-YzZhYzFjYTUtODMyYS00NDJkLWI2NTMtMmE3MWNlNjU5YzIyXzEwMA==", "project_urn": "urn:li:ts_hiring_project:(urn:li:contract:2064790365,2159702274)", "folders": ["ACCEPTED", "UNREAD", "INBOX"], "sender": { "name": "Douglas Collombat", "profile_url": "", "urn_raw": "urn:li:ts_profile:AEMAAGOTIYIB-DhDANCE28kq7JCRPMqkPJjTeXo", "is_self_sent": false }, "conversation": { "participants": [{ "name": "Douglas Collombat", "profile_url": "" }], "is_group_chat": false, "unread_count": 0 }, "metadata": { "entity_urn": "urn:li:ts_msg_message:2-MTc5MTM3NTk0NjA0N2IzMTYyMS0xMDAmYzZh...", "conversation_urn": "urn:li:ts_msg_conversation:2-YzZhYzFjYTUtODMyYS00NDJkLWI2NTMtMmE3MWNlNjU5YzIyXzEwMA==", "delivered_at": 1791375946047, "read_status": false }, "attachments": [], "has_attachments": false }, "timestamp": "2026-10-07T12:25:46.593510" } ``` | Field | Description | | - | - | | `event.message_type` | Always `INMAIL` | | `event.subject` | The thread's subject. Present on the opening InMail and on the candidate's replies; **absent on the seat's own replies** (LinkedIn sends none) | | `event.conversation_id` | Thread id — pass it to [Get Conversation](/api-reference/v2/messages/get-conversation#recruiter-conversations) or reply with [Send Message](/api-reference/v2/messages/send#recruiter-inmail) | | `event.project_urn` | The [project](/api-reference/v2/recruiter/projects) the thread belongs to. Absent for a standalone InMail | | `event.folders` | Mailbox folders the thread is in: `INBOX`, `UNREAD`, `AWAITING_REPLY`, `ACCEPTED`, `ACCEPTED_BUT_NOT_RESPONDED`, `DECLINED`, `ARCHIVED`… This is where the InMail's outcome lives: `ACCEPTED` once the candidate answered, `DECLINED` if they refused | | `event.reply_status` | Only on the seat's **opening** InMail (`AWAITING_REPLY`). LinkedIn does not send it on later messages — read `folders` instead | | `event.sender.urn_raw` | `urn:li:ts_profile:…` for the candidate (pass it as `recipient_urn`), `urn:li:ts_seat:…` for the seat | | `event.attachments` | Same shape as above, with `url: null` (LinkedIn never sends a link). `download_url` points at [Download Attachment](/api-reference/v2/messages/download-attachment) with the account's `account_id`, the message (`message_id`) and the file (`asset_urn`). An image comes back re-encoded by LinkedIn, so its size can differ from `byte_size` | > [!NOTE] > > LinkedIn's Recruiter stream carries less than the classic one. Always empty or fixed on a Recruiter event: > > * `sender.profile_url` — the candidate is only identified by `urn_raw`; resolve them with [Get Profile](/api-reference/v2/profiles/get-profile#recruiter) and `recruiter: true` > * `conversation.participants` — the sender only; for both sides, read the thread with [Get Conversation](/api-reference/v2/messages/get-conversation#recruiter-conversations) > * `conversation.unread_count` (`0`) and `metadata.read_status` (`false`) — use `folders` (`UNREAD`) > * `reply_to` — never present ### Message Read Triggered when a participant of a thread sees one of the account's messages (LinkedIn read receipt). **Opt-in**: it is only delivered to webhooks whose `events` list contains `message_read`, never through `all` or to hosted webhooks that did not name it, and the account reading its own inbox does not fire it. One event per message and reader. ```json theme={null} { "event_id": "6ad0c9567ec96b30888d2f61", "account_id": "69ee261e41fc4cbecf9f34c9", "account_name": "your.email@example.com", "platform": "linkedin", "event": { "type": "message_read", "timestamp": "2026-10-15T12:35:34.442336", "seen_at": 1792067734213, "message_urn": "urn:li:msg_message:(urn:li:fsd_profile:ACoAAD...,2-MTc5...)", "conversation_urn": "urn:li:msg_conversation:(urn:li:fsd_profile:ACoAAD...,2-YTg2...)", "reader": { "name": "Jane Doe", "profile_url": "https://www.linkedin.com/in/ACoAAGOT...", "urn": "urn:li:fsd_profile:ACoAAGOT...", "headline": "Head of Sales at Acme" }, "is_self_read": false }, "timestamp": "2026-10-15T12:35:34.442336" } ``` **Field reference** | Field | Type | Description | | - | - | - | | `event.seen_at` | `integer` | When the reader saw the message, epoch milliseconds | | `event.message_urn` | `string` | The message that was seen (`entity_urn` in [Get Conversation](/api-reference/v2/messages/get-conversation)). Every earlier message of the thread is seen too | | `event.conversation_urn` | `string` | The thread, usable as `conversation_id` | | `event.reader` | `object` | Who read it: `name`, `profile_url`, `urn`, `headline` | **WhatsApp** sends the same event (`platform: "whatsapp"`) when the recipient reads a message the account sent: `message_urn` and `message_id` are the WhatsApp message id, `conversation_urn` and `conversation_id` the chat, `reader` carries `phone_number` and `jid` (`urn` and `headline` are null). In a group WhatsApp does not say who read it: the `reader` fields are null and `is_group_chat` is true. ### Message Delivered / Message Failed (WhatsApp, iMessage) Opt-in like `message_read`: name `message_delivered` or `message_failed` in `events`. `message_delivered` fires once when a message the account sent reaches the recipient's phone (`delivered_at`, epoch milliseconds); `message_failed` when it could not be delivered (`failed_at`; on iMessage, plus `error_code`). Same frame as the read event, with `recipient` instead of `reader`. ```json theme={null} { "event_id": "6ad0e9a153ea1583ca478c77", "account_id": "6ab8e649459f45ad3a9aad6e", "account_name": "Titouan", "platform": "whatsapp", "event": { "type": "message_delivered", "timestamp": "2026-10-15T14:56:33.372754", "message_urn": "3EB0C1A2B3D4E5F6A7B8", "message_id": "3EB0C1A2B3D4E5F6A7B8", "conversation_urn": "33612345678@s.whatsapp.net", "conversation_id": "33612345678@s.whatsapp.net", "is_group_chat": false, "sent_at": 1792070000000, "delivered_at": 1792070005000, "recipient": { "name": "Jane Doe", "profile_url": "https://wa.me/33612345678", "urn": null, "headline": null, "phone_number": "33612345678", "jid": "33612345678@s.whatsapp.net" } }, "timestamp": "2026-10-15T14:56:33.373415" } ``` ### Message Reaction / Edited / Deleted (LinkedIn, iMessage) Opt-in like `message_read`: name `message_reaction`, `message_edited` or `message_deleted` in `events`. * `message_reaction`: someone added or removed an emoji on a message of the account's threads. `action` is `added` or `removed`, `reaction_count` the count of this emoji after the change, `actor` who reacted. The account's own reactions are not sent. On iMessage, `emoji` can be a tapback (`love`, `like`, `dislike`, `laugh`, `emphasize`, `question`) and `actor` carries `phone_number` or `email`; there is no `reaction_count`. * `message_edited`: a message was edited, `message_text` is the new text. * `message_deleted`: a message was unsent. Its text is gone, use `message_urn` to find it. Both carry `sender` (the author, the only one who can edit or unsend) and `is_self_sent` (`true` when the account itself edited or unsent it). ```json theme={null} { "event_id": "6ad1a2b37ec96b30888d3a10", "account_id": "69ee261e41fc4cbecf9f34c9", "platform": "linkedin", "event": { "type": "message_reaction", "action": "added", "emoji": "👍", "reaction_count": 1, "message_urn": "urn:li:msg_message:(urn:li:fsd_profile:ACoAAD...,2-MTc5...)", "conversation_urn": "urn:li:msg_conversation:(urn:li:fsd_profile:ACoAAD...,2-YTg2...)", "actor": { "name": "Jane Doe", "profile_url": "https://www.linkedin.com/in/ACoAAGOT...", "urn": "urn:li:fsd_profile:ACoAAGOT...", "headline": "Head of Sales at Acme" }, "is_self_reaction": false } } ``` ```json theme={null} { "event": { "type": "message_edited", "message_urn": "urn:li:msg_message:(urn:li:fsd_profile:ACoAAD...,2-MTc5...)", "conversation_urn": "urn:li:msg_conversation:(urn:li:fsd_profile:ACoAAD...,2-YTg2...)", "message_text": "Updated text", "sender": { "name": "Jane Doe", "profile_url": "https://www.linkedin.com/in/ACoAAGOT...", "urn": "urn:li:fsd_profile:ACoAAGOT..." }, "is_self_sent": false, "delivered_at": 1792853045769 } } ``` ### Accepted Invitation Triggered when one or more connection requests you sent are accepted. Detected in real time. The payload batches all new connections detected in the same check. ```json theme={null} { "event_id": "6a0f1c2b3d4e5f6a7b8c9d0e", "account_id": "69ee261e41fc4cbecf9f34c9", "account_name": "your.email@example.com", "platform": "linkedin", "event": { "type": "accepted_invitation", "new_connections": [ { "profile_url": "https://www.linkedin.com/in/maruthigudi/", "name": "Maruthi Gudi", "member_urn": "urn:li:fsd_profile:ACoAABxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1", "job_title": "Building High-Performance Tech & FinTech Teams | Headhunter @ HackerTrail", "profile_picture": "https://media.licdn.com/dms/image/v2/D4E03AQEEUE9iAq2LXA/profile-displayphoto-shrink_100_100/B4EZYY8bulGYAU-/0/1744175218426" }, { "profile_url": "https://www.linkedin.com/in/musokeshaibu/", "name": "Musoke Shaibu", "member_urn": "urn:li:fsd_profile:ACoAABxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx2", "job_title": "Building the definitive operating system for sales, marketing, and research.", "profile_picture": "https://media.licdn.com/dms/image/v2/D4D03AQGCOZ3SrVT5Tg/profile-displayphoto-shrink_200_200/B4DZZtP29UGcAY-/0/1745589597790" } ], "count": 2, "timestamp": "2026-04-27T14:52:59.970134" }, "timestamp": "2026-04-27T14:52:59.970144" } ``` **Field reference** | Field | Type | Description | | - | - | - | | `event.new_connections` | `array` | Profiles that accepted your connection request since the last check | | `event.new_connections[].profile_url` | `string` | Public profile URL of the connection | | `event.new_connections[].name` | `string` | Display name | | `event.new_connections[].member_urn` | `string` | Member URN (`urn:li:fsd_profile:ACoA…`), the id `invite` accepts. Match it against the members you invited. | | `event.new_connections[].job_title` | `string \| null` | Headline / current role as shown on the platform | | `event.new_connections[].profile_picture` | `string \| null` | CDN URL of the profile picture (may expire) | | `event.count` | `integer` | Length of `new_connections` | > [!NOTE] > > When you create a webhook subscribed to `accepted_invitation` (or `all`), the API performs an initial sync of your existing connections in the background. Acceptances are then detected in real time. A periodic full check (every \~6 hours) catches any acceptance missed in real time. ### Invitation Received Triggered when the account receives one or more new connection requests. Detected by a background check (\~6 hour cadence by default), so it's suited for inbound automation — auto-accepting, routing to a CRM, or replying — rather than instant notifications. The payload batches all new invitations detected in the same check. ```json theme={null} { "account_id": "69ee261e41fc4cbecf9f34c9", "account_name": "your.email@example.com", "platform": "linkedin", "event": { "type": "invitation_received", "new_invitations": [ { "name": "Jane Cooper", "profile_url": "https://www.linkedin.com/in/jane-cooper", "profile_picture": "https://media.licdn.com/dms/image/v2/D4D03AQFcP6361wcRgg/profile-displayphoto-scale_200_200", "subtitle": "Growth Marketing Lead @ Acme", "message": "Hi! I'd love to connect and exchange about your product.", "sent_time": "2 days ago", "invitation_id": "7498280075365183488", "shared_secret": "aBcDeFgH", "entity_urn": "urn:li:fsd_invitation:7498280075365183488" } ], "count": 1, "timestamp": "2026-08-29T15:58:43.629574" }, "timestamp": "2026-08-29T15:58:43.629583" } ``` **Field reference** | Field | Type | Description | | - | - | - | | `event.new_invitations` | `array` | Connection requests received since the last check | | `event.new_invitations[].name` | `string` | Display name of the sender | | `event.new_invitations[].profile_url` | `string` | Profile URL of the sender | | `event.new_invitations[].profile_picture` | `string \| null` | CDN URL of the profile picture (may expire) | | `event.new_invitations[].subtitle` | `string \| null` | Headline of the sender | | `event.new_invitations[].message` | `string \| null` | The note attached to the invitation, if any | | `event.new_invitations[].sent_time` | `string` | Relative time the invitation was sent (e.g. `"2 days ago"`) | | `event.new_invitations[].invitation_id` | `string` | Invitation ID **as a string** | | `event.new_invitations[].shared_secret` | `string \| null` | Secret required to [accept](/api-reference/v2/network/accept) the invitation | | `event.new_invitations[].entity_urn` | `string` | Invitation URN — pass it with `shared_secret` to [Accept Invitation](/api-reference/v2/network/accept) | | `event.count` | `integer` | Length of `new_invitations` | > [!NOTE] > > When you create a webhook subscribed to `invitation_received` (or `all`), the API stores a baseline of your currently pending invitations in the background — the existing backlog is never notified, only invitations received **after** the webhook was created. > [!TIP] > > To auto-accept an incoming invitation, call [Accept Invitation](/api-reference/v2/network/accept) with the payload's `entity_urn` and `shared_secret`. `invitation_id` is delivered as a **string** because the raw 19-digit number exceeds JavaScript's `Number.MAX_SAFE_INTEGER` — keep it as a string end to end. ### Disconnection Triggered when the account's platform session expires, the cookie is invalidated, or the user logs out. Sent to **every** webhook attached to the account regardless of subscription filters. **WhatsApp only:** when the linked device is removed from the phone, the event is sent about one hour later, once the removal is confirmed (`reason`: `"WhatsApp session logged out from the phone"`). Until then, sends answer `NOT_CONNECTED`. ```json theme={null} { "account_id": "69ee261e41fc4cbecf9f34c9", "account_name": "your.email@example.com", "platform": "linkedin", "event": { "type": "disconnection", "reason": "LinkedIn cookie invalid or expired", "timestamp": "2026-04-28T09:15:30.123456" }, "timestamp": "2026-04-28T09:15:30.123456" } ``` **Field reference** | Field | Type | Description | | - | - | - | | `event.reason` | `string` | Human-readable cause (e.g. `"Token expired (detected after 10 reconnections)"`, `"LinkedIn cookie invalid or expired"`) | > [!WARNING] > > When you receive a disconnection event, monitoring stops automatically and every webhook attached to the account is paused (with `auto_paused: true`). You need to re-authenticate the account via `POST /v2/login` (or `POST /v2/checkpoint` if a 2FA is required) — paused webhooks are auto-restarted on a successful re-login. ## Architecture Unlike the V1 webhook system which required creating a separate "webhook account", the V2 system works with your existing accounts: * **V2 accounts** are created via `POST /v2/login` (profiles, messages, network, etc.) * **Webhooks** are configurations that attach to those accounts * One account can have multiple webhooks with different event filters * Starting/stopping monitoring is done per webhook # List Webhooks Source: https://docs.linkupapi.com/api-reference/v2/webhooks/list GET /v2/webhooks List all webhooks for your account Retrieve all webhook configurations associated with your API key. ### Header Parameters **x-api-key** `string` *required* Your API key ### Response **success** `boolean` Whether the request was successful **data** `object` **Properties** **items** `array` List of webhook objects **Webhook Object** **webhook_id** `string` Unique identifier for the webhook **account_id** `string` The account this webhook is attached to **platform** `string` Platform of the associated account (e.g. `linkedin`, `whatsapp`) **url** `string` The webhook URL **retry** `boolean` Whether failed POSTs are retried with backoff (custom mode only) **deliveries_url** `string` Delivery log endpoint (custom mode only) **events_url** `string` Stored-events polling endpoint (both modes) **events** `array` Event types this webhook listens for **is_active** `boolean` Whether the webhook is active **created_at** `string` ISO 8601 creation timestamp **updated_at** `string` ISO 8601 last update timestamp **total** `integer` Total number of webhooks ```json Success Response theme={null} { "success": true, "data": { "items": [ { "webhook_id": "6789abcdef0123456789abcd", "account_id": "69c127c37cae0494dd827286", "platform": "linkedin", "url": "https://your-server.com/webhook", "events": ["all"], "is_active": true, "created_at": "2025-01-15T10:30:00.000000", "updated_at": "2025-01-15T10:30:00.000000" } ], "total": 1, "limit": 1, "offset": 0 }, "metadata": { "action": "list_webhooks", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` # Signature Verification Source: https://docs.linkupapi.com/api-reference/v2/webhooks/signature Verify that incoming webhook POSTs come from LinkUp Custom-mode webhooks can be signed with HMAC-SHA256 so your server can reject spoofed payloads. Opt in by passing `enable_signature: true` when creating the webhook — backward-compatible, off by default. ## Headers sent on every POST ``` X-Linkup-Timestamp: 1714386470 X-Linkup-Signature: v1=."))> Content-Type: application/json ``` The signed string is `"{timestamp}.{raw_body}"`, joined with a literal dot. Use the **raw request body** — do not re-serialize the JSON, whitespace differences will break the check. ## Verify on your server ```python Python theme={null} import hmac, hashlib def verify(secret: str, headers: dict, raw_body: bytes) -> bool: ts = headers.get("X-Linkup-Timestamp", "") sig = headers.get("X-Linkup-Signature", "") if not sig.startswith("v1="): return False expected = hmac.new( secret.encode(), f"{ts}.".encode() + raw_body, hashlib.sha256, ).hexdigest() return hmac.compare_digest(expected, sig[3:]) ``` ```javascript Node.js theme={null} const crypto = require("crypto"); function verify(secret, headers, rawBody) { const ts = headers["x-linkup-timestamp"] || ""; const sig = headers["x-linkup-signature"] || ""; if (!sig.startsWith("v1=")) return false; const expected = crypto .createHmac("sha256", secret) .update(`${ts}.`) .update(rawBody) .digest("hex"); return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(sig.slice(3))); } ``` > [!TIP] > > Reject requests where `X-Linkup-Timestamp` is more than \~5 minutes off from your current clock — protects against replay of an old captured payload. ## Rotate the secret `POST /v2/webhooks/{webhook_id}/rotate-secret` Generates a fresh secret. The previous one is invalidated immediately, so deploy the new secret to your verifier before calling this. Returns the new secret in plaintext **once**. ```json theme={null} { "success": true, "data": { "webhook_id": "6789abcdef0123456789abcd", "secret": "kF3p…", "signature_scheme": "HMAC-SHA256 over '.'; compare to X-Linkup-Signature header (format: v1=)" } } ``` ## Disable signing `DELETE /v2/webhooks/{webhook_id}/secret` Clears the secret. Subsequent POSTs go out without `X-Linkup-Signature` headers. ## Notes * Hosted-mode webhooks (SSE/polling) are not signed — they are already authenticated by your `api_key` on the stream URL. * Legacy V1 webhooks (`webhook_url` on the account doc) are not signed. V2-only feature. * `disconnection` events are signed too when signing is enabled on the webhook. * `GET /v2/webhooks` returns `signature_enabled: true|false`. The secret itself is never returned by list/get — if you lose it, rotate. # Start Monitoring Source: https://docs.linkupapi.com/api-reference/v2/webhooks/start POST /v2/webhooks/{webhook_id}/start Resume real-time monitoring for a stopped webhook Resume real-time monitoring for a webhook stopped with [`/stop`](/api-reference/v2/webhooks/stop). Not needed after [creating a webhook](/api-reference/v2/webhooks/create): monitoring starts automatically. Calling it on a webhook that is already running is harmless. > [!NOTE] > > Monitoring consumes **10 credits per day** per active account (1 credit every 144 minutes). Credit consumption begins as soon as monitoring starts. Ignore this if you're on per-seat pricing: usage is unlimited. ### Header Parameters **x-api-key** `string` *required* Your API key ### Path Parameters **webhook_id** `string` *required* The unique identifier of the webhook to start monitoring for ### Response **success** `boolean` Whether monitoring was started successfully **data** `object` **Properties** **webhook_id** `string` The webhook ID **account_id** `string` The account being monitored **monitoring** `boolean` Always `true` on success ```json Success Response theme={null} { "success": true, "data": { "webhook_id": "6789abcdef0123456789abcd", "account_id": "69c127c37cae0494dd827286", "monitoring": true }, "metadata": { "action": "start_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Error — Account Not Found theme={null} { "success": false, "error": { "code": "INVALID_ACCOUNT", "message": "Account not found" }, "metadata": { "action": "start_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Error — Monitoring Failed theme={null} { "success": false, "error": { "code": "CHANNEL_ERROR", "message": "Failed to start monitoring", "sub_code": "MONITOR_START_FAILED" }, "metadata": { "action": "start_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ### Notes * The account must be in a `connected` state for monitoring to start * If monitoring is already active for this account (via another webhook), it will not create a duplicate connection * If the account's token expires during monitoring, you will receive a disconnection event on your webhook URL * You need at least **1 credit** available to start monitoring # Stop Monitoring Source: https://docs.linkupapi.com/api-reference/v2/webhooks/stop POST /v2/webhooks/{webhook_id}/stop Stop real-time monitoring for a webhook Stop real-time monitoring for a webhook's associated account. No more events will be sent to the webhook URL. ### Header Parameters **x-api-key** `string` *required* Your API key ### Path Parameters **webhook_id** `string` *required* The unique identifier of the webhook to stop monitoring for ### Response **success** `boolean` Whether monitoring was stopped successfully **data** `object` **Properties** **webhook_id** `string` The webhook ID **account_id** `string` The account that was being monitored **monitoring** `boolean` Always `false` on success ```json Success Response theme={null} { "success": true, "data": { "webhook_id": "6789abcdef0123456789abcd", "account_id": "69c127c37cae0494dd827286", "monitoring": false }, "metadata": { "action": "stop_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Error — Webhook Not Found theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Webhook not found" }, "metadata": { "action": "stop_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ### Notes * Credit consumption stops when monitoring is stopped * You can restart monitoring at any time by calling `/v2/webhooks/{webhook_id}/start` * The webhook configuration is preserved — only monitoring is stopped # Update Webhook Source: https://docs.linkupapi.com/api-reference/v2/webhooks/update PUT /v2/webhooks/{webhook_id} Update a webhook configuration Update the URL, events, or active status of an existing webhook. ### Header Parameters **x-api-key** `string` *required* Your API key ### Path Parameters **webhook_id** `string` *required* The unique identifier of the webhook to update ### Body Parameters **url** `string` New webhook URL. Must be a publicly accessible HTTPS endpoint. **events** `array` New list of event types to listen for (e.g. `["message_received", "accepted_invitation"]`). Opt-in types (`message_read`, `message_delivered`, `message_failed`) are only delivered when named here, never through `all` — see [Event Types](/api-reference/v2/webhooks/introduction#event-types). **message_type** `string` New direction filter for message events: `inbound`, `outbound` or `all`. See [Create a webhook](/api-reference/v2/webhooks/create). **retry** `boolean` Custom mode only. Turn automatic retries of failed POSTs on (`true`, default) or off (`false`). See [Delivery & retries](/api-reference/v2/webhooks/introduction#delivery-retries-custom-mode). **is_active** `boolean` Set to `false` to pause the webhook without deleting it. ### Response **success** `boolean` Whether the update was successful **data** `object` **Properties** **webhook_id** `string` The updated webhook ID **updated** `boolean` Always `true` on success ```json Success Response theme={null} { "success": true, "data": { "webhook_id": "6789abcdef0123456789abcd", "updated": true }, "metadata": { "action": "update_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ```json Error — Webhook Not Found theme={null} { "success": false, "error": { "code": "INVALID_PARAMS", "message": "Webhook not found" }, "metadata": { "action": "update_webhook", "credits_consumed": 0, "timestamp": "2025-01-15T10:30:00.000000" } } ``` ### Notes * Only the fields you include in the request body will be updated * Setting `is_active` to `false` does **not** stop monitoring — use `POST /v2/webhooks/{webhook_id}/stop` for that # Build a LinkedIn Campaign Source: https://docs.linkupapi.com/tutorials/linkedin-campaign How to create automated LinkedIn outreach campaigns using the LinkupAPI This tutorial walks you through building a complete LinkedIn outreach campaign — from connecting an account to tracking replies. Whether you're building an AI agent, a SaaS product, or an internal tool, this flow is the foundation of any LinkedIn automation. > [!TIP] > > We provide **Claude Code skills** in the [webapp](https://app.linkupapi.com/agent-skills) to help you integrate the LinkupAPI into your SaaS or solution. Install a skill and let Claude Code guide you through the implementation directly from your terminal. ## Campaign Flow Overview Here's the full lifecycle of an automated LinkedIn campaign: **1. Connect Account** Authenticate a LinkedIn account via the Login endpoint. **2. Setup Webhooks** Configure `accepted_invitation` and `message_received` events to receive real-time notifications. **3. Search Leads** Find your target audience using profile search. **4. Send Invitations** Send personalized connection requests with proper pacing. **5. Detect Accepted Invitations** Your webhook receives an `accepted_invitation` event when someone accepts. **6. Send Message** Message the new connection after a natural delay. **7. Track Replies** Your webhook receives a `message_received` event when they respond. **8. Follow-Up Sequence** Automatically follow up if no reply after a few days.