Facebook Pixel
APILinkedIn User

Get user organizations

Fetch all LinkedIn organizations (company pages) the authenticated user has admin or posting access to. Returns organization details including URN, name, logo, follower count, and visitor count. Use the organization URN for posting content as a company or commenting as a company page.

GET/organizations
Authentication requiredUser

Code Examples

curl -X GET 'https://api.connectsafely.ai/linkedin/organizations' \
-H 'Authorization: Bearer <your_api_key>'

Parameters

No parameters.

Request Body

No request body.

Responses

StatusDescription
200Organizations retrieved successfully
401Unauthorized - Invalid or missing API key
500Internal server error

200 Response Parameters

NameTypeDescription
successbooleanWhether the request was successful
accountIdstringLinkedIn account ID used for the request
organizationsarray
countnumberTotal number of organizations returned

200 Example

{
  "success": true,
  "accountId": "696ce9e780e0483585e4e553",
  "organizations": [
    {
      "entityUrn": "urn:li:fsd_company:105672170",
      "name": "ConnectSafely.AI",
      "universalName": "connectsafelyai",
      "logoUrl": "https://media.licdn.com/dms/image/v2/D560BAQExfwnRu-WH9g/company-logo_200_200/...",
      "coverImageUrl": "https://media.licdn.com/dms/image/v2/D4D3DAQEZladqoLpujg/image-scale_191_1128/...",
      "followerCount": 1823,
      "visitorsCount": 500,
      "pageType": "COMPANY",
      "isFollowing": true
    },
    {
      "entityUrn": "urn:li:fsd_company:102246628",
      "name": "DCoderAI",
      "universalName": "dcoderai",
      "logoUrl": "https://media.licdn.com/dms/image/v2/D560BAQG68RrbqHxeZA/company-logo_200_200/...",
      "coverImageUrl": "https://media.licdn.com/dms/image/v2/D563DAQGhK5ci_zeTog/image-scale_191_1128/...",
      "followerCount": 213,
      "visitorsCount": 21,
      "pageType": "COMPANY",
      "isFollowing": true
    }
  ],
  "count": 2
}

401 Response Parameters

NameTypeDescription
errorstring

401 Example

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

500 Response Parameters

NameTypeDescription
errorstring

500 Example

{
  "error": "Failed to get organizations"
}