# prov.account

prov.account in the Python SDK: 52 methods. The account methods.

## Methods

### [usage](https://provenanceauth.com/docs/sdks/python/account/usage.md)

```python
prov.account.usage() -> Any
```

Calls `GET /v1/account/usage`.

### [keys](https://provenanceauth.com/docs/sdks/python/account/keys.md)

```python
prov.account.keys() -> Any
```

Calls `GET /v1/account/keys`.

### [rotate_key](https://provenanceauth.com/docs/sdks/python/account/rotate-key.md)

```python
prov.account.rotate_key(key_id: Optional[str] = …) -> Any
```

Calls `POST /v1/account/keys/{id}/rotate_secret`.

### [revoke_key](https://provenanceauth.com/docs/sdks/python/account/revoke-key.md)

```python
prov.account.revoke_key(key_id: str, reason: Optional[str] = …) -> Any
```

Revoke a key with no replacement (owners and admins).

Calls `POST /v1/account/keys/{id}/revoke`.

### [approval_settings](https://provenanceauth.com/docs/sdks/python/account/approval-settings.md)

```python
prov.account.approval_settings() -> Any
```

Calls `GET /v1/mandate/settings/approvals`.

### [set_approval_settings](https://provenanceauth.com/docs/sdks/python/account/set-approval-settings.md)

```python
prov.account.set_approval_settings(**fields: Any = …) -> Any
```

Set `default_expires_in` (None resets it) and/or `share_approver_ip`.

Calls `PUT /v1/mandate/settings/approvals`.

### [capture_app](https://provenanceauth.com/docs/sdks/python/account/capture-app.md)

```python
prov.account.capture_app() -> Any
```

Calls `GET /v1/attest/settings/capture_app`.

### [set_capture_app](https://provenanceauth.com/docs/sdks/python/account/set-capture-app.md)

```python
prov.account.set_capture_app(**fields: Any = …) -> Any
```

Calls `PUT /v1/attest/settings/capture_app`.

### [reminder_settings](https://provenanceauth.com/docs/sdks/python/account/reminder-settings.md)

```python
prov.account.reminder_settings() -> Any
```

The limits every reminder runs under, your time zone for quiet hours, and the automatic schedule per product.

Calls `GET /v1/account/reminders`.

### [set_reminder_settings](https://provenanceauth.com/docs/sdks/python/account/set-reminder-settings.md)

```python
prov.account.set_reminder_settings(**fields: Any = …) -> Any
```

Any of default_time_zone (IANA; `None` clears it), max_per_request (lower it), min_gap_seconds (raise it), quiet_hours (widen them) and schedules per product (`{"capture_request": {"enabled": True, "after": ["24h", "72h"]}}`; turning one on needs Pro or higher).

Calls `PUT /v1/account/reminders`.

### [approval_channels](https://provenanceauth.com/docs/sdks/python/account/approval-channels.md)

```python
prov.account.approval_channels() -> Any
```

The account default (`mode`, `channels`) and, for owners and admins, `people`.

Calls `GET /v1/account/approval_channels`.

### [set_approval_channels](https://provenanceauth.com/docs/sdks/python/account/set-approval-channels.md)

```python
prov.account.set_approval_channels(channels: Any, mode: Optional[str] = …) -> Any
```

Set the account default: `channels` (`web_push`, `email`, `text`, `phone_call`) and `mode` (`first_available` or `all`).

Calls `PUT /v1/account/approval_channels`.

### [text_consent_settings](https://provenanceauth.com/docs/sdks/python/account/text-consent-settings.md)

```python
prov.account.text_consent_settings() -> Any
```

How consent to your texts is held, your statement for everyone, the counts and the wording in force.

Calls `GET /v1/account/text_consent`.

### [set_text_consent_settings](https://provenanceauth.com/docs/sdks/python/account/set-text-consent-settings.md)

```python
prov.account.set_text_consent_settings(**fields: Any = …) -> Any
```

`mode` (`provenance` or `company`) and, under `company`, `everyone` (`{"method":...}` for everyone you text, `None` for each person you name; required the first time).

Calls `PUT /v1/account/text_consent`.

### [list_text_consents](https://provenanceauth.com/docs/sdks/python/account/list-text-consents.md)

```python
prov.account.list_text_consents(**params: Any = …) -> Any
```

Your consent records, newest first (`phone`, `status`, `source`, `limit`, `cursor`).

Calls `GET /v1/account/text_consents`.

### [create_text_consent](https://provenanceauth.com/docs/sdks/python/account/create-text-consent.md)

```python
prov.account.create_text_consent(**fields: Any = …) -> Any
```

Record that a phone agreed to your texts: `phone`, `method`, `obtained_at`, optional `evidence_url`.

Calls `POST /v1/account/text_consents`.

### [get_text_consent](https://provenanceauth.com/docs/sdks/python/account/get-text-consent.md)

```python
prov.account.get_text_consent(consent_id: str) -> Any
```

One consent record.

Calls `GET /v1/account/text_consents/{id}`.

