Social API reference

Social API · Connections

post/v1/communities/{community_id}/connections/{dst_actor_id}/{src_actor_id}/acceptAuth

Accept `src_actor_id`'s connection request as `dst_actor_id`: approves the follow request AND creates the reverse follow edge, so both directions exist afterwards. Convergent on retry — if the request was already consumed by a partially-completed accept (src already follows dst) the reverse edge is still ensured.

Path parameters

community_id*string · uuid

Id of the community.

dst_actor_id*string · uuid

Id of the dst actor.

src_actor_id*string · uuid

Id of the src actor.

Response · 201 Connected — both follow edges exist.

status*object

'pending' — a connection request now awaits the destination's accept. 'connected' — both follow edges exist.

created*boolean

False when the call was an idempotent replay.

Example

Request

POST https://social.productcraft.co/v1/communities/{community_id}/connections/{dst_actor_id}/{src_actor_id}/accept
Authorization: Bearer YOUR_TOKEN

Response

{
  "status": {},
  "created": false
}