SDK reference · Node SDK

prov.authorize.network.getGrant

prov.authorize.network.getGrant in Node SDK. A network grant your agent holds, with its version.

Signature

prov.authorize.network.getGrant(id: string): Promise<NetworkGrant>

Parameters

idstringRequired

Request fields

idstringpathRequired
The mandate's ID (nmd_…).

Returns

Promise<NetworkGrant> The network mandate.

HTTP operation

GET /v1/mandate/network_grants/{id}: Get a network mandate

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/network_grants/ngr_01M5X9A2B7Q9V3N8K4T6W1Y0R5`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.