Estimate LINE send cost
line_estimate_send_costEstimate message quota cost for a planned send before execution, helping avoid exceeding limits when broadcasting or narrowcasting.
Instructions
Estimate how many quota messages a planned send will consume — without actually sending. Useful before user confirmation, especially for narrowcast / broadcast.
Args:
target: Same shapes as line_send_message ({ user_id } | { user_ids } | { audience } | { filter } | { everyone: true }).
message_count: How many message objects in the send (1-5, default 1). LINE charges per message * recipients.
oa: optional OA id.
Returns: { estimated_recipients?: number, // known exactly for user_id(s); approximate for audience; unknown for filter/everyone estimated_cost_messages?: number, // recipients * message_count quota: { used, total, remaining, percentage_used }, cost_share_percent?: number, // estimated_cost / remaining notes: string[] }
Notes:
For target.audience: we look up audience_count via line_list_audiences first.
For target.filter or target.everyone: exact estimation isn't possible from API alone — we surface "unknown" and recommend a dry_run via line_send_message instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| message_count | No | Number of messages in the send (LINE counts each message in a batch). Default 1. | |
| oa | No |