Skip to main content
POST
Delete Message(s)

Authorizations

Authorization
string
header
required

Your OmniX API key, e.g. omnix_live_.... Billed per call.

Body

application/json
auth_token
string
required

The X account auth_token cookie the action runs as.

Example:

"YOUR_X_AUTH_TOKEN"

encryption_code
string
required

Your XChat encryption code — the PIN you set when enabling encrypted chats on X. Used to recover your key so messages can be decrypted and outgoing events signed.

Example:

"YOUR_XCHAT_PIN"

conversation_id
string
required
Example:

"1000000000000000001:2000000000000000002"

seq_id
string

A single message seq_id. Provide this or seq_ids.

seq_ids
string[]

Multiple message seq_ids.

delete_for_all
boolean
default:false

Remove for everyone (your own encrypted messages only). Default removes from your view.

proxy
string

Optional outbound proxy for this call (http:// or https://, optionally user:pass@host:port). The X request runs through it — useful for geo-routing or spreading calls across IPs. SOCKS proxies are not supported.

Example:

"http://user:pass@host:8080"

Response

Deleted.

status
boolean
Example:

true

data
object
error
string | null
Example:

null