SDK reference · Python SDK

prov.account

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

Methods

usage

prov.account.usage() -> Any

Calls GET /v1/account/usage.

keys

prov.account.keys() -> Any

Calls GET /v1/account/keys.

rotate_key

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

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

revoke_key

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

prov.account.approval_settings() -> Any

Calls GET /v1/mandate/settings/approvals.

set_approval_settings

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

prov.account.capture_app() -> Any

Calls GET /v1/attest/settings/capture_app.

set_capture_app

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

Calls PUT /v1/attest/settings/capture_app.

reminder_settings

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

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

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

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.

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.

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

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

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

Calls GET /v1/account/text_consents.

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.

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

One consent record.

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

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

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.

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}.

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.

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.

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

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

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

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

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

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

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

prov.account.branding() -> Any

Calls GET /v1/account/branding.

set_branding

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

prov.account.email_domains() -> Any

Calls GET /v1/account/email_domains.

add_email_domain

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

Calls POST /v1/account/email_domains.

verify_email_domain

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

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

remove_email_domain

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

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

sending_numbers

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

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

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

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

update_sending_number_details

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

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.

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

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

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

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

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.

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

Calls PUT /v1/account/branding/logo.

prov.account.remove_branding_logo() -> Any

Calls DELETE /v1/account/branding/logo.

billing

prov.account.billing() -> Any

Calls GET /v1/account/billing.

upgrade_session

prov.account.upgrade_session() -> Any

Calls POST /v1/account/upgrade_session.

billing_portal

prov.account.billing_portal() -> Any

Calls POST /v1/account/billing_portal.

trace_explanations

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

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.

Was this page helpful? Send us feedback

LLM? Read llms.txt.