Social API reference

Social API · Feed

get/v1/communities/{community_id}/discover-feedAuth

Discover / explore feed (task 019). Ranked surface over every public post in the community — Instagram Explore / X "For You without follow constraint". Optional `actor_id` filters the viewer's blocks and applies a small self-boost; without one, the result is the global discovery slice.

Path parameters

community_id*string

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

Query parameters

actor_idstring · uuid

Viewer actor UUID.

limitinteger

Maximum number of items to return (1-200, default 50).

cursorstring

Opaque ranked cursor; encodes (score, id).

kindstring

Optional post-kind filter (task 023) — e.g. `image`, `link`. Restricts discovery to that kind.

Response · 200 Page of posts.

data*array

The feed's posts on this page.

pagination*object

Cursor encodes `(score, id)` for `ranked` feeds and `(created_at, id)` for `chronological` feeds. Cursors are NOT interchangeable between modes.

Example

Request

GET https://social.productcraft.co/v1/communities/{community_id}/discover-feed
Authorization: Bearer YOUR_TOKEN

Response

{
  "data": [
    {
      "id": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
      "community_id": "cccccccc-cccc-cccc-cccc-cccccccccccc",
      "actor_id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
      "kind": "text",
      "title": "Shipping Phase 8",
      "body": "Stories are live!",
      "url": "https://cdn.example.com/img.png",
      "attributes": {},
      "visibility": "public",
      "status": "published",
      "reaction_counts": {
        "like": 12,
        "fire": 3
      },
      "comment_count": 4,
      "source_post_id": null,
      "repost_count": 0,
      "quote_count": 0,
      "edited_at": null,
      "edit_count": 0,
      "view_count": 0,
      "expires_at": null,
      "pinned": false,
      "settings": {},
      "scheduled_for": null,
      "assets": [
        {
          "asset_id": "eeeeeeee-0000-0000-0000-000000000001",
          "alt_text": "A golden retriever on a beach"
        }
      ],
      "created_at": "2026-05-01T12:00:00.000Z",
      "updated_at": "2026-05-01T12:00:00.000Z"
    }
  ],
  "pagination": {}
}