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.
/account/{accountId}/activityCode Examples
curl -X GET 'https://api.connectsafely.ai/linkedin/account/<accountId>/activity' \ -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 | Activity history 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 |
|---|---|---|
success | boolean | |
accountId | string | |
accountName | string | |
dateRange | object | |
summary | object | |
dailyBreakdown | array | |
comments | array | |
reactions | array |
200 Example
{
"success": true,
"accountId": "acc_12345",
"accountName": "example_value",
"dateRange": {},
"summary": {},
"dailyBreakdown": [
{
"date": "2026-02-24",
"comments": 0,
"reactions": 0,
"total": 0
}
],
"comments": [
{
"activityUrn": "urn:li:example:123456",
"date": "2024-01-15",
"isoDate": "2024-01-15",
"timestamp": 0,
"type": "default"
}
],
"reactions": [
{
"activityUrn": "urn:li:example:123456",
"date": "2024-01-15",
"isoDate": "2024-01-15",
"timestamp": 0,
"type": "default"
}
]
}400 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
400 Example
{
"error": "Invalid account ID format",
"success": false
}401 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
401 Example
{
"error": "Unauthorized"
}404 Response Parameters
| Name | Type | Description |
|---|---|---|
error | string |
404 Example
{
"error": "LinkedIn account not found or not accessible",
"success": false
}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.
Get account premium status
Retrieve the premium subscription status of a LinkedIn account. Returns information about whether the account has Sales Navigator, Recruiter, Business Premium, or no premium subscription. Also includes feature access flags for various premium capabilities.
