APILinkedIn InMail
Get InMail credits
Get the InMail credits balance for a LinkedIn account. Automatically detects account type (Sales Navigator, Business Premium, Recruiter) and uses the appropriate API.
GET
/inmail/creditsAuthentication requiredInMail
Code Examples
curl -X GET 'https://api.connectsafely.ai/linkedin/inmail/credits?accountId=YOUR_ACCOUNT_ID' \ -H 'Authorization: Bearer <your_api_key>'Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
accountId | query | No | string | LinkedIn account ID. If omitted, uses the default account. |
debug | query | No | string | Set to "true" to include raw API response. |
Response
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the request succeeded |
inMailCredits | number | Available InMail credits |
totalCredits | number | Total credits (Sales Navigator only) |
usedCredits | number | Used credits (Sales Navigator only) |
entityUrn | string | Entity URN for the credits |
accountId | string | LinkedIn account ID used |
premiumType | string | Account type: SALES_NAVIGATOR, BUSINESS_PREMIUM, RECRUITER, FREE, or UNKNOWN |
message | string | Additional info (e.g. for non-premium accounts) |
LinkedIn InMail API
Check InMail credits balance for LinkedIn accounts. Supports Sales Navigator, Business Premium, and Recruiter account types.
LinkedIn Events API
Fetch attendees from LinkedIn events via API. Extract attendee profiles for lead generation, event follow-up, and targeted outreach campaigns.
