Skip to main content
GET
Connected Accounts
Each account read returns its status, grant, idle deadline and sync coverage. Free, proof-signed. Another agent’s account id 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

Account shape

status

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_actions becomes empty and grant_version increments.
  • Every pending write is cancelled, fails with grant_revoked and is refunded as credit. A write already being sent is not cancelled. cancelled_sends is the number cancelled.
  • Open reconnect links are cancelled.
  • The LinkedIn session is disconnected. connection_deleted: false means that has not finished yet; it is retried for you.
  • Stored conversations and messages are kept for 30 days, then deleted.
Revoking twice returns 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, a linkedin_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 includes limits.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.