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/accountscURLGET /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[].iduuidaccounts[].orgIduuidaccounts[].integrationIdintaccounts[].accountTypestringaccounts[].profileTypestringaccounts[].externalRefstringaccounts[].isActivebooleanaccounts[].name / picturemixedaccounts[].createdAttimestampaccounts[].lastImporttimestamp|nullLast analytics fetch time.
Good to know
- Data is cached/imported from LinkedIn, not live: freshness is indicated by lastImport.