Connection Request
curl --request POST \
--url https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"provider_id": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send"
payload = {
"account_id": "<string>",
"provider_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({account_id: '<string>', provider_id: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'account_id' => '<string>',
'provider_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"invitation_id": "<string>",
"object": "UserInvitationSent",
"usage": 123
}人脉
Connection Request
向指定成员发送 LinkedIn 建联邀请。
POST
https://api.aisa.one
/
apis
/
v1
/
unipile
/
linkedin
/
connection-requests
/
send
Connection Request
curl --request POST \
--url https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"provider_id": "<string>"
}
'import requests
url = "https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send"
payload = {
"account_id": "<string>",
"provider_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({account_id: '<string>', provider_id: '<string>'})
};
fetch('https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'account_id' => '<string>',
'provider_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"<string>\",\n \"provider_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"invitation_id": "<string>",
"object": "UserInvitationSent",
"usage": 123
}向指定成员发送 LinkedIn 建联邀请——这是触达「尚未建立连接」的人的正确端点,不受 Start Chat 对非人脉的订阅限制。邀请被接受后对方进入一度人脉列表,即可正常发起会话。收件人用 provider id(
ACoAA…)标识,可先用「用户资料」端点把 satyanadella 这类公共标识解析出来。所有参数(含 account_id)都放 JSON body。返回的 invitation_id 可用「撤回邀请」端点撤回。写操作:LinkedIn 按账号限制每天约 80–100 个邀请;连接历史较少的新账号可能被禁止发送邀请。
当前价格请查看费用说明;支持报价的接口可按实际请求获取报价。
请求规范
- 方法与路径: POST /apis/v1/unipile/linkedin/connection-requests/send
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/unipile/linkedin/connection-requests/send
{
"operationId": "post_unipile_linkedin_connection_request",
"method": "POST",
"path": "/apis/v1/unipile/linkedin/connection-requests/send",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"account_id": {
"description": "The id of the account where the user will be added.",
"type": "string"
},
"message": {
"description": "An optional message to go with the invitation (max 300 chars).",
"maxLength": 300,
"type": "string"
},
"provider_id": {
"description": "The id of the user to add. It has to be the provider’s id. LinkedIn Classic: inviting the connected account's own profile returns HTTP 422 (errors/cannot_invite_attendee). <br> `Instagram`: You can use the provider_id or the username of the user. The provider_messaging_id dont work on this route !",
"type": "string"
},
"user_email": {
"description": "The email address of the user when it's required (Linkedin specific).",
"format": "emailLike",
"type": "string"
}
},
"required": [
"provider_id",
"account_id"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
公开参考价格:每次成功请求 $0.02 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json
The id of the user to add. It has to be the provider’s id. LinkedIn Classic: inviting the connected account's own profile returns HTTP 422 (errors/cannot_invite_attendee).
Instagram: You can use the provider_id or the username of the user. The provider_messaging_id dont work on this route !