POST
/
identities
/
{identity_uid}
/
integrations
/
{integration}
curl --request POST \
  --url https://api.captaindata.com/v4/identities/{identity_uid}/integrations/{integration} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "auth_data": {
    "cookies": {
      "li_at": "example_li_at_token",
      "li_a": "example_li_a_token"
    }
  },
  "account_name": "Example Account 1"
}'
{
"auth_type": "COOKIES",
"setup_source": "API",
"is_shared": false,
"name": "John Doe's Example Integration Account",
"uid": "123e4567-e89b-12d3-a456-426614174000",
"integration_permalink": "example-integration",
"created_at": "2023-10-01T12:00:00Z",
"level": "Classic",
"identity_uid": "5678e456-e89b-12d3-a456-426614174001",
"meta": {
"key": "value"
}
}

Connect an identity to an integration. An identity can only be connected to one integration per platform (one LinkedIn account for example). The data of an existing integration will be updated each time you call this endpoint if it has been connected before.

Before connecting an Integration, you must first Create an Identity to associate the integration with.

If you’re looking to connect natively to LinkedIn using email and password, check out this specific endpoint: Connect a LinkedIn Account (Username/Password)

Authorizations

X-API-Key
string
header
required

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

Path Parameters

identity_uid
string
required
integration
string
required

Body

application/json

Response

200
application/json

Successfully created a new account.

The response is of type object.

POST
/
identities
/
{identity_uid}
/
integrations
/
{integration}
curl --request POST \
  --url https://api.captaindata.com/v4/identities/{identity_uid}/integrations/{integration} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "auth_data": {
    "cookies": {
      "li_at": "example_li_at_token",
      "li_a": "example_li_a_token"
    }
  },
  "account_name": "Example Account 1"
}'
{
"auth_type": "COOKIES",
"setup_source": "API",
"is_shared": false,
"name": "John Doe's Example Integration Account",
"uid": "123e4567-e89b-12d3-a456-426614174000",
"integration_permalink": "example-integration",
"created_at": "2023-10-01T12:00:00Z",
"level": "Classic",
"identity_uid": "5678e456-e89b-12d3-a456-426614174001",
"meta": {
"key": "value"
}
}

Connect an identity to an integration. An identity can only be connected to one integration per platform (one LinkedIn account for example). The data of an existing integration will be updated each time you call this endpoint if it has been connected before.

Before connecting an Integration, you must first Create an Identity to associate the integration with.

If you’re looking to connect natively to LinkedIn using email and password, check out this specific endpoint: Connect a LinkedIn Account (Username/Password)

Authorizations

X-API-Key
string
header
required

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

Path Parameters

identity_uid
string
required
integration
string
required

Body

application/json

Response

200
application/json

Successfully created a new account.

The response is of type object.