Skip to main content

Get a list of LinkedIn accounts

Retrieve a list of the connected LinkedIn accounts, providing details about each account's status, user information, and subscription level.

Request

Endpoint

GET https://api.woodpecker.co/rest/v2/linkedin_accounts

Headers

x-api-key: {YOUR_API_KEY}

For details on how to authenticate your requests, please see the authentication guide.

Parameters

ParameterRequiredDescription
statusNoFilter accounts by their session_status. Available statuses (case-sensitive): CONNECTED, DISCONNECTED, REQUIRES_CHECKPOINT

Request sample

Some sample request

curl --request GET \
--url "https://api.woodpecker.co/rest/v2/linkedin_accounts" \
--header "x-api-key: {YOUR_API_KEY}"

Response

Response examples

Successful response. The below example showcases 2 different LinkedIn accounts. If you don't have any accounts connected, or they don't match the requested filters, linkedin_accounts will be an empty array.

{
"linkedin_accounts": [
{
"id": 111111,
"username": "jim@dundermifflin.com",
"session_status": "CONNECTED",
"full_name": "Jim Halpert",
"linkedin_url": "https://www.linkedin.com/in/jim-halpert-123abc",
"level": "SALES_NAVIGATOR"
},
{
"id": 111112,
"username": "jimothy@dundermifflin.com",
"session_status": "DISCONNECTED",
"full_name": "Jimothy Halpert",
"linkedin_url": "https://www.linkedin.com/in/jimothy-halpert-321xyz",
"level": "CLASSIC"
}
]
}

Body schema

FieldTypeDescription
linkedin_accountsarray[object]An array of connected LinkedIn accounts
└─[].idintegerUnique identifier of a LinkedIn account in Woodpecker
└─[].usernamestringUsername used to connect the account
└─[].session_statusstringCurrent connection status of the account. Available values: CONNECTED, DISCONNECTED, REQUIRES_CHECKPOINT (connection in progress, requires user aciton)
└─[].full_namestringFull name associated with the LinkedIn account
└─[].linkedin_urlstringLinkedIn profile URL of the account
└─[].levelstringSubscription level of the account. Relates to sending limits. Available values: CLASSIC, SALES_NAVIGATOR, UNKNOWN