# prov.account.add_sending_number_consent_evidence

prov.account.add_sending_number_consent_evidence in Python SDK. An image (PNG or JPEG, up to 5 MB) of how people agree, for a number that needs a fix.

## Signature

```python
prov.account.add_sending_number_consent_evidence(number_id: str, image: bytes, content_type: str = …) -> Any
```

## Parameters

- `number_id` (str)
- `image` (bytes)
- `content_type` (str, optional)

## Returns

`Any`

## HTTP operation

[`POST /v1/account/sending_numbers/{id}/consent_evidence`](https://provenanceauth.com/docs/api/account.md#post-v1-account-sending-numbers-id-consent-evidence): Add an image of how people agree

## Errors

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

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/account/sending_numbers/snum_4f2a9c0e7b1d3e5a6c8b/consent_evidence`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "image/png" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/account/sending_numbers/snum_4f2a9c0e7b1d3e5a6c8b/consent_evidence", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "image/png"}).json()
```
