Delete message
Delete a single message from your local view of a conversation.
- Runs on
- Your Account
- Runs on a connected account you own
- Plan
- Starter and up
- Upstream
/v1/message/delete
Parameters
JSON bodyconversation_idorpeer_uidA connected account, from /dash/sessions or POST /v1/account/import. Example: acc_7Hq2.
account_idEmail sign-in: verify codePOST /v1/account/login/otp/verifyaccount_idEmail registration: verify codePOST /v1/account/register/email/verifyaccount_idPhone registration: verify SMSPOST /v1/account/register/phone/verifyaccount_idList connected accountsGET /v1/account/sessionssessions[].account_idorConnected accountsThe conversation ID. Example: 0:1:6970000000000000001:107955.
items[].conversation_idInboxGET /v1/account/dm/inboxitems[].conversation_idStart conversationPOST /v1/account/dm/conversation/createconversation_idPeer numeric UID for 1:1 threads.
The server_message_id to delete. Example: 7705865000111222333.
Related workflow: Autonomous Native Protobuf Direct Messaging7 steps
Connect an account you own, keep its foreground mobile session warm, read incoming conversations, and send text, replies, images, or voice notes over TikTok’s native /im/v1/* protobuf protocol.
Bind your account via POST /v1/account/import (or /v1/account/login/otp/send + /verify) to obtain a persistent account_id pinned 1:1 to a mobile device context.
Flush foreground AppLog launch + SceneSwitchToForeground (105) before opening the inbox after idle periods.
Fetch new unread messages across threads with GET /v1/account/dm/inbox (or list threads via /v1/account/dm/conversation/list).
Load message history for conversation_id using { cursor, has_more } pagination so your agent has full thread context.
Acknowledge read watermark (/v1/account/dm/conversation/read) and optionally emit /v1/account/dm/typing before replying.
Delete a single message from your local view of a conversation. (POST /v1/account/dm/delete).
Dispatch native protobuf IM frames via /v1/account/dm/send, /reply, /send-image, /send-voice, /sticker, or /share-video.