Analytics

List analytics accounts

Lists LinkedIn analytics accounts tracked in the workspace, each mapping to one LinkedIn profile. Call first to resolve accountId for every other analytics endpoint.

GET/api/public/analytics/accounts
cURLGET /api/public/analytics/accounts
curl "https://postiv.ai/api/public/analytics/accounts" \
  -H "Authorization: Bearer pk_postiv_..."
200Response
{
  "success": true,
  "accounts": [
    {
      "id": "acc1...",
      "orgId": "9e6397ad-...",
      "integrationId": 1234,
      "accountType": "personal",
      "profileType": "personal",
      "externalRef": "urn:li:person:...",
      "isActive": true,
      "name": "Jan van Musscher",
      "picture": "https://...",
      "createdAt": "...",
      "lastImport": "2026-07-19T06:00:00.000Z"
    }
  ]
}

Authorization

Requires an organization API key with the analytics:read scope, sent as Authorization: Bearer or x-api-key.

Response

Tracked accounts with last-import timestamps.

accounts[].iduuid
accounts[].orgIduuid
accounts[].integrationIdint
accounts[].accountTypestring
accounts[].profileTypestring
accounts[].externalRefstring
accounts[].isActiveboolean
accounts[].name / picturemixed
accounts[].createdAttimestamp
accounts[].lastImporttimestamp|null

Last analytics fetch time.

Good to know

  • Data is cached/imported from LinkedIn, not live: freshness is indicated by lastImport.