ApiLinkedin messaging
Check Email Support
Check if a LinkedIn profile supports free email messaging (open profile)
POST
/linkedin/messaging/check-email-supportCheck Email Support
Check if a LinkedIn profile supports free email messaging (open profile). Useful for determining if InMail is required.
Authentication requiredLinkedIn Messaging
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/messaging/check-email-support' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"profileId": "john-doe-123"}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID (uses default if not provided) |
profileId | string | Yes* | Target profile's LinkedIn public ID (required if profileUrn not provided) |
profileUrn | string | Yes* | Target profile's LinkedIn URN (required if profileId not provided) |
* Either profileId or profileUrn must be provided.
Example
{
"profileId": "john-doe-123"
}Responses
| Status | Description |
|---|---|
| 200 | Successful response |
200 Example
{
"success": true,
"accountId": "acc_123456789",
"profileId": "john-doe-123",
"profileUrn": "urn:li:fsd_profile:ACoAAA...",
"supportsFreeEmail": true,
"message": "Profile supports free email messaging (open profile)"
}Usage Notes
- Open Profiles: Some LinkedIn users enable "Open Profile" which allows anyone to message them for free
- InMail Requirement: If
supportsFreeEmailis false, you'll need InMail credits or a connection to message - Sales Navigator: This is useful for determining outreach strategy before sending messages
