SDK reference · Node SDK
prov.mandate.policies.get
prov.mandate.policies.get in Node SDK.
Signature
prov.mandate.policies.get(opts?: DomainOpts & { raw?: boolean }): Promise<PolicyActive | Record<string, unknown>>Parameters
optsDomainOpts & { raw?: boolean }
Returns
Promise<PolicyActive | Record<string, unknown>> The active policy for the domain.
HTTP operation
GET /v1/mandate/policies: Retrieve the active policy
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/policies`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/mandate/policies", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()