Post Threads

Endpoints:

GET /posts/{post_id}/thread

Scope: none

Retrieve posts within a thread. Threads are separated by what root post all posts below it have replied to.

URL Parameters

Name Description
post_id ID of the post to retrieve the thread for
Example
curl "https://api.pnut.io/v0/posts/18/thread" \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    -H "X-Pretty-Json: 1"

Returns a list of posts from the thread.

{
    "meta": {
        "more": false,
        "max_id": "0",
        "min_id": "0",
        "code": 200
    },
    "data": [
        {"...Post Object..."}
    ]
}