### [withdraw_text_consent](https://provenanceauth.com/docs/sdks/python/account/withdraw-text-consent.md)

```python
prov.account.withdraw_text_consent(consent_id: str) -> Any
```

Record a withdrawal you received another way; the phone is stopped for your texts.

Calls `POST /v1/account/text_consents/{id}/withdraw`.

### [import_text_consents](https://provenanceauth.com/docs/sdks/python/account/import-text-consents.md)

```python
prov.account.import_text_consents(csv: 'bytes | str', file_name: Optional[str] = …) -> Any
```

Slice 2: import a CSV of phones that agreed to your texts (mode `company`, Pro and up): the columns `phone`, `method`, `obtained_at` and, optionally, `evidence_url`; up to 50,000 rows and 5 MB.

Calls `POST /v1/account/text_consent_imports`.

### [get_text_consent_import](https://provenanceauth.com/docs/sdks/python/account/get-text-consent-import.md)

```python
prov.account.get_text_consent_import(import_id: str) -> Any
```

Slice 2: one import, its status and counts and the first 1,000 rows not added.

Calls `GET /v1/account/text_consent_imports/{id}`.

### [text_consent_screenshots](https://provenanceauth.com/docs/sdks/python/account/text-consent-screenshots.md)

```python
prov.account.text_consent_screenshots() -> Any
```

Slice 6: your screenshots of how people agree to your texts (records only), oldest first.

Calls `GET /v1/account/text_consent/screenshots`.

### [add_text_consent_screenshot](https://provenanceauth.com/docs/sdks/python/account/add-text-consent-screenshot.md)

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

Slice 6: under We have it, a screenshot (PNG or JPEG, up to 5 MB) of how people agree to your texts; up to five.

Calls `POST /v1/account/text_consent/screenshots`.

### [delete_text_consent_screenshot](https://provenanceauth.com/docs/sdks/python/account/delete-text-consent-screenshot.md)

```python
prov.account.delete_text_consent_screenshot(screenshot_id: str) -> Any
```

Slice 6: delete a screenshot; a review it was already sent to stops showing it.

Calls `DELETE /v1/account/text_consent/screenshots/{id}`.

### [capture_routing](https://provenanceauth.com/docs/sdks/python/account/capture-routing.md)

```python
prov.account.capture_routing() -> Any
```

Where capture links open: the account default, each destination's availability, the order people get.

Calls `GET /v1/attest/settings/capture_routing`.

### [set_capture_routing](https://provenanceauth.com/docs/sdks/python/account/set-capture-routing.md)

```python
prov.account.set_capture_routing(**fields: Any = …) -> Any
```

Order, store_listing (Growth and up) and require_tier (any plan).

Calls `PUT /v1/attest/settings/capture_routing`.

### [capture_retention](https://provenanceauth.com/docs/sdks/python/account/capture-retention.md)

```python
prov.account.capture_retention() -> Any
```

How long captured images are kept (1–365 days, default 30).

Calls `GET /v1/attest/settings/capture_retention`.

### [set_capture_retention](https://provenanceauth.com/docs/sdks/python/account/set-capture-retention.md)

```python
prov.account.set_capture_retention(days: int) -> Any
```

Set how long captured images are kept; applies to the images already held too.

Calls `PUT /v1/attest/settings/capture_retention`.

### [capture_list_label](https://provenanceauth.com/docs/sdks/python/account/capture-list-label.md)

```python
prov.account.capture_list_label() -> Any
```

D-119: the workspace's word for the Captures list ("Captures" unless changed).

Calls `GET /v1/attest/settings/capture_list`.

### [set_capture_list_label](https://provenanceauth.com/docs/sdks/python/account/set-capture-list-label.md)

```python
prov.account.set_capture_list_label(label: Optional[str]) -> Any
```

D-119: name the Captures list in the console (up to 24 characters); `None` puts back "Captures".

Calls `PUT /v1/attest/settings/capture_list`.

### [branding](https://provenanceauth.com/docs/sdks/python/account/branding.md)

```python
prov.account.branding() -> Any
```

Calls `GET /v1/account/branding`.

### [set_branding](https://provenanceauth.com/docs/sdks/python/account/set-branding.md)

```python
prov.account.set_branding(**fields: Any = …) -> Any
```

Set any of name, primary, secondary, accent, help_url, email_from, email_from_name, email_reply_to (`None` clears one).

Calls `PUT /v1/account/branding`.

### [email_domains](https://provenanceauth.com/docs/sdks/python/account/email-domains.md)

```python
prov.account.email_domains() -> Any
```

Calls `GET /v1/account/email_domains`.

### [add_email_domain](https://provenanceauth.com/docs/sdks/python/account/add-email-domain.md)

```python
prov.account.add_email_domain(domain: str) -> Any
```

Calls `POST /v1/account/email_domains`.

### [verify_email_domain](https://provenanceauth.com/docs/sdks/python/account/verify-email-domain.md)

```python
prov.account.verify_email_domain(domain_id: str) -> Any
```

Calls `POST /v1/account/email_domains/{id}/verify`.

