Skip to main content
This is part 3 of the Your First Plugin tutorial. Make sure you’ve completed 2. First Node first.
Integrations handle authentication with external services. When your node needs to talk to an API that requires credentials, you define an integration so users can configure their keys securely in the Noxus UI.

Define credentials and integration

Add to weather_plugin/__init__.py:

How it works

  • BaseCredentials is a Pydantic model that defines the fields users fill in (API keys, tokens, URLs, etc.)
  • is_ready() returns True when the credentials are valid enough to use — the UI shows this status
  • BaseIntegration ties the credentials to a display name and icon that appear in workspace settings
  • type must match between the credentials class and the integration class — this is the identifier used throughout

Register the integration

Update the plugin class:
When the plugin is installed, this integration will appear in Workspace Settings → Integrations where users can enter their API key. Credentials are encrypted and stored by the platform — your plugin code never stores them.

Integration anatomy

Credential field types

You can use any NCL display type for credential fields:

Next: Use Integration in Node →

Wire the integration into your node to call a real API with credentials.