REST API

Replies and insights

Read the thread under a post, answer it, hide what you do not want, and read the numbers.

Replies live under a publish, not under a workspace. Every call here takes the publish id you got from POST /v1/posts.

GET/v1/posts/{id}/replies

The reply thread under a published post.

POST/v1/posts/{id}/replies

Reply to the post, or to a reply under it.

NameTypeDescription
contentRequiredstringReply text.
replyTostringA reply id from the thread. Omit to answer the post itself.

Nested replies

Leave replyTo out and you answer the post. Pass a reply id and you answer that reply, one level deeper. There is no separate endpoint for it. The same call does both.

# answer the post
curl -X POST https://api.uplika.com/v1/posts/post_01H.../replies \
  -H "authorization: Bearer $UPLIKA_KEY" \
  -H "content-type: application/json" \
  -d '{"content":"Thanks for reading"}'

# answer a reply β€” one level deeper
curl -X POST https://api.uplika.com/v1/posts/post_01H.../replies \
  -H "authorization: Bearer $UPLIKA_KEY" \
  -H "content-type: application/json" \
  -d '{"content":"Good question","replyTo":"17901234567890123"}'

POST/v1/replies/{replyId}/hide

Hide a reply on the channel, or show it again.

NameTypeDescription
postIdRequiredstringThe publish the reply sits under.
hidebooleantrue hides it, false shows it again. Default true.

GET/v1/posts/{id}/insights

Views, likes, replies, reposts, quotes and shares.

{
  "views": 1240,
  "likes": 38,
  "replies": 6,
  "reposts": 2,
  "quotes": 1,
  "shares": null
}

Common questions

How do I reply to my own post?

Call reply with the publish id and leave replyTo out. That answers the post itself, which is how a thread starts.

How do I nest a reply under another reply?

Pass the reply's id as replyTo on the same call. There is no separate endpoint; one call does both depths.

Which numbers can I read?

Views, likes, replies, reposts, quotes and shares. Some come back null while the platform is still counting, and null means unknown, not zero.