### [remove_email_domain](https://provenanceauth.com/docs/sdks/python/account/remove-email-domain.md)

```python
prov.account.remove_email_domain(domain_id: str) -> Any
```

Calls `DELETE /v1/account/email_domains/{id}`.

### [sending_numbers](https://provenanceauth.com/docs/sdks/python/account/sending-numbers.md)

```python
prov.account.sending_numbers() -> Any
```

Your sending number and released history, with `company_texts` and `notice`.

Calls `GET /v1/account/sending_numbers`.

### [save_sending_number_details](https://provenanceauth.com/docs/sdks/python/account/save-sending-number-details.md)

```python
prov.account.save_sending_number_details(**details: Any = …) -> Any
```

Save your business details on any plan; on Pro and above the number is requested when the deployment can.

Calls `POST /v1/account/sending_numbers`.

### [sending_number](https://provenanceauth.com/docs/sdks/python/account/sending-number.md)

```python
prov.account.sending_number(number_id: str) -> Any
```

Calls `GET /v1/account/sending_numbers/{id}`.

### [update_sending_number_details](https://provenanceauth.com/docs/sdks/python/account/update-sending-number-details.md)

```python
prov.account.update_sending_number_details(number_id: str, **changes: Any = …) -> Any
```

Edit saved details (only before the request starts).

Calls `PATCH /v1/account/sending_numbers/{id}`.

### [resubmit_sending_number](https://provenanceauth.com/docs/sdks/python/account/resubmit-sending-number.md)

```python
prov.account.resubmit_sending_number(number_id: str, **corrections: Any = …) -> Any
```

Send the corrected details of a number that needs a fix (three in any 24 hours).

Calls `POST /v1/account/sending_numbers/{id}/resubmit`.

### [add_sending_number_consent_evidence](https://provenanceauth.com/docs/sdks/python/account/add-sending-number-consent-evidence.md)

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

An image (PNG or JPEG, up to 5 MB) of how people agree, for a number that needs a fix.

Calls `POST /v1/account/sending_numbers/{id}/consent_evidence`.

### [delete_sending_number](https://provenanceauth.com/docs/sdks/python/account/delete-sending-number.md)

```python
prov.account.delete_sending_number(number_id: str) -> Any
```

Delete saved details, release a number (its details kept), or delete a released number's kept details.

Calls `DELETE /v1/account/sending_numbers/{id}`.

### [test_texts](https://provenanceauth.com/docs/sdks/python/account/test-texts.md)

```python
prov.account.test_texts(request_id: Optional[str] = …, limit: Optional[int] = …, cursor: Optional[str] = …) -> Any
```

The recorded test texts, newest first; `request_id` narrows the list to one request.

Calls `GET /v1/account/test_texts`.

### [test_text](https://provenanceauth.com/docs/sdks/python/account/test-text.md)

```python
prov.account.test_text(text_id: str) -> Any
```

One recorded test text, with its body as it would have been sent.

Calls `GET /v1/account/test_texts/{id}`.

### [clear_test_text_stops](https://provenanceauth.com/docs/sdks/python/account/clear-test-text-stops.md)

```python
prov.account.clear_test_text_stops() -> Any
```

Lift the stops the test number +12025550103 wrote (stands in for the person's START).

Calls `DELETE /v1/account/test_texts/stops`.

### [set_branding_logo](https://provenanceauth.com/docs/sdks/python/account/set-branding-logo.md)

```python
prov.account.set_branding_logo(data_base64: str) -> Any
```

Calls `PUT /v1/account/branding/logo`.

### [remove_branding_logo](https://provenanceauth.com/docs/sdks/python/account/remove-branding-logo.md)

```python
prov.account.remove_branding_logo() -> Any
```

Calls `DELETE /v1/account/branding/logo`.

### [billing](https://provenanceauth.com/docs/sdks/python/account/billing.md)

```python
prov.account.billing() -> Any
```

Calls `GET /v1/account/billing`.

### [upgrade_session](https://provenanceauth.com/docs/sdks/python/account/upgrade-session.md)

```python
prov.account.upgrade_session() -> Any
```

Calls `POST /v1/account/upgrade_session`.

### [billing_portal](https://provenanceauth.com/docs/sdks/python/account/billing-portal.md)

```python
prov.account.billing_portal() -> Any
```

Calls `POST /v1/account/billing_portal`.

### [trace_explanations](https://provenanceauth.com/docs/sdks/python/account/trace-explanations.md)

```python
prov.account.trace_explanations() -> Any
```

The opt-in AI trip summary setting (default off) + whether an explainer is configured.

Calls `GET /v1/trace/settings/explanations`.

### [set_trace_explanations](https://provenanceauth.com/docs/sdks/python/account/set-trace-explanations.md)

```python
prov.account.set_trace_explanations(ai_summary: Optional[str] = …, ai_labeling: Optional[str] = …) -> Any
```

On" | "off" for the AI summary and/or AI labelling (an owner/admin session, or an admin-scope key).

Calls `PUT /v1/trace/settings/explanations`.
