SDK reference · Python SDK

prov.mandate.call_numbers.verify

prov.mandate.call_numbers.verify in Python SDK.

Signature

prov.mandate.call_numbers.verify(number_id: str, code: str) -> Any

Parameters

number_idstrRequired
codestrRequired

Request fields

idstringpathRequired
The number's ID (cnum_).
codestringRequired
The code that was sent.

Returns

Any The verified number.

HTTP operation

POST /v1/mandate/call_numbers/{id}/verify: Verify a phone number

Errors

Example

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

Was this page helpful? Send us feedback

LLM? Read llms.txt.