SDK reference · Node SDK

prov.account.keys

prov.account.keys in Node SDK. List the account's API keys (metadata only, never the secret).

Signature

prov.account.keys(): Promise<AccountKey[]>

Parameters

No parameters.

Returns

Promise<AccountKey[]> The account's API keys.

HTTP operation

GET /v1/account/keys: List API keys

Errors

Example

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

Was this page helpful? Send us feedback

LLM? Read llms.txt.