TTWrite API Documentation: create_post Endpoint

This document provides detailed information on creating posts and managing related settings in the TTWrite API.


Functionalities of the create_post Endpoint

1. How It Works

  • Media posts (images/videos): Upload media first, then publish the post.
  • GIF/Text posts: Create the post in a single step.

2. Upload Post Media

API Endpoint

  • URL: mobile_api/upload_post_media

Parameters

FieldValueRemarks
session_idAccess token IDExample: de25cc16eb00960f076...
typeMedia file type (image/video)Example: image
fileMedia file (image or video)Example: media.jpg

3. Delete Post Media

API Endpoint

  • URL: mobile_api/delete_post_media

Parameters

FieldValueRemarks
session_idAccess token IDExample: de25cc16eb00960f076...
typeMedia file type (image/video)Example: image
media_idMedia file IDExample: 12345

4. Publish Post / Reply

API Endpoint

  • URL: mobile_api/publish_post

Parameters

FieldValueRemarks
session_idAccess token IDExample: de25cc16eb00960f076...
post_textText message (Max. 600 characters)Example: Hello world!
thread_idID of the thread to reply toOptional for replies

5. Change Post Privacy

API Endpoint

  • URL: mobile_api/change_post_privacy

Parameters

FieldValueRemarks
session_idAccess token IDExample: de25cc16eb00960f076...
post_idID of the postExample: 12345
privacy_optionReply permissions optionExample: public, followers, or none