Skip to main content
POST
/
get-topic-with-replies
Get topic with threaded replies
curl --request POST \
  --url https://yppncslmsswqydhhgygz.supabase.co/functions/v1/get-topic-with-replies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "limit": 20,
  "offset": 0
}'
{
  "success": true,
  "topic": "<any>",
  "replies": [
    "<any>"
  ]
}

Authorizations

Authorization
string
header
required

JWT token or API key

Body

application/json
topic_id
string<uuid>
required
limit
integer
default:20
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0

Response

Successful response

success
boolean
required
replies
(any | null)[]
required
topic
any