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"
}
'
{
"auth_type": "COOKIES",
"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"
}