Block and unblock users

Manage blocked users on Linkedin.

Use Block a User or Unblock a User with the connected account ID and the target user ID.

Subscribe to blocked.new to receive block and unblock changes. Check payload.status for blocked or unblocked. See Configure a webhook.

On LinkedIn, unblocking requires the account password in specifics.linkedin.password. Blocking a member removes an existing connection and exchanged endorsements and recommendations; these are not restored on unblock. LinkedIn prevents blocking the same member again for 48 hours after unblocking.

Block and unblock a user

const { data: blocked } = await usersApi.blockUser({
  path: { user_id: "user_id", account_id: "acc_123456789" },
});

// Unblock when needed.
const { data: unblocked } = await usersApi.unblockUser({
  path: { user_id: "user_id", account_id: "acc_123456789" },
  body: { specifics: { linkedin: { password: "LINKEDIN_PASSWORD" } } },
});
blocked = users_api.block_user("user_id", "acc_123456789")

# Unblock when needed.
unblocked = users_api.unblock_user(
    "user_id", "acc_123456789", {"specifics": {"linkedin": {"password": "LINKEDIN_PASSWORD"}}}
)
curl --request POST \
  --url 'https://api.unipile.com/v2/acc_123456789/users/me/block/user_id' \
  --header 'X-API-KEY: YOUR_API_KEY'

# Unblock when needed.
curl --request POST \
  --url 'https://api.unipile.com/v2/acc_123456789/users/me/unblock/user_id' \
  --header 'X-API-KEY: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"specifics":{"linkedin":{"password":"LINKEDIN_PASSWORD"}}}'

Did this page help you?