API reference

Phone and messaging

Numbers, calls, call flows, text messages, WhatsApp and verification.

Scopes for this area: voice:read, voice:write and voice:admin.

65 operations

number

MethodRouteWhat it doesLevelCommand
GET/numbersThe project's phone numbers.readrivier voice number list
GET/numbers/searchNumbers available to buy.readrivier voice number search
POST/numbersBuy a number at Praecise Inbox for the project owner's account and use it here; refused while Inbox has not opened buying.writerivier voice number buy
GET/numbers/givenThe numbers the owner's account gave Rivier at Praecise Inbox that this project does not use yet, and where more are given.readrivier voice number given
POST/numbers/{id}/useUse here a number the owner's account gave Rivier at Praecise Inbox.writerivier voice number use
POST/numbers/{id}/dropStop using a number here; it stays the account's at Praecise Inbox.writerivier voice number drop
GET/numbers/{id}One number with its agents.readrivier voice number get
PATCH/numbers/{id}Change a number's settings.writerivier voice number update
POST/numbers/{id}/releaseGive back a number Rivier bought at Praecise Inbox.writerivier voice number release
GET/numbers/{id}/agentsThe agents that answer a number.readrivier voice number agents
PUT/numbers/{id}/agents/{agentId}Let an agent answer a number.writerivier voice number add agent
DELETE/numbers/{id}/agents/{agentId}Stop an agent answering a number.writerivier voice number remove agent

catalogue

MethodRouteWhat it doesLevelCommand
GET/voice/catalogueThe voices on offer.readrivier voice catalogue list
POST/voice/catalogue/refreshRefresh the voice list from the provider.writerivier voice catalogue refresh
PUT/voice/catalogue/{voice}/previewStore a preview clip for a voice.writerivier voice catalogue preview

profile

MethodRouteWhat it doesLevelCommand
GET/voice/projectThe project's voice profile.readrivier voice profile project
POST/voice/projectPropose the project's voice profile.writerivier voice profile propose project
POST/voice/profiles/{id}/submitSend a voice profile for approval.writerivier voice profile submit
POST/voice/profiles/{id}/approveApprove a voice profile.writerivier voice profile approve
POST/voice/profiles/{id}/rejectSend a voice profile back.writerivier voice profile reject

session

MethodRouteWhat it doesLevelCommand
GET/voice/sessionsVoice sessions.readrivier voice session list
GET/voice/sessions/{id}One voice session.readrivier voice session get
GET/voice/sessions/{id}/transcriptThe transcript of a session.readrivier voice session transcript
POST/voice/sessions/{id}/endEnd a session.writerivier voice session end
POST/voice/sessions/{id}/transferHand a session to a person.writerivier voice session transfer

live

MethodRouteWhat it doesLevelCommand
POST/voice/live/sessionsA single-use token for a browser to talk to an agent in real time on a chat site: bound to the agent, the site and the page's origin, valid for one minute.writerivier voice live start
POST/voice/live/sessions/{id}/extendGive a live browser conversation more minutes, up to the agent's profile maximum.writerivier voice live extend

platform session

MethodRouteWhat it doesLevelCommand
POST/voice/platform/sessionsA real-time voice session your platform configures with no agent: converse on your own instruction, interpret between two languages, or only transcribe; a live route, a catalogue voice, tools answered in the browser or posted signed to your server, your own metadata. Answers a single-use token bound to that configuration and one page origin, valid one minute; the same idempotency key answers the same session until it starts.writerivier voice platform session start
GET/voice/platform/sessions/{id}A platform voice session: its state, seconds, minutes, cost, why it ended, and the words when they were kept.readrivier voice platform session get
POST/voice/platform/sessions/{id}/extendMore minutes for a running platform session, refused when the plan cannot hold them now.writerivier voice platform session extend
POST/voice/platform/sessions/{id}/endEnd a running platform session.writerivier voice platform session end
POST/voice/platform/sessions/eraseErase the kept words of one platform session, or of every session whose metadata has the given values. The figures stay.writerivier voice platform session erase
GET/voice/platform/languagesWhat each live route takes and says, for speech in, speech out and interpreting, and the date that was read from the supplier.readrivier voice platform session languages

phone status

MethodRouteWhat it doesLevelCommand
GET/phone/statusWhether the phone account is live, in test mode or a mock, and the addresses the carrier calls back on.readrivier voice phone status get

phone message

MethodRouteWhat it doesLevelCommand
POST/phone/messagesSend a text, a picture message or a WhatsApp message. Checks opt-out, agreement, the WhatsApp window, the country's rules and the plan allowance first, and refuses with a plain reason and the next step rather than dropping anything. Marketing needs the person's recorded agreement.writerivier voice phone message send
GET/phone/messagesRecent texts and WhatsApp messages, both ways, with where each one stands.readrivier voice phone message list
GET/phone/messages/{id}One message and where it stands.readrivier voice phone message get

