Authorization
To interact with our LinkedIn API, proper authorization is required in the form of headers. Every request must include two specific headers: one to authenticate the API itself, and another to authorize actions for a particular LinkedIn account.
Authorization Headers
x-api-token
:- This token verifies your access to the LinkedIn API. You’ll need this to prove you are authorized to use the API service.
account-token
:- This token is specific to a LinkedIn account. It authorizes actions like posting updates or retrieving profile information for the associated account.
Example Request
curl -X GET "https://api.linkedapi.io/v1/companies?url={companyUrl}" \
-H "x-api-token: your-api-token-here" \
-H "account-token: your-account-token-here"
Make sure to replace your-api-token-here
and your-account-token-here
with your actual tokens.