Get specific account status
Retrieve the current status of a specific LinkedIn account by ID. Returns account details including name, public ID, subscription status, and session validity. Useful for multi-account setups to check individual account status.
/account/{accountId}/statusCode Examples
curl -X GET 'https://api.connectsafely.ai/linkedin/account/<accountId>/status' \ -H 'Authorization: Bearer <your_api_key>'Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
accountId | path | Yes | string | Unique identifier for the LinkedIn account (24-character hex string) |
Request Body
No request body.
Responses
| Status | Description |
|---|---|
| 200 | Account status retrieved successfully |
| 400 | Invalid account ID format |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Account not found or not accessible |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
id | string | Unique account identifier |
firstName | string | LinkedIn user first name |
lastName | string | LinkedIn user last name |
publicId | string | LinkedIn public profile ID (e.g., "john-doe-123") |
platform | string | Platform name (e.g., "ConnectSafely") |
status | string | Account subscription status (e.g., "FREE", "PREMIUM") |
enabled | boolean | Whether the account is enabled for automation |
lastUsed | string (date-time) | Last activity timestamp |
hasTokens | boolean | Whether valid LinkedIn session tokens exist |
200 Example
{
"id": "696ce9e780e0483585e4e553",
"firstName": "John",
"lastName": "Doe",
"publicId": "john-doe-123",
"platform": "ConnectSafely",
"status": "FREE",
"enabled": true,
"lastUsed": "2026-02-24T04:53:13.750Z",
"hasTokens": true
}400 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
400 Example
{
"error": "Invalid account ID format"
}401 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
401 Example
{
"error": "Unauthorized - Invalid credentials"
}404 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
404 Example
{
"error": "LinkedIn account not found or not accessible"
}Get account status
Retrieve the current status of the default LinkedIn account for the authenticated user. Returns account details including name, public ID, subscription status, and session validity. Use this to verify account connectivity before performing actions.
Get account activity history
Retrieve activity history for the last 15 days including comments and reactions. Returns summary statistics, daily breakdown, and individual activity records. Useful for tracking account behavior, auditing actions, and monitoring engagement patterns.
