APILinkedIn Account
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/statusAuthentication requiredAccount
Code Examples
curl -X GET 'https://api.connectsafely.ai/linkedin/account/status' \ -H 'Authorization: Bearer <your_api_key>'Parameters
No parameters.
Request Body
No request body.
Responses
| Status | Description |
|---|---|
| 200 | Account status retrieved successfully |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | No LinkedIn account found for this user |
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
}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": "example_value"
}LinkedIn Account API
Manage LinkedIn account status via API. Monitor account health and track activity history for safe automation.
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.
