tebarDocs
GuidePlatformsDevelopersAPI ReferenceChangelog
Feed

Get the posts a found reply answers

GET
/v1/accounts/{id}/threads/search/{postId}/thread

For a post this account found by searching in the last 24 hours (else 404): the top post of its thread first, then the post it replies to when that is another. Empty for a top-level post; a post deleted or private since is left out. Read from Threads on request, kept 5 minutes; 300 an hour per account.

Requires the read scope.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (tb_live_...) from the dashboard, or an OAuth access token.

Path Parameters

id*string
Formatuuid
postId*string

Header Parameters

Tebar-Profile?string

Limits an owner key to one profile (id or external_id). Unknown: 404 profile_not_found.

Response Body

The posts it answers.

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://api.tebar.app/v1/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/threads/search/string/thread'
Example Response
{
  "data": [
    {
      "id": "string",
      "username": "string",
      "text": "string",
      "media_type": "string",
      "media_url": "string",
      "thumbnail_url": "string",
      "permalink": "string",
      "published_at": "2019-08-24T14:15:22Z",
      "is_reply": true,
      "replied_to_id": "string",
      "root_post_id": "string"
    }
  ]
}