Send a TikTok direct message
Input
text requiredMessage text. Sent as one message, exactly as given.
username requiredHandle of the person to message, with or without a leading @.
Output
sent requiredTrue when this run delivered the message.
text requiredusername requiredHandle the message was addressed to, as the thread header reports it.
already_sent requiredTrue when the newest message in the thread was already this exact text from your account, so nothing was sent again.
verified_in_thread requiredTrue when the message was still in the thread after a fresh page load, which is the only evidence TikTok really accepted it. A message that does not survive was refused, and that is reported as an error rather than as a send.
userId optionalnickname optionalaccount_used optionalHandle the message was sent from, read from the signed-in session rather than assumed.
conversationId optionalThread the message went to; pass it to the get-conversation script to read the thread.
new_conversation optionalTrue when no conversation with that account existed and one was started.
