List or fetch social posts
Reads LinkedIn or Instagram posts through a connected account. Use [].id from GET /v1/messaging/connected-accounts as connectedAccountId. Use authorIdentifier='me' for the account owner, id from POST /v1/messaging/social-profiles/search, data[].author.id from a post-list response, or author.id from a single-post response. A messaging participant can first be resolved from items[].participants[].identifier returned by POST /v1/messaging/threads/search. For the first page, omit cursor and offset. For a cursor continuation, repeat connectedAccountId, authorIdentifier and limit, copy next_cursor from the previous response into cursor, and omit offset. Stop when next_cursor is null. An offset continuation requires a positive cumulative offset. Set postId instead to data[].id from a previous post-list response to fetch that post.
Authorization
apiKeyAuth API key authentication. Create an API key in your user profile and include it in the x-api-key header.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/api/v1/messaging/social-posts/search" \ -H "Content-Type: application/json" \ -d '{ "connectedAccountId": "00000000-0000-4000-8000-000000000001", "authorIdentifier": "me", "limit": 10 }'{
"data": [
{
"object": "Post",
"id": "string",
"share_url": "string",
"created_at": "string",
"title": "string",
"text": "string",
"user_reacted": true,
"is_repost": true,
"reactions_counter": [
{
"reaction": "string",
"count": 0,
"property1": null,
"property2": null
}
],
"comments_counter": 0,
"reposts_counter": 0,
"author": {
"id": "string",
"object": "User",
"type": "individual",
"public_identifier": "string",
"display_name": "string",
"first_name": "string",
"last_name": "string",
"profile_url": "string",
"public_picture_url": "string",
"private_picture_download_url": "string",
"description": "string",
"specifics": {
"headline": "string",
"occupation": "string",
"industry": "string",
"location": "string",
"network_distance": "string",
"phone_number": "string",
"property1": null,
"property2": null
},
"property1": null,
"property2": null
},
"property1": null,
"property2": null
}
],
"total_count": 0,
"next_cursor": "string",
"property1": null,
"property2": null
}"string""string""string""string"