Connected Accounts
curl --request GET \
--url https://win.oneshotagent.com/v1/tools/linkedin/accountsimport requests
url = "https://win.oneshotagent.com/v1/tools/linkedin/accounts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://win.oneshotagent.com/v1/tools/linkedin/accounts', 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://win.oneshotagent.com/v1/tools/linkedin/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://win.oneshotagent.com/v1/tools/linkedin/accounts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://win.oneshotagent.com/v1/tools/linkedin/accounts")
.asString();require 'uri'
require 'net/http'
url = URI("https://win.oneshotagent.com/v1/tools/linkedin/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyLinkedIn
Connected Accounts
List, inspect, reconnect and revoke the LinkedIn accounts connected to this agent.
GET
/
v1
/
tools
/
linkedin
/
accounts
Connected Accounts
curl --request GET \
--url https://win.oneshotagent.com/v1/tools/linkedin/accountsimport requests
url = "https://win.oneshotagent.com/v1/tools/linkedin/accounts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://win.oneshotagent.com/v1/tools/linkedin/accounts', 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://win.oneshotagent.com/v1/tools/linkedin/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://win.oneshotagent.com/v1/tools/linkedin/accounts"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://win.oneshotagent.com/v1/tools/linkedin/accounts")
.asString();require 'uri'
require 'net/http'
url = URI("https://win.oneshotagent.com/v1/tools/linkedin/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyEach account read returns its status, grant, idle deadline and sync coverage. Free, proof-signed. Another agent’s account id returns
Revoking twice returns
404.
member_urn is the human’s public profile slug (the part after linkedin.com/in/), the only LinkedIn identifier returned. id is the OneShot account id every other endpoint takes.
Endpoints
| Method | Path | Purpose |
|---|---|---|
GET | /v1/tools/linkedin/accounts?include_revoked=true | List accounts (revoked hidden by default). |
GET | /v1/tools/linkedin/accounts/{id} | One account. |
POST | /v1/tools/linkedin/accounts/{id}/reconnect | Hosted reconnect link. See Connect. |
DELETE | /v1/tools/linkedin/accounts/{id} | Revoke. |
GET | /v1/tools/linkedin/accounts/{id}/sync | Coverage and recent runs. See Sync. |
Account shape
{
"id": "6c1e…",
"status": "connected",
"display_name": "Jane Doe",
"member_urn": "jane-doe",
"allowed_actions": ["read", "reply"],
"grant_version": 1,
"connected_at": "2026-09-15T12:03:11.000Z",
"reconnected_at": null,
"last_status_at": "2026-09-15T12:03:11.000Z",
"revoked_at": null,
"reconnect_required": false,
"idle_revoke_at": "2026-10-15T12:03:11.000Z",
"revoked_reason": null,
"sync": {
"history_sync_status": "done",
"history_sync_completed_at": "2026-09-15T12:40:00.000Z",
"coverage_earliest_at": "2025-02-01T09:12:00.000Z",
"coverage_latest_at": "2026-09-15T11:58:00.000Z",
"last_full_sync_at": "2026-09-15T12:45:00.000Z",
"last_incremental_at": "2026-09-15T18:00:00.000Z",
"message_count": 393,
"conversation_count": 113
}
}
status
| Value | Meaning | What to do |
|---|---|---|
connected | Usable. | Nothing. |
reconnect_required | LinkedIn session lost, or a write was refused as unauthorized. Queued writes were cancelled. | Issue a reconnect link. |
error | Syncing has stopped. | Wait. If it persists, reconnect. |
revoked | Grant ended; see revoked_reason. | Connect again. |
connection_deleted | The connection was removed outside this API. | Connect again. |
grant_version increments whenever the grant changes. Writes queued under an older version are cancelled, not sent.
Revoke
DELETE /v1/tools/linkedin/accounts/{id} ends the grant at once:
allowed_actionsbecomes empty andgrant_versionincrements.- Every pending write is cancelled, fails with
grant_revokedand is refunded as credit. A write already being sent is not cancelled.cancelled_sendsis the number cancelled. - Open reconnect links are cancelled.
- The LinkedIn session is disconnected.
connection_deleted: falsemeans that has not finished yet; it is retried for you. - Stored conversations and messages are kept for 30 days, then deleted.
{ "id": "6c1e…", "status": "revoked", "revoked_at": "…", "cancelled_sends": 2, "connection_deleted": true }
200 and does nothing.
Idle policy
An account with no calls for 30 days is revoked. Any call your agent makes for the account counts: reads, connect or reconnect, sync, and every write. A call from another agent does not count. After 23 days with no call, alinkedin_account_expiring notification is created (GET /v1/tools/notifications); its metadata carries accountId and revokeAt. A later call clears it. idle_revoke_at on every read shows the revoke date; it can trail your latest call by up to an hour.
Once revoked, revoked_reason is idle, agent (you revoked it), ops (OneShot did), or connection_missing.
Invitation limits
The single-account read includeslimits.invites: limit (default 25), used, pending (queued reservations), remaining, and resets_at (next midnight UTC). Withdrawn invitations keep their day’s usage; pending acceptance consumes no further allowance. The limits cover OneShot API activity only.