SDK reference · Python SDK

prov.mandate.call_numbers.create

prov.mandate.call_numbers.create in Python SDK. Start verifying a number (side: caller or answering; channel: sms or call).

Signature

prov.mandate.call_numbers.create(number: str, side: str, channel: Optional[str] = …) -> Any

Parameters

numberstrRequired
sidestrRequired
channelOptional[str]

Request fields

numberstringRequired
The number in E.164, such as +14155550100.
sideenumRequired
caller: your agents call from it. answering: your business answers on it. One of caller, answering.
channelenum
How to send the code. One of sms, call.

Returns

Any The number, pending its code, and whether the code went out.

HTTP operation

POST /v1/mandate/call_numbers: Add a phone number

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/call_numbers`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "number": "+14155550100", "side": "caller" }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.