Upload media file
Upload a media file using API key authentication and get back a publicly accessible URL. The URL can be used as `attachmentUrl` when sending inbox messages. Files are stored in temporary storage and auto-delete after 7 days. Maximum file size is 25MB. Unlike `/v1/media/upload` (which uses upload tokens for end-user flows), this endpoint uses standard Bearer token authentication for programmatic use.
API key authentication - use your Zernio API key as a Bearer token
In: header
The file to upload (max 25MB)
binaryOverride MIME type (e.g. "image/jpeg"). Auto-detected from file if not provided.
Response Body
application/json
application/json
curl -X POST "https://zernio.com/api/v1/media/upload-direct" \ -F file="string"{
"url": "string",
"filename": "string",
"contentType": "string",
"size": 0
}{
"error": "Unauthorized"
}Send typing indicator POST
Show a typing indicator in a conversation. Platform support: - **Facebook Messenger**: Shows "Page is typing..." for 20 seconds - **Telegram**: Shows "Bot is typing..." for 5 seconds - **All others**: Returns 200 but no-op (platform doesn't support it) Typing indicators are best-effort. The endpoint always returns 200 even if the platform call fails.
List commented posts GET
Returns posts with comment counts from all connected accounts. Aggregates data across multiple accounts.