This is part 4 of the Your First Plugin tutorial. Make sure you’ve completed 3. First Integration first.
Declare the integration dependency
Update the node class to reference the integration:What changed
-
integrations = {"weather_api": ["api_key"]}— declares this node depends on theweather_apiintegration. The platform will show a connection prompt in the editor if credentials aren’t configured. -
ctx.get_integration_credentials("weather_api")— retrieves the decrypted credentials at runtime. Returns a dict with the fields from yourBaseCredentialsmodel.
How credentials flow
Credentials are never stored in the plugin. They’re decrypted by the platform at execution time and passed through theRemoteExecutionContext for that specific run.
Using multiple integrations
A node can depend on more than one integration:Error handling for credentials
Always validate that credentials exist before using them:Next: Working with Files →
Read and create files from plugin nodes.