Authentication with the Narada SDK
The Narada Python SDK uses API key authentication to securely access the Narada platform.
The SDK automatically manages browser windows and extension communication,
eliminating the need for manual Browser Window ID management.
API Key
An API Key is required to authenticate your requests to the Narada platform. This key identifies your account and authorizes access to all SDK functionality.
How to Obtain Your API Key
Create API Key
Click on Create API Key and follow the prompts.
Save Your API Key
The SDK automatically reads your API key from the NARADA_API_KEY environment variable. Set it up using one of these methods: Environment Variable
Python Code
Set the environment variable (recommended):export NARADA_API_KEY=your-api-key-here
The SDK will automatically detect and use this environment variable.
Pass directly to the SDK (for testing):import asyncio
from narada import Narada
async def main() -> None:
# Pass API key directly (not recommended for production)
async with Narada(api_key="your-api-key-here") as narada:
window = await narada.open_and_initialize_browser_window()
# Your automation code here...
if __name__ == "__main__":
asyncio.run(main())
This method is not recommended for production use. Use environment variables instead.
Next Steps
Now that you have your API key configured, you’re ready to:
- Get started with your first SDK automation
- Learn about advanced SDK features
The SDK’s automatic browser window management means you can focus on building
automation workflows without worrying about technical setup details.