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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.