Connect a identity to a platform like LinkedIn by authenticating them with cookies or credentials.
curl --request POST \
--url https://api.edges.run/v1/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"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
auth_data: {cookies: {li_at: 'example_li_at_token', li_a: 'example_li_a_token'}},
account_name: 'Example Account 1'
})
};
fetch('https://api.edges.run/v1/identities/{identity_uid}/integrations/{integration}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.edges.run/v1/identities/{identity_uid}/integrations/{integration}"
payload = {
"auth_data": { "cookies": {
"li_at": "example_li_at_token",
"li_a": "example_li_a_token"
} },
"account_name": "Example Account 1"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"setup_source": "API",
"auth_method": "BASIC",
"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"
},
"status": "VALID",
"last_synced_at": "2026-05-19T13:25:28.417259"
}LinkedIn Integration
Connect a LinkedIn Account
Connect a LinkedIn account to an identity using cookies, a username and password, or a token.
POST
/
identities
/
{identity_uid}
/
integrations
/
{integration}
Connect a identity to a platform like LinkedIn by authenticating them with cookies or credentials.
curl --request POST \
--url https://api.edges.run/v1/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"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
auth_data: {cookies: {li_at: 'example_li_at_token', li_a: 'example_li_a_token'}},
account_name: 'Example Account 1'
})
};
fetch('https://api.edges.run/v1/identities/{identity_uid}/integrations/{integration}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.edges.run/v1/identities/{identity_uid}/integrations/{integration}"
payload = {
"auth_data": { "cookies": {
"li_at": "example_li_at_token",
"li_a": "example_li_a_token"
} },
"account_name": "Example Account 1"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"setup_source": "API",
"auth_method": "BASIC",
"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"
},
"status": "VALID",
"last_synced_at": "2026-05-19T13:25:28.417259"
}{integration} is linkedin on every endpoint documented here. The path is generic; LinkedIn is the integration Edges exposes.Before connecting an Integration, you must first Create an
Identity to associate the integration with.
The response’s object with meta fields is also returned on your integration webhook present on your developpers settings
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
API key required for authentication. Add your API key in the X-API-Key header.
Body
application/json
Response
Successfully created a new account.
Available options:
VALID, INVALID, PENDING, LIMIT_REACHED Available options:
MANUAL, EXTENSION, SHARED, API Available options:
BASIC, OAUTH, COOKIES, APIKEY Show child attributes
Show child attributes
Show child attributes
Show child attributes

