Skip to main content

Get a list of LinkedIn accounts

Retrieve a list of LinkedIn accounts associated with your Woodpecker account, including 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, WAITING_FOR_CONNECTION

Request samples

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

Request processed successfully. 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": null,
"session_status": "CONNECTED",
"full_name": "Jim Halpert",
"linkedin_url": "https://www.linkedin.com/in/jim-halpert-123abc",
"level": "SALES_NAVIGATOR"
},
{
"id": 111112,
"username": null,
"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 LinkedIn accounts associated with the Woodpecker account
└─[].idintegerUnique identifier of a LinkedIn account in Woodpecker
└─[].usernamenull / stringDeprecated. Username previously used to connect the account. This field is no longer populated for new accounts, may be null, and may be removed entirely in the future
└─[].session_statusstringCurrent connection status of the account. Available values: CONNECTED, DISCONNECTED, WAITING_FOR_CONNECTION - The account has been added to Woodpecker but hasn't been successfully connected. Requires user action to complete the process
└─[].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