cURL
curl --request POST \ --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/get-posts-2 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "limit": 10, "offset": 0, "token_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }'
{ "success": true, "posts": [ "<any>" ], "pagination": { "limit": 123, "offset": 123, "total_returned": 123, "has_more": true } }
Get posts ranked by engagement score with pagination. Supports filtering by token and includes vote aggregates, media, polls, and parent posts for replies.
JWT token or API key
1 <= x <= 100
x >= 0
Filter posts by token ID
Successful response
Show child attributes