Direct Messages

Send message — estimate

Price the request without executing it. Same body as POST /v1/social/chats/{chat_id}/messages.

post/v1/social/chats/{chat_id}/messages/estimate

Request

  • Base URL: https://apihub.co.il
  • URL: https://apihub.co.il/v1/social/chats/{chat_id}/messages/estimate
  • Auth: HTTP bearer

Path parameters

chat_idstring required

Chat ID — accepts the Postproxy hashid or the platform's external_conversation_id

Request body

tag'HUMAN_AGENT'

Message tag for sending outside the 24-hour window. Facebook and Instagram only — ignored on Telegram. Extends the reply window to 7 days from the participant's last inbound message; for a human resolving the participant's own inquiry only, never promotional content.

bodystring

Message text. Required when media is empty. Capped at 220 characters when buttons are present.

reply_markupobject

Telegram only. Inline keyboard (inline_keyboard), custom reply keyboard (keyboard, with one_time_keyboard / resize_keyboard), force_reply, or remove-keyboard payload — passed through to Telegram unchanged.

reply_to_external_idstring

Telegram only. Platform message_id to thread the reply under.

Response

Estimate

operationstring
estimated_creditsnumber
credits_to_reservenumber
estimated_usageobject
notestring nullable
sufficientboolean

Changes

No recorded changes to this operation across all 2 revisions of this API.