POST
/
v4
/
users
/
{user_uid}
/
integrations
/
linkedin
curl --request POST \
  --url https://api.captaindata.com/v4/users/{user_uid}/integrations/linkedin \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "auth_data": {
    "basic": {
      "username": "[email protected]",
      "password": "********"
    }
  }
}'
{
  "auth_type": "BASIC",
  "setup_source": "API",
  "is_shared": false,
  "name": "[email protected] LinkedIn Account",
  "uid": "123e4567-e89b-12d3-a456-426614174000",
  "integration_permalink": "linkedin",
  "created_at": "2023-10-01T12:00:00Z",
  "level": "Classic",
  "user_uid": "5678e456-e89b-12d3-a456-426614174001",
  "checkpoint": {
    "type": "PHONE_REGISTER"
  }
}

Before connecting a LinkedIn account using email and password authentication, you must first Create a User to associate the account with. Once you have created a user, you can use this endpoint to connect their LinkedIn account using their email and password credentials.

LinkedIn will most likely require you to complete a checkpoint. You can handle this using the Resolve LinkedIn Checkpoint endpoint. Please note that CAPTCHA solving may take a long time and could fail.

Authorizations

X-API-Key
string
header
required

API key required for authentication. Add your API key in the X-API-Key header.

Path Parameters

user_uid
string
required

Body

application/json
auth_data
object

Response

200
application/json
Successfully created or updated LinkedIn account.
auth_type
enum<string> | null
Available options:
BASIC,
OAUTH,
COOKIES,
APIKEY
setup_source
enum<string> | null
Available options:
MANUAL,
EXTENSION,
SHARED,
API
is_shared
boolean
default:false
name
string | null
uid
string
created_at
string
default:2025-10-01T00:00:00Z
updated_at
string | null
level
string | null
user_uid
string | null
meta
object | null
error
string | null
checkpoint
object | null