Social API reference

Social API · Edges

post/v1/communities/{community_id}/follow-requests/{dst_actor_id}/{src_actor_id}/approveAuth

Approve a pending follow request (task 014). The destination (private) actor approves the requesting actor; a follow edge is created.

Path parameters

community_id*string

Social community UUID. Must belong to the PAK's workspace.

dst_actor_id*string

The private actor being followed (approver).

src_actor_id*string

The requesting actor.

Response · 201 Request approved; follow edge created.

edge*object
id*string · uuid

Edge UUID.

Example: "eeeeeeee-0000-0000-0000-000000000001"

community_id*string · uuid

Owning community UUID.

Example: "cccccccc-cccc-cccc-cccc-cccccccccccc"

kind*object

Edge kind. The actor-edge routes emit exactly these four; post reactions and bookmarks have their own response shapes.

Example: "follow"

src_actor_id*string · uuid

Source actor UUID.

Example: "aaaaaaaa-0000-0000-0000-000000000001"

dst_actor_id*string · uuid

Destination actor UUID (for actor edges).

Example: "aaaaaaaa-0000-0000-0000-000000000002"

dst_post_id*string · uuid

Destination post UUID (for reaction / save edges).

Example: null

payload*object

Free-form payload stored on the edge (e.g. mute reason).

Example: {}

created_at*string · date-time

ISO timestamp the edge was created.

Example: "2026-05-01T12:00:00.000Z"

created*boolean

`true` if the edge was created on this call; `false` on idempotent retry of an existing edge.

Example: true

Example

Request

POST https://social.productcraft.co/v1/communities/{community_id}/follow-requests/{dst_actor_id}/{src_actor_id}/approve
Authorization: Bearer YOUR_TOKEN

Response

{
  "edge": {
    "id": "eeeeeeee-0000-0000-0000-000000000001",
    "community_id": "cccccccc-cccc-cccc-cccc-cccccccccccc",
    "kind": "follow",
    "src_actor_id": "aaaaaaaa-0000-0000-0000-000000000001",
    "dst_actor_id": "aaaaaaaa-0000-0000-0000-000000000002",
    "dst_post_id": null,
    "payload": {},
    "created_at": "2026-05-01T12:00:00.000Z"
  },
  "created": true
}