LeadShark API
ProProgrammatic access to LinkedIn enrichment, automations, and more.
Last updated: Feb 1, 2026
Overview
The LeadShark API provides programmatic access to LinkedIn enrichment, automation management, bookmarking, and scheduled posting. Available on all paid plans (Pro, Pro+, Apex).
https://apex.leadshark.ioAuthentication
Include your API key in the request header.
x-api-key— Your API keyGetting Your API Key
- Log in to your LeadShark account (any paid plan)
- Go to Settings → API Access
- Generate your API key
Rate Limits
250
req/hr
Hourly
1,000
req/day
Daily
100
req/min
Burst
Exceeding limits returns 429 Too Many Requests. Use exponential backoff.
Enrichment API
Enrich LinkedIn profiles and companies with detailed data.
Automations API
Create and manage LinkedIn post engagement automations.
Template Variables
{{firstName}}John{{fullName}}John Doe{{linkedinUsername}}john-doe{{firstNameMention}}@JohnBookmarks API
Save and organize LinkedIn profiles with tags and notes.
Scheduled Posts API
Schedule LinkedIn posts with optional pre-configured automations that activate when the post goes live.
Scheduling Constraints
Pre-Automation Object
When the scheduled post publishes, an automation is automatically created with these settings:
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required* | Automation name |
dm_template | string | required* | Primary DM template (max 2000 chars) |
keywords | string[] | optional | Trigger keywords (max 20) |
dm_templates | string[] | optional | Multiple DM templates (rotated) |
comment_reply_template | string[] | optional | Reply templates for comments |
non_first_degree_reply_template | string[] | optional | Reply for non-connections |
auto_connect | boolean | optional | Send connection requests (default: false) |
enable_follow_up | boolean | optional | Enable follow-up DMs (default: false) |
follow_up_delay_minutes | number | optional | Delay before follow-up (default: 60) |
follow_up_only_if_no_response | boolean | optional | Only follow up if no reply (default: true) |
follow_up_template | string | optional | Follow-up message template |
template_id | string | optional | Use existing template (makes name/dm_template optional) |
* Required unless template_id is provided
File Attachments
Use multipart/form-data to upload files with your post:
Note: PDF and video cannot be combined with other files. Only one PDF or video per post.
Error Codes
VALIDATION_ERROR — Invalid content, time, or automation configTIME_CONFLICT — Another post scheduled at this time (15-min window)SCHEDULING_TOO_SOON — Cannot edit post within 15 minutes of publish timePOST_ALREADY_PUBLISHED — Cannot modify published or failed postsPost Stats API
Retrieve analytics for your LinkedIn posts.
Error Codes
400Bad RequestInvalid parameters or malformed body401UnauthorizedMissing or invalid API key404Not FoundResource does not exist429Too Many RequestsRate limit exceeded500Server ErrorUnexpected error, try againNeed Help?
Contact our team for API support.
