---
title: "Perform an action with a user profile"
method: POST
path: "/api/v1/linkedin/user/{user_id}"
tags: ["LinkedIn Specific"]
---

# Perform an action with a user profile

`POST /api/v1/linkedin/user/{user_id}`

Add a candidate to a Recruiter pipeline, save a Sales Navigator lead, etc.

## Path parameters

- `user_id` string, required

## Request body

- union
  - object — These options must be provided along with a user_id in query params corresponding to the AEM... ID format.
    - `account_id` string, required — A unique identifier.
    - `api` 'recruiter', required
    - `action` 'addCandidateToPipeline' | 'addApplicantToPipeline' | 'changeCandidatePipeline', required
    - `hiring_project_id` string, required
    - `stage` 'UNCONTACTED' | 'CONTACTED' | 'REPLIED' — The default value for the stage will be uncontacted.
  - object — These options must be provided along with a user_id in query params corresponding to the AEM... ID format.
    - `account_id` string, required — A unique identifier.
    - `api` 'recruiter', required
    - `action` 'rejectApplicant', required
    - `hiring_project_id` string, required
    - `reason` 'NOT_MEET_BASIC_QUALIFICATIONS' | 'NOT_IN_DESIRED_LOCATION' | 'MORE_QUALIFIED_CANDIDATES' | 'WITHDREW_APPLICATION' | 'NOT_CONSIDERED_OR_REASON_NOT_SPECIFIED', required
    - `rejection_notification` object — If the notification config is not provided, the applicant will simply not be notified that he has been rejected.
      - `send_notification_at` number — The UNIX milliseconds timestamp when the notification should be sent. Default is now.
      - `message` string, required — The text content of the notification.
  - object — These options must be provided along with a user_id in query params corresponding to the ACw... ID format.
    - `account_id` string, required — A unique identifier.
    - `api` 'sales_navigator', required
    - `action` 'saveLead', required
    - `list_id` string

## Response `200`

OK. Request succeeded.

- object
  - `object` 'LinkedinPerformActionOnUser', required
  - `success` boolean, required

## Other responses

- `401` — ## Unauthorized ### Disconnected account The account appears to be disconnected from the provider service. undefined
- `403` — ## Forbidden ### Insufficient permissions - Type: "errors/insufficient_permissions" Valid authentication but insufficient permissions to perform the request. ### Account restricted - Type: "errors/account_restricted" Access to this account has been restricted by the provider. ### Account mismatch - Type: "errors/account_mismatch" This action cannot be done with your account. ### Unknown authentication context - Type: "errors/unknown_authentication_context" An additional step seems necessary to complete login. Please connect to provider with your browser to find out more, then retry authentication. ### Session mismatch - Type: "errors/session_mismatch" Token User id does not match client session id. ### Feature not subscribed - Type: "errors/feature_not_subscribed" The requested feature has either not been subscribed or not been authenticated properly. ### Subscription required - Type: "errors/subscription_required" The action you're trying to achieve requires a subscription to provider's services. ### Resource access restricted - Type: "errors/resource_access_restricted" You don't have access to this resource. ### Action required - Type: "errors/action_required" An additional step seems necessary. Complete authentication on the provider's native application and try again.
- `404` — ## Not Found ### Resource not found. The requested resource were not found. Account not found
- `422` — ## Unprocessable Entity ### Invalid account Provided account is not designed for this feature. undefined
- `500` — ## Internal Server Error ### Unexpected error - Type: "errors/unexpected_error" Something went wrong. {{moreDetails}} ### Provider error - Type: "errors/provider_error" The provider is experiencing operational problems. Please try again later. ### Authentication intent error - Type: "errors/authentication_intent_error" The current authentication intent was killed after failure. Please start the process again from the beginning.
- `503` — ## Service Unavailable ### No client session - Type: "errors/no_client_session" No client session is currently running. ### No channel - Type: "errors/no_channel" No channel to client session. ### Handler missing - Type: "errors/no_handler" Handler missing for that request. ### Network down - Type: "errors/network_down" Network is down on server side. Please wait a moment and retry. ### Service unavailable - Type: "errors/service_unavailable" Please try again later.
- `504` — ## Gateway Timeout ### Request timed out - Type: "errors/request_timeout" Request Timeout. Please try again, and if the issue persists, contact support.

---

[API](https://skmtc.net/unipile/apis/unipile-api-reference.md) · [All operations](https://skmtc.net/unipile/apis/unipile-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unipile/unipile-api-reference/revisions/3483a34061f6/schema)
