View as Markdown

SDK reference · Python SDK

prov.authorize.network

prov.authorize.network in the Python SDK: 13 methods. Network mandates: one permission a person gives your agent, honoured at any store.

Methods

request_grant

prov.authorize.network.request_grant(**body: Any = …) -> Any

Calls POST /v1/mandate/grant_requests.

get_grant_request

prov.authorize.network.get_grant_request(request_id: str) -> Any

Calls GET /v1/mandate/grant_requests/{id}.

get_grant

prov.authorize.network.get_grant(grant_id: str) -> Any

A network grant your agent holds, with its version, last_adjusted_at and hard_max.

Calls GET /v1/mandate/network_grants/{id}.

wait_for_grant_change

prov.authorize.network.wait_for_grant_change(grant_id: str, version: int, timeout_s: float = …) -> Any

Poll until the person changes the grant past version (after you showed them an adjust link), with backoff from 1 to 15 seconds.

get_limit_notice_settings

prov.authorize.network.get_limit_notice_settings() -> Any

The channels your agents' near-limit notices go on (push, text, email).

Calls GET /v1/mandate/settings/limit_notices.

set_limit_notice_settings

prov.authorize.network.set_limit_notice_settings(**channels: bool = …) -> Any

Turn push, text or email on or off (an admin key).

Calls PUT /v1/mandate/settings/limit_notices.

create_order

prov.authorize.network.create_order(**body: Any = …) -> Any

Buy under a network grant.

Calls POST /v1/mandate/network_orders.

accept

prov.authorize.network.accept(intent_token: str) -> Any

Calls POST /v1/authorize/network_orders/confirm.

cancel

prov.authorize.network.cancel(intent_token: str) -> Any

Calls POST /v1/authorize/network_orders/cancel.

report

prov.authorize.network.report(**body: Any = …) -> Any

Report an order your account verified or accepted: kind is fraud, unrecognized_charge or agent_misbehaved; pass intent_jti or decision_id.

Calls POST /v1/authorize/agent_reports.

list_reports

prov.authorize.network.list_reports(**query: Any = …) -> Any

Calls GET /v1/authorize/agent_reports.

withdraw_report

prov.authorize.network.withdraw_report(report_id: str) -> Any

Calls DELETE /v1/authorize/agent_reports/{id}.

agent_record

prov.authorize.network.agent_record(agent_id: str) -> Any

Calls GET /v1/mandate/agents/{id}/record.

Was this page helpful? Send us feedback

LLM? Read llms.txt.