Mandate · API reference
Calls
Phone numbers your agents call from, and calls they register before dialing with a signed call credential.
Related guide: Register calls
The call registration object
Attributes
idstringRequired- Unique identifier for the object (
call_). objectenumRequired- The type of object. One of
call. statusenumRequiredregistereduntil an answering business checks it;revokedafter you revoke it, or once its grant is revoked or its agent suspended. One ofregistered,checked,expired,revoked.agent_idstringRequired- The calling agent: a registered agent's ID, or the
agentclaim of an agent with its own directory. purposeenumRequired- The call's purpose. One of
book,buy,cancel,change,support,inquire. short_codestring- The 6-digit code for this call, returned only at registration.
not_beforetimestampRequired- The start of the call's window.
expires_attimestampRequired- The end of the call's window, at most 15 minutes after the start.
person_approvedbooleanRequired- Whether a person stands behind the call, through a grant or a one-time approval.
grant_idstring | nullRequired- The grant behind the call.
approval_idstring | nullRequired- The one-time approval behind the call, when there is no grant.
created_attimestampRequired- When the call was registered.
answered_check_idstring- Present when
challenge_codeanswered an in-call challenge: the answering business's check, which is nowverified.
The call registration object
{
"id": "call_01M6XS88MWEMC2TK5MM9Y9MAWE",
"object": "call",
"status": "registered",
"agent_id": "agt_01M6XS88KNFTWDGP2MRBSJG3WR",
"purpose": "book",
"short_code": "512656",
"not_before": "2026-11-08T14:33:30.000Z",
"expires_at": "2026-11-08T14:43:30.000Z",
"person_approved": true,
"grant_id": "grt_01M6XS88MSV3GBK874W606KSBA",
"approval_id": null,
"created_at": "2026-11-08T14:33:30.011Z"
}Events
Sent to your webhook endpoints when they subscribe:
mandate.call.proof_requestedmandate.call.spoof_suspected
Add a phone number
POST/v1/mandate/call_numbers
Starts proving you control a number: Provenance sends a 6-digit code by text, or reads it out on a placed call for landlines and contact-centre lines. Enter it with Verify a number within 10 minutes. side: caller needs the mandate scope; side: answering needs authorize. At most 5 codes per number an hour. Free.
Parameters
numberstringRequired- The number in E.164, such as
+14155550100. sideenumRequiredcaller: your agents call from it.answering: your business answers on it. One ofcaller,answering.channelenum- How to send the code. One of
sms,call.
Returns
The number, pending its code, and whether the code went out.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/mandate/call_numbers" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "number": "+14155550100", "side": "caller" }'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();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/call_numbers", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"number": "+14155550100",
"side": "caller"
}).json()Response 201
{
"id": "cnum_01M6XSMPVAB6W030VPJJH9VQ7J",
"object": "call_number",
"side": "caller",
"last4": "0100",
"country": "US",
"status": "pending",
"channel": "sms",
"verified_at": null,
"created_at": "2026-11-08T14:40:17.770Z",
"delivery": {
"channel": "sms",
"delivered": false,
"reason": "channel_not_configured"
}
}Register a call
POST/v1/mandate/calls
Registers a call before your agent dials, from a call credential your agent signed with its key. Provenance checks the signature, the agent, the window (15 minutes at most), the caller number, the grant's call scope and the jti, and returns the short code for the agent to speak. With challenge_code it answers a business's in-call challenge. A refusal is a 200 with status: refused. Free.
Parameters
credentialstringRequired- The call credential: a compact JWS (
alg: EdDSA,typ: call+jws) signed with the agent's key. The format is on the call credential reference page. challenge_codestring- The 6-digit code a business read out to challenge this call.
Returns
The call was refused; nothing was registered.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/mandate/calls" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{
"credential": "eyJhbGciOiJFZERTQSIsInR5cCI6ImNhbGwrandzIiwia2lkIjoiVjdfbDZXcmhkWEJRWlNzTXJ0UlB5WjJobzFDOFUtWXhmaFRfM3dOQUZZYyJ9.eyJ2IjoxLCJpc3MiOiJodHRwczovL2FwaS5wcm92ZW5hbmNlYXV0aC5jb20vdjEvcHVibGljL2FnZW50cy9hZ3RfMDFNNlhTODhLTkZUV0RHUDJNUkJTSkczV1IvZGlyZWN0b3J5IiwiYWdlbnQiOiJhZ3RfMDFNNlhTODhLTkZUV0RHUDJNUkJTSkczV1IiLCJmcm9tIjoiKzE0MTU1NTUwMTAwIiwidG8iOiIrMTQxNTU1NTAxMjMiLCJuYmYiOjE3OTQxNDg0MTAsImV4cCI6MTc5NDE0OTAxMCwianRpIjoiMTYxM2M0M2MtZjhmMS00N2FiLWI3NzctZmYxNzNiYmJhM2FhIiwicHVycG9zZSI6ImJvb2siLCJwdXJwb3NlX3RleHQiOiJUYWJsZSBmb3IgMiBhdCA3cG0gRnJpZGF5IiwiZ3JhbnQiOiJtZHRfMDFNNlhTODhNU1YzR0JLODc0VzYwNktTQkEiLCJkaXNjbG9zdXJlIjp7ImFpIjp0cnVlLCJzdGF0ZW1lbnQiOiJzcG9rZW5fYXRfc3RhcnQifSwiY29uc2VudCI6eyJiYXNpcyI6ImN1c3RvbWVyX3JlcXVlc3QiLCJyZWYiOiJib29raW5nLTQ0NzEifX0.S8Gz7NyrtwSU5pRZwN19YFnalXNd3f9GpqhopYw7yi-mIRurgmDp0VPuUZ_D-bOpmUB8--KE7kwaGyiM4HSVBg"
}'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/calls`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"credential": "eyJhbGciOiJFZERTQSIsInR5cCI6ImNhbGwrandzIiwia2lkIjoiVjdfbDZXcmhkWEJRWlNzTXJ0UlB5WjJobzFDOFUtWXhmaFRfM3dOQUZZYyJ9.eyJ2IjoxLCJpc3MiOiJodHRwczovL2FwaS5wcm92ZW5hbmNlYXV0aC5jb20vdjEvcHVibGljL2FnZW50cy9hZ3RfMDFNNlhTODhLTkZUV0RHUDJNUkJTSkczV1IvZGlyZWN0b3J5IiwiYWdlbnQiOiJhZ3RfMDFNNlhTODhLTkZUV0RHUDJNUkJTSkczV1IiLCJmcm9tIjoiKzE0MTU1NTUwMTAwIiwidG8iOiIrMTQxNTU1NTAxMjMiLCJuYmYiOjE3OTQxNDg0MTAsImV4cCI6MTc5NDE0OTAxMCwianRpIjoiMTYxM2M0M2MtZjhmMS00N2FiLWI3NzctZmYxNzNiYmJhM2FhIiwicHVycG9zZSI6ImJvb2siLCJwdXJwb3NlX3RleHQiOiJUYWJsZSBmb3IgMiBhdCA3cG0gRnJpZGF5IiwiZ3JhbnQiOiJtZHRfMDFNNlhTODhNU1YzR0JLODc0VzYwNktTQkEiLCJkaXNjbG9zdXJlIjp7ImFpIjp0cnVlLCJzdGF0ZW1lbnQiOiJzcG9rZW5fYXRfc3RhcnQifSwiY29uc2VudCI6eyJiYXNpcyI6ImN1c3RvbWVyX3JlcXVlc3QiLCJyZWYiOiJib29raW5nLTQ0NzEifX0.S8Gz7NyrtwSU5pRZwN19YFnalXNd3f9GpqhopYw7yi-mIRurgmDp0VPuUZ_D-bOpmUB8--KE7kwaGyiM4HSVBg"
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/calls", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"credential": "eyJhbGciOiJFZERTQSIsInR5cCI6ImNhbGwrandzIiwia2lkIjoiVjdfbDZXcmhkWEJRWlNzTXJ0UlB5WjJobzFDOFUtWXhmaFRfM3dOQUZZYyJ9.eyJ2IjoxLCJpc3MiOiJodHRwczovL2FwaS5wcm92ZW5hbmNlYXV0aC5jb20vdjEvcHVibGljL2FnZW50cy9hZ3RfMDFNNlhTODhLTkZUV0RHUDJNUkJTSkczV1IvZGlyZWN0b3J5IiwiYWdlbnQiOiJhZ3RfMDFNNlhTODhLTkZUV0RHUDJNUkJTSkczV1IiLCJmcm9tIjoiKzE0MTU1NTUwMTAwIiwidG8iOiIrMTQxNTU1NTAxMjMiLCJuYmYiOjE3OTQxNDg0MTAsImV4cCI6MTc5NDE0OTAxMCwianRpIjoiMTYxM2M0M2MtZjhmMS00N2FiLWI3NzctZmYxNzNiYmJhM2FhIiwicHVycG9zZSI6ImJvb2siLCJwdXJwb3NlX3RleHQiOiJUYWJsZSBmb3IgMiBhdCA3cG0gRnJpZGF5IiwiZ3JhbnQiOiJtZHRfMDFNNlhTODhNU1YzR0JLODc0VzYwNktTQkEiLCJkaXNjbG9zdXJlIjp7ImFpIjp0cnVlLCJzdGF0ZW1lbnQiOiJzcG9rZW5fYXRfc3RhcnQifSwiY29uc2VudCI6eyJiYXNpcyI6ImN1c3RvbWVyX3JlcXVlc3QiLCJyZWYiOiJib29raW5nLTQ0NzEifX0.S8Gz7NyrtwSU5pRZwN19YFnalXNd3f9GpqhopYw7yi-mIRurgmDp0VPuUZ_D-bOpmUB8--KE7kwaGyiM4HSVBg"
}).json()Response 200
{
"id": null,
"object": "call",
"status": "refused",
"reason": "call_purpose_not_allowed",
"message": "the grant allows book, cancel",
"decision_id": "dec_01M6XS88P6BKRJDS6PN8EA08EM"
}Retrieve a phone number
GET/v1/mandate/call_numbers/{id}
One number your account added.
Parameters
idstringpathRequired- The number's ID (
cnum_).
Returns
The number.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/call_numbers" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "number": "+14155550102", "side": "caller" }' > step.json
export NUMBER_ID=$(jq -r '.id' step.json)
curl "$PROVENANCE_API/v1/mandate/call_numbers/$NUMBER_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = 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": "+14155550102", "side": "caller" }),
})).json();
const numberId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/call_numbers/${numberId}`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/call_numbers", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"number": "+14155550102",
"side": "caller"
}).json()
number_id = step1["id"]
data = httpx.get(f"{api}/v1/mandate/call_numbers/{number_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"id": "cnum_01M6XSMPVR0GMNTABJE6A3CRPF",
"object": "call_number",
"side": "caller",
"last4": "0102",
"country": "US",
"status": "pending",
"channel": "sms",
"verified_at": null,
"created_at": "2026-11-08T14:40:17.784Z"
}List phone numbers
GET/v1/mandate/call_numbers
Every number your account added, on both sides, newest first.
Parameters
No parameters.
Returns
The numbers.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/call_numbers" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "number": "+14155550101", "side": "caller" }' > /dev/null
curl "$PROVENANCE_API/v1/mandate/call_numbers" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = 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": "+14155550101", "side": "caller" }),
})).json();
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/call_numbers`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/call_numbers", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"number": "+14155550101",
"side": "caller"
}).json()
data = httpx.get(f"{api}/v1/mandate/call_numbers", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"object": "list",
"data": [
{
"id": "cnum_01M6XSMPVHPECZMYZAA4CP6972",
"object": "call_number",
"side": "caller",
"last4": "0101",
"country": "US",
"status": "pending",
"channel": "sms",
"verified_at": null,
"created_at": "2026-11-08T14:40:17.777Z"
},
{
"id": "cnum_01M6XSMPVAB6W030VPJJH9VQ7J",
"object": "call_number",
"side": "caller",
"last4": "0100",
"country": "US",
"status": "pending",
"channel": "sms",
"verified_at": null,
"created_at": "2026-11-08T14:40:17.770Z"
}
],
"has_more": false,
"next_cursor": null
}Remove a phone number
DELETE/v1/mandate/call_numbers/{id}
Removes the number. Calls from it stop registering, and checks of calls to it need the caller's short code.
Parameters
idstringpathRequired- The number's ID (
cnum_).
Returns
The removed number.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -s -X POST "$PROVENANCE_API/v1/mandate/call_numbers" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "number": "+14155550103", "side": "caller", "channel": "call" }' > step.json
export NUMBER_ID=$(jq -r '.id' step.json)
curl -X DELETE "$PROVENANCE_API/v1/mandate/call_numbers/$NUMBER_ID" \
-H "Authorization: Bearer $PROVENANCE_KEY"const step1 = 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": "+14155550103", "side": "caller", "channel": "call" }),
})).json();
const numberId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/call_numbers/${numberId}`, {
method: "DELETE",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/mandate/call_numbers", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"number": "+14155550103",
"side": "caller",
"channel": "call"
}).json()
number_id = step1["id"]
data = httpx.delete(f"{api}/v1/mandate/call_numbers/{number_id}", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"id": "cnum_01M6XSMPVYSS4VR6E854R964JG",
"object": "call_number",
"deleted": true
}Verify a phone number
POST/v1/mandate/call_numbers/{id}/verify
Enters the 6-digit code sent to the number. 5 tries within 10 minutes. A verified number moves to your account from any other account that held it on the same side.
Parameters
idstringpathRequired- The number's ID (
cnum_). codestringRequired- The code that was sent.
Returns
The verified number.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/mandate/call_numbers/cnum_01M6XS88KR3S50F75T14QJ6DQ4/verify" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "code": "204135" }'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();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/call_numbers/cnum_01M6XS88KR3S50F75T14QJ6DQ4/verify", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"code": "204135"
}).json()Response 200
{
"id": "cnum_01M6XS88KR3S50F75T14QJ6DQ4",
"object": "call_number",
"side": "caller",
"last4": "0100",
"country": "US",
"status": "verified",
"channel": "sms",
"verified_at": "2026-11-08T14:33:29.984Z",
"created_at": "2026-11-08T14:33:29.976Z"
}Revoke a call
POST/v1/mandate/calls/{id}/revoke
Stops a registered call from verifying: a later check answers revoked. Revoking the grant or suspending the agent revokes its open calls too. Free.
Parameters
idstringpathRequired- The call's ID (
call_).
Returns
The revoked call. See the call registration object.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/mandate/calls/call_01M6XS88NJNFX99RMN570B7MY2/revoke" \
-H "Authorization: Bearer $PROVENANCE_KEY"const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/calls/call_01M6XS88NJNFX99RMN570B7MY2/revoke`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/calls/call_01M6XS88NJNFX99RMN570B7MY2/revoke", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()Response 200
{
"id": "call_01M6XS88NJNFX99RMN570B7MY2",
"object": "call",
"status": "revoked",
"agent_id": "agt_01M6XS88KNFTWDGP2MRBSJG3WR",
"purpose": "book",
"not_before": "2026-11-08T14:33:30.000Z",
"expires_at": "2026-11-08T14:43:30.000Z",
"person_approved": true,
"grant_id": "grt_01M6XS88MSV3GBK874W606KSBA",
"approval_id": null,
"created_at": "2026-11-08T14:33:30.033Z"
}Decline a proof request
POST/v1/mandate/calls/proof_requests/{id}/decline
Answers a mandate.call.proof_requested event with not_ours: none of your agents is on that call, so someone else is using your number. The business's check returns no_proof, and you get mandate.call.spoof_suspected. To prove a call that is yours, register it instead.
Parameters
idstringpathRequired- The
proof_request_idfrom the event. reasonenumRequired- Always
not_ours. One ofnot_ours.
Returns
The declined proof request.
Errors
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/mandate/calls/proof_requests/ccx_01M6XS88R5FRAGAMTCFZBXJVT2/decline" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "reason": "not_ours" }'const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/calls/proof_requests/ccx_01M6XS88R5FRAGAMTCFZBXJVT2/decline`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({ "reason": "not_ours" }),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/mandate/calls/proof_requests/ccx_01M6XS88R5FRAGAMTCFZBXJVT2/decline", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"reason": "not_ours"
}).json()Response 200
{
"id": "ccx_01M6XS88R5FRAGAMTCFZBXJVT2",
"object": "call_proof_request",
"status": "declined",
"created_at": "2026-11-08T14:33:30.117Z"
}