Skip to main content
POST
/
get-posts
Get posts list
curl --request POST \
  --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/get-posts \
  --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
  }
}

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
limit
integer
default:10
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0
token_id
string<uuid>

Filter posts by token ID

Response

Successful response

success
boolean
required
posts
(any | null)[]
required
pagination
object
required