Facebook Pixel
APILinkedIn Messaging

Check if profile supports email messaging

Check whether a LinkedIn profile has email messaging enabled (open profile). Some LinkedIn members allow direct email contact through their profile. Use this to verify before attempting email outreach.

POST/messaging/check-email-support
Authentication requiredMessaging

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 '{"accountId":"acc_12345","profileId":"john-doe-123"}'

Check whether a LinkedIn profile has email messaging enabled (open profile). Some LinkedIn members allow direct email contact through their profile. Use this to verify before attempting email outreach.

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
profileIdstringConditionalLinkedIn profile vanity URL slug (e.g., "john-doe-123"). Prefer profileUrn when available. Either profileId or profileUrn must be provided.
profileUrnstringConditionalLinkedIn profile URN (e.g., "urn:li:fsd_profile:ACoAAFpqSoMB8vTqRbg4mN..."). Preferred over profileId. Either profileUrn or profileId must be provided.

Example

{
  "profileUrn": "urn:li:fsd_profile:ACoAAFpqSoMB8vTqRbg4mN_wbabO8w0gjgFu-6o"
}

Responses

StatusDescription
200Email support status retrieved successfully
400Bad request - Must provide profileId or profileUrn
401Unauthorized - Invalid or missing API key
500Server error

200 Response Parameters

NameTypeDescription
successboolean
accountIdstring
profileIdstring
profileUrnstring
supportsFreeEmailboolean
messagestring

200 Example

{
  "success": true,
  "accountId": "696ce9e780e0483585e4e553",
  "profileId": null,
  "profileUrn": "urn:li:fsd_profile:ACoAAFpqSoMB8vTqRbg4mN_wbabO8w0gjgFu-6o",
  "supportsFreeEmail": true,
  "message": "Profile supports free email messaging (open profile)"
}

400 Response Parameters

NameTypeDescription
successboolean
errorobject

400 Example

{
  "success": false,
  "error": "Either profileId or profileUrn is required"
}

401 Example

{
  "error": "Unauthorized - Invalid credentials"
}

500 Example

{
  "error": "Failed to get LinkedIn authentication credentials",
  "success": false
}