Send Media
Send an end-to-end encrypted media attachment (image / gif / video / file) into an established XChat conversation. Provide the file as image_url or image_base64. Requires your encryption_code (your XChat PIN — the code you set when enabling encrypted chats on X).
Authorizations
Your OmniX API key, e.g. omnix_live_.... Billed per call.
Body
The X account auth_token cookie the action runs as.
"YOUR_X_AUTH_TOKEN"
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.
"YOUR_XCHAT_PIN"
"1000000000000000001:2000000000000000002"
A URL to fetch the media from. Provide this or image_base64.
Base64 of the file (with or without a data: prefix). Provide this or image_url.
Optional caption.
1=image (default), 2=gif, 3=video, 4=audio, 5=file, 6=svg.
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.
"http://user:pass@host:8080"