Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
information of a post to be created.
require text or at least 1 attachments
Custom post
- When
dataType
is set as the custom name (dot separated string format, see thedataType
field section),data
payload can be anything but it will not support normal data capability (ex.text
data will not be created) anddata
payload size will be limit to100kb
attachments
will be ignored, users need to keep them indata
field and handle the file info by themselves
Image, File, Video post
- Put
type
with file id inattachments
- Image and File data can be picked from
fileId
indata
object in child post - Video fileId for each resolution will be in
videoFileId
indata
object in child post
Live streaming post
- When put
dataType
asliveStream
andstreamId
indata
, post will be created as live streaming post attachments
will be ignored- Video streaming info will be in
videoStreamings
object in response
Poll post
- When put
dataType
aspoll
andpollId
indata
, post will be created as poll post attachments
will be ignored- Poll info will be in
polls
object in response
Clip post
- Put
type = clip
withfileId
(from POST /v4/clips) inattachments
- Optionally we can add
isMuted
on the attachment to set the clip to mute for displaying on UI. - Optionally we can add
displayMode
on the attachment to set the clip displayMode for displaying on UI. fileId
,isMuted
,displayMode
will be indata
object in child post
Must be in dot separated string format or system defined format (ex. "upstra.customtype", "com.eko.birthday", "liveStream")
Example:
"upstra.customtype"
where to create post to
Available options:
user
, community
, content
Resource public id depends on target type (ex. target type is community, target id will be community public id)
Example:
"public_user_id"
Example:
{ "anything": "you want" }
for specify public post id on post creation
Example:
"postidiwant"
Maximum length:
5
tags
Hashtags for the post.
Maximum length:
30
Example:
[
"tech_news",
"startup_life",
"product_launch",
"innovation_2025"
]
The object of the mentions type and user who get a notification from the post.
The date/time when a post is created.
Example:
"2022-07-07T04:24:20.444Z"