tebarDocs
GuidePlatformsDevelopersAPI ReferenceChangelog
Comments

Get a queued reply

GET
/v1/replies/{id}

A reply with photos or videos (to a comment, or to a post found in the Feed), as the worker sends it: pending, sending, sent (platform_reply_id) or failed (error_code, error_message: nothing was posted, and a Feed post may be replied to again). A video can take a few minutes. Replies still not out after 24 hours fail with reply_timeout. A sent or failed reply is kept 90 days, then 404 (the reply itself stays on the platform and in the comments).

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

Header Parameters

Tebar-Profile?string

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

Response Body

The reply.

application/json
  1. response
id*string
Formatuuid
kind*string

comment: a reply to a comment; feed: to a post found in the Threads Feed.

Value in"comment""feed"
profile_id*string
Formatuuid
account_id*string
Formatuuid
comment_id*|

kind comment: the comment replied to (null once it is gone from Tebar).

reply_to_platform_id*string

What the reply answers on the platform: the comment's id, or the post's.

text*string|null
media_ids*array<>

The photos and videos, in order.

status*string

pending (queued), sending, sent, or failed (see error_code).

Value in"pending""sending""sent""failed"
platform_reply_id*|

The reply's own id on the platform, once sent.

error_code*string|null
error_message*string|null
created_at*string
Formatdate-time
sent_at*|null
Example Request
curl -X GET 'https://api.tebar.app/v1/replies/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "kind": "comment",
  "profile_id": "bfcb6779-b1f9-41fc-92d7-88f8bc1d12e8",
  "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
  "comment_id": "24dbb54d-334d-4b2a-92ae-e15845e5d822",
  "reply_to_platform_id": "string",
  "text": "string",
  "media_ids": [
    "c6e34978-c173-4e42-81ca-d112071c8c83"
  ],
  "status": "pending",
  "platform_reply_id": "string",
  "error_code": "string",
  "error_message": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "sent_at": "2019-08-24T14:15:22Z"
}