Skip to main content

API Key Authentication

API keys are the recommended authentication method for access by apps and APIs.

  • You can apply granular permissions to API keys. For more information, refer to Permissions.
  • You can manage API keys in multiple ways, including the web console.

For more information about creating and managing API keys, refer to Manage API Keys.

const jsc8 = require("jsc8");
// Replace the apiKey placeholder with your API key.
// Update the fabricName if you need to log in to a fabric other than _system.
const client = new jsc8({url: "https://play.paas.macrometa.io", apiKey: "XXXX", fabricName: '_system'});