# Calls

Phone numbers your agents call from, and calls they register before dialing with a signed call credential.

Related guide: [Register calls](https://provenanceauth.com/docs/mandate/guides/register-calls.md)

## Endpoints

- `POST /v1/mandate/call_numbers`: [Add a phone number](#post-v1-mandate-call-numbers)
- `POST /v1/mandate/calls`: [Register a call](#post-v1-mandate-calls)
- `GET /v1/mandate/call_numbers/{id}`: [Retrieve a phone number](#get-v1-mandate-call-numbers-id)
- `GET /v1/mandate/call_numbers`: [List phone numbers](#get-v1-mandate-call-numbers)
- `DELETE /v1/mandate/call_numbers/{id}`: [Remove a phone number](#delete-v1-mandate-call-numbers-id)
- `POST /v1/mandate/call_numbers/{id}/verify`: [Verify a phone number](#post-v1-mandate-call-numbers-id-verify)
- `POST /v1/mandate/calls/{id}/revoke`: [Revoke a call](#post-v1-mandate-calls-id-revoke)
- `POST /v1/mandate/calls/proof_requests/{id}/decline`: [Decline a proof request](#post-v1-mandate-calls-proof-requests-id-decline)

## The call registration object

### Attributes

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Unique identifier for the object (`call_`). |
| `object` | enum | yes | The type of object. One of `call`. |
| `status` | enum | yes | `registered` until an answering business checks it; `revoked` after you revoke it, or once its grant is revoked or its agent suspended. One of `registered`, `checked`, `expired`, `revoked`. |
| `agent_id` | string | yes | The calling agent: a registered agent's ID, or the `agent` claim of an agent with its own directory. |
| `purpose` | enum | yes | The call's purpose. One of `book`, `buy`, `cancel`, `change`, `support`, `inquire`. |
| `short_code` | string | no | The 6-digit code for this call, returned only at registration. |
| `not_before` | timestamp | yes | The start of the call's window. |
| `expires_at` | timestamp | yes | The end of the call's window, at most 15 minutes after the start. |
| `person_approved` | boolean | yes | Whether a person stands behind the call, through a grant or a one-time approval. |
| `grant_id` | string \| null | yes | The grant behind the call. |
| `approval_id` | string \| null | yes | The one-time approval behind the call, when there is no grant. |
| `created_at` | timestamp | yes | When the call was registered. |
| `answered_check_id` | string | no | Present when `challenge_code` answered an in-call challenge: the answering business's check, which is now `verified`. |

### Example

```json
{
  "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](https://provenanceauth.com/docs/integrate/webhooks.md) when they subscribe:

- `mandate.call.proof_requested`
- `mandate.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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `number` | body | string | yes | The number in E.164, such as `+14155550100`. |
| `side` | body | enum | yes | `caller`: your agents call from it. `answering`: your business answers on it. One of `caller`, `answering`. |
| `channel` | body | enum | no | How to send the code. One of `sms`, `call`. |

### Returns

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

### Errors

- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`calls_not_configured`](https://provenanceauth.com/docs/platform/errors.md#calls_not_configured)

### Request

**curl**

```bash
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" }'
```

**Node**

```ts
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();
```

**Python**

```python
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

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `credential` | body | string | yes | 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_code` | body | string | no | The 6-digit code a business read out to challenge this call. |

### Returns

The call was refused; nothing was registered.

### Errors

- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`directory_unavailable`](https://provenanceauth.com/docs/platform/errors.md#directory_unavailable)
- [`calls_not_configured`](https://provenanceauth.com/docs/platform/errors.md#calls_not_configured)

### Request

**curl**

```bash
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"
  }'
```

**Node**

```ts
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();
```

**Python**

```python
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

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The number's ID (`cnum_`). |

### Returns

The number.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
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"
```

**Node**

```ts
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();
```

**Python**

```python
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

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

No parameters.

### Returns

The numbers.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
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"
```

**Node**

```ts
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();
```

**Python**

```python
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

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The number's ID (`cnum_`). |

### Returns

The removed number.

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
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"
```

**Node**

```ts
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();
```

**Python**

```python
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

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The number's ID (`cnum_`). |
| `code` | body | string | yes | The code that was sent. |

### Returns

The verified number.

### Errors

- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`call_number_code_invalid`](https://provenanceauth.com/docs/platform/errors.md#call_number_code_invalid)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)
- [`calls_not_configured`](https://provenanceauth.com/docs/platform/errors.md#calls_not_configured)

### Request

**curl**

```bash
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" }'
```

**Node**

```ts
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();
```

**Python**

```python
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

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The call's ID (`call_`). |

### Returns

The revoked call. See [the call registration object](#object).

### Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
curl -X POST "$PROVENANCE_API/v1/mandate/calls/call_01M6XS88NJNFX99RMN570B7MY2/revoke" \
  -H "Authorization: Bearer $PROVENANCE_KEY"
```

**Node**

```ts
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();
```

**Python**

```python
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

```json
{
  "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.

Auth: an API key, as `Authorization: Bearer <key>`.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The `proof_request_id` from the event. |
| `reason` | body | enum | yes | Always `not_ours`. One of `not_ours`. |

### Returns

The declined proof request.

### Errors

- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`parameter_missing`](https://provenanceauth.com/docs/platform/errors.md#parameter_missing)
- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`resource_missing`](https://provenanceauth.com/docs/platform/errors.md#resource_missing)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

### Request

**curl**

```bash
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" }'
```

**Node**

```ts
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();
```

**Python**

```python
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

```json
{
  "id": "ccx_01M6XS88R5FRAGAMTCFZBXJVT2",
  "object": "call_proof_request",
  "status": "declined",
  "created_at": "2026-11-08T14:33:30.117Z"
}
```
