API Reference Card
All examples use two environment variables:
LINKEDIN_ACCESS_TOKEN and MAVERA_API_KEY. LinkedIn tokens expire — use the refresh token flow for production jobs. Never commit tokens.Prerequisites
1
LinkedIn Marketing API access
Create an app at LinkedIn Developers with the Advertising API product. Request access to
r_ads, r_ads_reporting, r_ads_leadgen_automation, and r_organization_social scopes.2
3-legged OAuth token
Complete the Authorization Code Flow to obtain an access token. Store the refresh token for automated renewal.
3
Mavera API key
Get your key from Mavera dashboard.
4
Environment variables
export LINKEDIN_ACCESS_TOKEN="AQV..." and export MAVERA_API_KEY="mvra_live_xxxxx"Jobs
Rate Limits & Production Notes
Checklist: Secure tokens in env vars or secrets manager. Implement OAuth refresh token rotation — access tokens expire after 60 days. Include
LinkedIn-Version header on every call. Monitor Mavera credits at Dashboard. Cache LinkedIn data locally for daily jobs.