Disconnect the sender's LinkedIn account
curl --request POST \
--url https://api.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/', 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.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account": {
"checkpoint_status": "ok",
"created_at": "2023-11-07T05:31:56Z",
"daily_limit_check_inbox": 123,
"daily_limit_check_sent_invitations": 123,
"daily_limit_connection_request": 123,
"daily_limit_follow": 123,
"daily_limit_inmail": 123,
"daily_limit_like_post": 123,
"daily_limit_profile_view": 123,
"daily_limit_read_conversation": 123,
"daily_limit_send_message": 123,
"daily_limit_withdraw": 123,
"display_name": "<string>",
"headline": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_seen_at": "2023-11-07T05:31:56Z",
"member_urn": "<string>",
"online": true,
"paused": true,
"photo_url": "<string>",
"presence": "active",
"run_mode": "manual",
"sender_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"updated_at": "2023-11-07T05:31:56Z",
"vanity_name": "<string>",
"warmup_enabled": true,
"warmup_started_at": "2023-11-07T05:31:56Z",
"weekly_connection_request_cap": 123,
"connection_token": "<string>",
"connection_token_rotated_at": "2023-11-07T05:31:56Z",
"queued_count": 0,
"sessions": [
{
"browser_label": "<string>",
"connected_at": "2023-11-07T05:31:56Z",
"extension_version": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_seen_at": "2023-11-07T05:31:56Z",
"presence": "active"
}
],
"usage": [],
"weekly_connection_requests_used": 0
},
"connected": true,
"connection_token": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}linkedin
Disconnect the sender's LinkedIn account
Signs every connected browser out and stops all work. History, settings and queued steps are kept, so reconnecting the same LinkedIn account picks up where it left off. Browsers are told over the push channel at once, and 401 on their next call regardless. The connection token is replaced.
POST
/
sender-profiles
/
{profile_id}
/
linkedin
/
disconnect
/
Disconnect the sender's LinkedIn account
curl --request POST \
--url https://api.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/', 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.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/sender-profiles/{profile_id}/linkedin/disconnect/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account": {
"checkpoint_status": "ok",
"created_at": "2023-11-07T05:31:56Z",
"daily_limit_check_inbox": 123,
"daily_limit_check_sent_invitations": 123,
"daily_limit_connection_request": 123,
"daily_limit_follow": 123,
"daily_limit_inmail": 123,
"daily_limit_like_post": 123,
"daily_limit_profile_view": 123,
"daily_limit_read_conversation": 123,
"daily_limit_send_message": 123,
"daily_limit_withdraw": 123,
"display_name": "<string>",
"headline": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_seen_at": "2023-11-07T05:31:56Z",
"member_urn": "<string>",
"online": true,
"paused": true,
"photo_url": "<string>",
"presence": "active",
"run_mode": "manual",
"sender_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"updated_at": "2023-11-07T05:31:56Z",
"vanity_name": "<string>",
"warmup_enabled": true,
"warmup_started_at": "2023-11-07T05:31:56Z",
"weekly_connection_request_cap": 123,
"connection_token": "<string>",
"connection_token_rotated_at": "2023-11-07T05:31:56Z",
"queued_count": 0,
"sessions": [
{
"browser_label": "<string>",
"connected_at": "2023-11-07T05:31:56Z",
"extension_version": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_seen_at": "2023-11-07T05:31:56Z",
"presence": "active"
}
],
"usage": [],
"weekly_connection_requests_used": 0
},
"connected": true,
"connection_token": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
APIKeyHeaderHTTPBearer
Path Parameters
Response
Successful Response
The sender's LinkedIn state, connected or not.
A wrapper rather than a 404 on purpose: "no account yet" is the normal first render of this page, not an error. The connection token is present in BOTH states — shown by default before anything is connected, and available again afterwards for a second browser.
Was this page helpful?