phone conversation

MethodRouteWhat it doesLevelCommand
GET/phone/conversationsConversations by person, newest first, with the ones waiting for an answer marked.readrivier voice phone conversation list
GET/phone/conversations/{peer}Everything said with one person, whether they have agreed to hear from you, and until when a WhatsApp reply can be free text.readrivier voice phone conversation get

phone contact

MethodRouteWhat it doesLevelCommand
POST/phone/opt-inRecord how and where a person agreed to receive messages. Needed before marketing and before a WhatsApp template to someone who has not written first.writerivier voice phone contact opt in
POST/phone/opt-outRecord that a person does not want messages. They stay off the list until they opt back in.writerivier voice phone contact opt out
DELETE/phone/people/{peer}Remove every message and agreement record held for one phone number.writerivier voice phone contact erase

phone sender

MethodRouteWhat it doesLevelCommand
GET/phone/sendersEverything the project can send from: its numbers, sender names and WhatsApp numbers, and which are ready.readrivier voice phone sender list
POST/phone/sendersAdd a sender name or a WhatsApp number. A name that a country wants registered waits until the registration is approved.writerivier voice phone sender add
DELETE/phone/senders/{id}Remove a sender name or WhatsApp number.writerivier voice phone sender remove

phone template

MethodRouteWhat it doesLevelCommand
GET/phone/templatesWhatsApp message templates and whether WhatsApp has approved each.readrivier voice phone template list
POST/phone/templatesWrite a WhatsApp template. Placeholders are {{1}}, {{2}}. It cannot be sent until WhatsApp approves it.writerivier voice phone template create
POST/phone/templates/{id}/submitSend a template to WhatsApp for approval.writerivier voice phone template submit
POST/phone/templates/{id}/refreshAsk WhatsApp where a template's approval stands.writerivier voice phone template refresh
DELETE/phone/templates/{id}Delete a template.writerivier voice phone template delete

verify service

MethodRouteWhat it doesLevelCommand
GET/verify/servicesThe project's verification services: each one is a set of rules for one-time codes (channels, code length, expiry, attempt limits, rate limits, fraud guards).readrivier verify services
GET/verify/services/{id}One verification service with all its settings.readrivier verify service
POST/verify/servicesCreate a verification service. Defaults are safe: text, call and email, six digits, ten minutes, five tries, rate limits per destination and network address, premium-rate numbers refused.writerivier verify service-create
PUT/verify/services/{id}Change a verification service. Existing verifications keep running under the rules they started with.writerivier verify service-update
DELETE/verify/services/{id}Delete a verification service and its verifications.writerivier verify service-delete

verify funnel

MethodRouteWhat it doesLevelCommand
GET/verify/services/{id}/funnelHow many verifications started, were approved and failed in the last hours, and the conversion share: the first number to read when a service is attacked.readrivier verify funnel

verify start

MethodRouteWhat it doesLevelCommand
POST/verify/services/{id}/verificationsSend a one-time code to a phone number or an email address. channel auto uses the service's order and falls back by itself when a channel fails. Rate limits, fraud guards, opt-outs and the plan's allowance are checked first; a refusal says which rule and what to do. The code itself is never returned (only in the mock, where nothing is sent).writerivier verify start

verify check

MethodRouteWhat it doesLevelCommand
POST/verify/services/{id}/checkCheck the code a person typed, by destination or verification id. Answers valid and the status (pending, approved, expired or out of tries); a wrong code leaves the verification pending until the tries run out.writerivier verify check

verify attempt

MethodRouteWhat it doesLevelCommand
GET/verify/verificationsVerifications, newest first: filter by service, status, channel, destination or time. Each shows its send attempts by channel.readrivier verify list
GET/verify/verifications/{vid}One verification with its status, attempts per channel and why a channel failed.readrivier verify get
POST/verify/verifications/{vid}/cancelCancel a pending verification: its code stops working.writerivier verify cancel
POST/verify/verifications/{vid}/fallbackSend the code through another channel (the next one in the service's order, or the one named) when the person did not receive it.writerivier verify fallback

lookup number

MethodRouteWhat it doesLevelCommand
GET/lookup/validateCheck the format of a phone number without a network call: valid or not, why, its country, a readable form, and whether its shape says mobile, toll-free or premium-rate.readrivier lookup validate
POST/lookup/numbersLook a number up: validity and country are free; line type, carrier, caller name, reachability, SIM swap and pumping risk ask the carrier and use the plan's lookups allowance. Recent answers are reused (cached: true) and cost nothing.writerivier lookup number
GET/lookup/numbersLookups already made, newest first; filter by number.readrivier lookup list