Accounts

Manage your connected LinkedIn accounts programmatically. For general Admin API information, see the Admin overview.

accounts.getAll

Get all connected LinkedIn accounts and pending connection sessions.

bash
curl -X POST https://api.linkedapi.io/admin/accounts.getAll \
  -H "Content-Type: application/json" \
  -H "linked-api-token: linked_your_token_here"

Response:

json
{
  "success": true,
  "result": {
    "accounts": [
      {
        "id": "f9b4346a-...",
        "name": "John Doe",
        "countryCode": "US",
        "identificationToken": "id_...",
        "status": "active",
        "connectedAt": "2026-02-20T11:11:51.732Z"
      }
    ],
    "pendingConnectionSessions": [
      {
        "sessionId": "990eef7a-...",
        "status": "pending"
      }
    ]
  }
}

Account fields:

FieldTypeDescription
idstringAccount UUID
namestringLinkedIn account name
countryCodestringCountry code selected during connection
identificationTokenstringToken used in the identification-token header for Account API calls
statusstringactive, frozen, or reconnection_required
connectedAtstringISO 8601 timestamp

Account statuses:

StatusDescription
activeAccount is connected and operational
frozenAccount is frozen (subscription downgraded or expired)
reconnection_requiredLinkedIn session expired, account needs to be reconnected

accounts.disconnect

Disconnect a LinkedIn account. This permanently removes the account, its browser profile, and proxy.

bash
curl -X POST https://api.linkedapi.io/admin/accounts.disconnect \
  -H "Content-Type: application/json" \
  -H "linked-api-token: linked_your_token_here" \
  -d '{"accountId": "f9b4346a-..."}'

Body:

FieldTypeRequiredDescription
accountIdstringYesUUID of the account to disconnect

Response:

json
{
  "success": true,
  "result": {}
}

Warning: This action is irreversible. The account must be reconnected from scratch.

accounts.regenerateIdentificationToken

Generate a new identification-token for an account. The old token becomes invalid immediately.

bash
curl -X POST https://api.linkedapi.io/admin/accounts.regenerateIdentificationToken \
  -H "Content-Type: application/json" \
  -H "linked-api-token: linked_your_token_here" \
  -d '{"accountId": "f9b4346a-..."}'

Body:

FieldTypeRequiredDescription
accountIdstringYesUUID of the account

Response:

json
{
  "success": true,
  "result": {
    "token": "id_new_token_here"
  }
}

Important: Update the identification-token header in all your Account API integrations immediately after regeneration.

accounts.createConnectionSession

Create a new connection session to connect a LinkedIn account. Returns a link that opens the connection page where the user logs into LinkedIn.

bash
curl -X POST https://api.linkedapi.io/admin/accounts.createConnectionSession \
  -H "Content-Type: application/json" \
  -H "linked-api-token: linked_your_token_here"

Response:

json
{
  "success": true,
  "result": {
    "sessionId": "990eef7a-...",
    "connectionLink": "https://app.linkedapi.io/connection/990eef7a-..."
  }
}
FieldTypeDescription
sessionIdstringSession UUID for tracking
connectionLinkstringURL to open in a browser to complete the LinkedIn login

Errors:

TypeDescription
noAvailableSeatsNo available seats – all seats are occupied by active accounts or pending connection sessions
dailyConnectionAttemptsExceededToo many connection attempts in the last 24 hours

Flow: Create session → open connectionLink → user logs into LinkedIn → poll accounts.getConnectionSession until status is success → account appears in accounts.getAll.

accounts.getConnectionSession

Check the status of a connection session.

bash
curl -X POST https://api.linkedapi.io/admin/accounts.getConnectionSession \
  -H "Content-Type: application/json" \
  -H "linked-api-token: linked_your_token_here" \
  -d '{"sessionId": "990eef7a-..."}'

Body:

FieldTypeRequiredDescription
sessionIdstringYesSession UUID

Response:

json
{
  "success": true,
  "result": {
    "session": {
      "sessionId": "990eef7a-...",
      "status": "pending",
      "type": "initial"
    }
  }
}

Session statuses:

StatusDescription
pendingSession created, waiting for user to open the link
preparingBrowser is being provisioned
servingBrowser is ready, waiting for user to connect
streamingUser is connected and logging in
successLogin completed, account is being created
expiredSession timed out
errorAn error occurred
cancelledSession was cancelled

accounts.cancelConnectionSession

Cancel an active connection session.

bash
curl -X POST https://api.linkedapi.io/admin/accounts.cancelConnectionSession \
  -H "Content-Type: application/json" \
  -H "linked-api-token: linked_your_token_here" \
  -d '{"sessionId": "990eef7a-..."}'

Body:

FieldTypeRequiredDescription
sessionIdstringYesSession UUID

Response:

json
{
  "success": true,
  "result": {}
}