/v1/communities/{community_id}/actors/{src_actor_id}/relationshipsAuthBatched pairwise relationship lookup: does this actor follow / mute / block / restrict each of up to 100 others (and is it followed / blocked back)?
One query resolves the seven pairwise flags for a whole profile header or member list — no paging of full edge lists, and `blocked_by` is visible without attempting a write and handling the 409. Unknown or cross-community ids resolve to all-false flags; the id list is de-duplicated preserving request order. Bounded input (max 100 ids), so the response has no pagination envelope.
Path parameters
community_id*stringSocial community UUID. Must belong to the PAK's workspace.
src_actor_id*stringSource actor UUID — the perspective all flags are computed from.
Query parameters
with*stringComma-separated destination actor UUIDs (1-100).
Response · 200 One relationship entry per requested id.
data*arrayOne entry per requested id (de-duplicated, request order). Unknown ids resolve to all-false flags.
Example
Request
GET https://social.productcraft.co/v1/communities/{community_id}/actors/{src_actor_id}/relationships
Authorization: Bearer YOUR_TOKENimport { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
const relationshipList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").actors.relationships.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { with: "0b1c2d3e-4f50-4a6b-8c7d-8e9f0a1b2c3d" });social.community(…).actors.relationships.list(srcActorId, params, options?): Social.RelationshipList
Response
{
"data": [
{
"dst_actor_id": "aaaaaaaa-0000-0000-0000-000000000002",
"following": true,
"followed_by": false,
"muting": false,
"blocking": false,
"blocked_by": false,
"restricting": false,
"close_friend": false,
"follow_pending": false
}
]
}