Estimate what generating an email would cost
POST /voice/campaigns/email-estimate
POST
/voice/campaigns/email-estimate
FREE. Reports the token cost and GENERATES NOTHING.
The only way to learn what POST /voice/campaigns/emails will cost before
spending it, which is exactly why it must not be gated behind the spend
permission. It is in READ_ONLY_POST_ROUTES for that reason - the
/estimate billable marker catches it by name and gets it backwards.
Authorizations
Parameters
Header Parameters
Request Body required
The same body POST /voice/campaigns/emails takes.
object
key
additional properties
any
Responses
200
Successful Response
object
data
required
One voice object - a collection, an agent, a route, a chat.
Open-shaped: voice adds fields to these bodies on its own release cadence and a dropped-or-added key must not be a 500 in this service.
object
key
additional properties
any
pagination
Any of:
object
has_next
required
Whether there are more pages
boolean
limit
required
Items per page
integer
notes
Any of:
Array<string>
null
page
required
Current page number (1-indexed)
integer
total
required
Total number of items
integer
null
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string