Skip to content
This page View Markdown Open in ChatGPT Open in Claude

Get secret

g.sys.system.getSecret calls the get secret system API from your code, whatever the settings of that API say about HTTP callers.

Get secret System API

Get secret using global object 'g'.

  • Get only one secret key value.
await g.sys.system.getSecret("common.secret");
  • Get multiple secret keys values.
await g.sys.system.getSecret(["common.secret","common.secret"]);