CharacterAI
  • 👋Welcome
  • 🧑‍💻Quick Start
  • 🛠️API
    • 🔑 Values
    • ⚠️ Errors
    • connect
    • ping
    • user
      • info
      • get_profile
      • followers
      • following
      • recent
      • update
    • post
      • get_post
      • my_posts
      • get_posts
      • upvote
      • undo_upvote
      • send_comment
      • delete_comment
      • create
      • delete
      • get_topics
      • feed
    • character
      • create
      • update
      • trending
      • recommended
      • categories
      • info
      • search
      • voices
    • chat
      • create_room
      • rate
      • next_message
      • get_histories
      • get_history
      • get_chat
      • send_message
      • delete_message
      • new_chat
    • chat2
      • next_message
      • send_message
      • get_histories
      • new_chat
      • get_chat
      • get_history
      • rate
      • delete_message
  • 📚Examples
    • Chatting
    • Parse Chat
  • ⚠️Issues
Powered by GitBook
On this page
  • post_type [str]
  • external_id [str]
  • title [str]
  • text [str] (optional)
  • post_visibility [str] (optional)
  • post_num_messages_loaded [int] (optional)
  • image_rel_path [str] (optional)
  • token [str] (optional)
  1. API
  2. post

create

Create a post

client.post.create('POST_TYPE', 'EXTERNAL_ID', 'TITLE')

post_type [str]

Can be POST (with description and image) or CHAT (chat with character)

external_id [str]

topic_id when POST, char when CHAT

title [str]

Post title

text [str] (optional)

Post text

post_visibility [str] (optional)

Who can view your post, can be PUBLIC or UNLISTED

post_num_messages_loaded [int] (optional)

The number of messages that will be in the post

image_rel_path [str] (optional)

PATH to image in CAI servers

token [str] (optional)

You can set a specific token for the function, it will be executed from the specified token

Previousdelete_commentNextdelete

Last updated 1 year ago

🛠️