Place a phone call that runs a call flow when answered
post/calls
Place a phone call that runs a call flow when answered. Refused, with the reason, for an invalid or premium-rate number, a refused country, a number the project may not call from, an opted-out person (marketing), quiet hours (marketing), the hourly limit, or an exhausted plan allowance. Minutes are charged when the call ends.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
voice:write- Mcp
rivier_call_place- Graphql
Mutation.voiceCallPlace- Sdk
calls.place- Cli
calls place
Request bodyapplication/json, required
- tostringrequiredThe number to call, written with its country code: +9609123456 At most 40 characters.
- fromstringOne of the project's calling numbers; the first one when left out At most 40 characters.
- flowIdstring (uuid)requiredThe call flow that runs when the call is answered
- purposestringMarketing calls respect opt-outs and quiet hours One of: transactional, marketing.
- varsobjectValues the flow can speak, used as {{name}}
- maxSecondsintegerThe longest this call may run, in seconds; never more than the project's own maximum At least 30. At most 3600.
- liveWordsbooleanSend the words of the call as voice.call.words events while it runs
- placedBystringAt most 100 characters.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring