Skip to main content

Generate connection link

Generates a new authorization URL for an existing LinkedIn account. The user must open the link to authenticate with LinkedIn or reconnect the account.

The connection link is valid for 48 hours.

Request

Endpoint

POST https://api.woodpecker.co/rest/v2/agency/companies/{company_id}/linkedin_accounts/{account_id}/generate-connect-link

Headers

x-api-key: {YOUR_API_KEY}
Content-Type: application/json

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

Parameters

ParameterRequiredTypeDescription
company_idYesintegerPath parameter - ID of the company in which the LinkedIn account exists
account_idYesintegerPath parameter - ID of the LinkedIn account for which the new authorization link will be generated

Body

This endpoint does not require a request body.

Request samples

curl --request POST \
--url "https://api.woodpecker.co/rest/v2/agency/companies/{company_id}/linkedin_accounts/{account_id}/generate-connect-link" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Content-Type: application/json"

Response

Response examples

Connection link generated, use it to finish the authorization process. After successful authorization, the account becomes active and ready to use.

{
"account_id": 123,
"connect_account_link": "https://app.edges.run/identities/linkedin/login?token=ey6Ickv8p9.eys4JpZ3BGl0"
}

Body schema

FieldTypeDescription
account_idintegerID of the LinkedIn account
connect_account_linkstringURL to use to finish the authorization process